MAC Address - how to find

Is there any way to make an educated guess at a Particle device on my LAN?

Like do all Particle Photon MAC addresses begin with a certain series?

I have access to my router so could find it if I had a clue.

Or is the MAC address shown anywhee on the dashboard?

I couldn't see it.

Thanks

A Photon 1 or P1 has a MAC address format of: e0:4f:43:xx:xx:xx (Universal Global Scientific Industrial Co., Ltd.).

This won't help for Gen 2 devices, but Gen 3 and later devices the MAC address is stored in the cloud. I did not find the MAC address in the console or the CLI, but if you know the Device ID you can use the Get Device Info Tool or the equivalent cloud API call and it should list the MAC addresses (there's one for Wi-Fi and one for BLE).

If you can connect the device by USB to a computer with the Particle CLI, particle serial mac can be used.

1 Like

My router assigns the device name the same as the Particle ID for the device so look for a 24 character under device names on the router.

Not sure when it was removed, but you can no longer get a Photon 1 mac from the CLI or getDevice().
The CLI returns Could not identify device: Could not get MAC address: Not supported even though it had worked previously, and getDevice() doesn't return the mac_wifi field.

{
  id: '<id>',
  name: '<name>',
  last_ip_address: '<ip>',
  last_heard: '2024-10-21T16:25:18.122Z',
  last_handshake_at: '2024-10-21T16:10:41.576Z',
  product_id: <product>,
  online: true,
  connected: true,
  platform_id: 6,
  cellular: false,
  notes: '',
  firmware_updates_enabled: true,
  firmware_updates_forced: false,
  functions: [ '<functions>' ],
  variables: {},
  status: 'normal',
  serial_number: '<serial>',
  system_firmware_version: '1.4.4',
  current_build_target: '1.4.4',
  default_build_target: '3.3.1',
  device_protection: { status: 'disabled' },
  firmware_product_id: <product>,
  groups: [],
  firmware_version: 51,
  targeted_firmware_release_version: null,
  development: true,
  quarantined: false,
  denied: false
}

Can this be brought back to the CLI? I suppose i can find a previous version that worked and use that too, but it's disappointing that features get removed and I have to modify my manufacturing scripts. Now I see that there's a new option to prevent it from updating and lock it to a specific version so I should probably use that.
github diff

You'll need to use an older version of the Particle CLI to use particle serial mac on older devices. See using a specific Particle CLI version.

The reason is that the old CLI connected to the device in USB CDC (serial terminal mode) and typed commands at it. This required being in listening mode, and also failed if the device was logging data by serial debug.

The current CLI uses USB control requests which does not require listening mode and is unaffected by serial debug output. Older devices do not support all of these requests, however.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.