<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Read nRF52840&amp;#39;s MAC address across usb or serial tty?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88701/read-nrf52840-s-mac-address-across-usb-or-serial-tty</link><description>Is there a way to read the mac address from the serial tty of an nRF52840? I have multiple dongles programmed with the BLE sniffer (nrf_sniffer_for_bluetooth_le_4.1.0) and am trying to map the HW ID of the device to the MAC printed on the dongle: $ls</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Jun 2022 14:37:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88701/read-nrf52840-s-mac-address-across-usb-or-serial-tty" /><item><title>RE: Read nRF52840's MAC address across usb or serial tty?</title><link>https://devzone.nordicsemi.com/thread/373993?ContentTypeID=1</link><pubDate>Thu, 23 Jun 2022 14:37:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46393525-becd-4bef-bd82-b18cca9e3bad</guid><dc:creator>Matthew C Clark</dc:creator><description>&lt;p&gt;Thanks, Sigurd.&amp;nbsp; That&amp;#39;s pretty much what we&amp;#39;ve been forced to do.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read nRF52840's MAC address across usb or serial tty?</title><link>https://devzone.nordicsemi.com/thread/373917?ContentTypeID=1</link><pubDate>Thu, 23 Jun 2022 11:28:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5580e3c-2c67-4e8a-964f-15b1a3ff6844</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Kenneth is on vacation, so I will answer this time.&lt;/p&gt;
&lt;p&gt;As Kenneth say, you can get a device ID but no MAC from the dongle from the connection, as far as I know.&lt;br /&gt;So the solutions I can think of are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Create a spreadsheet as you suggest&lt;/li&gt;
&lt;li&gt;Read the ID from each dongle, and mark them physically, by tape or something.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read nRF52840's MAC address across usb or serial tty?</title><link>https://devzone.nordicsemi.com/thread/372456?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2022 21:44:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1e70eca-5c0d-4c12-88b8-87d608757e43</guid><dc:creator>Matthew C Clark</dc:creator><description>&lt;p&gt;The project I&amp;#39;m doing this for has multiple sniffer devices and wants to know which one gets what MAC at what orientation (say left or right).&amp;nbsp; But unlike the DK, which populates with the HW ID stamped on it, making for easy identification, the dongles have MAC printed, but no HW ID, so there&amp;#39;s a disconnect.&amp;nbsp; It makes it a bit of a pain in the butt and I was hoping for some programatic way of identifying them rather than manually plugging in each dongle and copying the HW ID and its MAC into some spreadsheet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read nRF52840's MAC address across usb or serial tty?</title><link>https://devzone.nordicsemi.com/thread/372079?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 10:08:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4115420-1285-4945-aae3-5e71e4ebec17</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I don&amp;#39;t think you can find the MAC address no, but can&amp;#39;t you use a different identifier to know this is the nRF sniffer dongle?&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t understand why you need the MAC address in specific, this is a BLE sniffer in any case, so the MAC address of the sniffer should not&amp;nbsp;be important here.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read nRF52840's MAC address across usb or serial tty?</title><link>https://devzone.nordicsemi.com/thread/371987?ContentTypeID=1</link><pubDate>Sun, 12 Jun 2022 16:43:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f983115-01f2-4c38-869d-bdb51d10c728</guid><dc:creator>Matthew C Clark</dc:creator><description>&lt;p&gt;Sadly, nothing in lsusb shows me the MAC of the device.&amp;nbsp; I also examined by probing under /sys/class.&amp;nbsp; I&amp;#39;d be fine if there were a C or Python program I could run that could pull the MAC off the serial connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read nRF52840's MAC address across usb or serial tty?</title><link>https://devzone.nordicsemi.com/thread/371669?ContentTypeID=1</link><pubDate>Thu, 09 Jun 2022 12:32:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55989754-61fc-4d0b-ae8b-f6beb6e4f7d9</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Not aware of any way you can do this (or get the mac address), but you may look into using the &lt;a href="https://linuxhint.com/use_lsusb_command/"&gt;&amp;#39;lsbusb -v&amp;#39;&lt;/a&gt; command that possibly can help:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;lsbusb -v
Bus 001 Device 016: ID 1915:522a Nordic Semiconductor ASA nRF Sniffer for Bluetooth LE
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x1915 Nordic Semiconductor ASA
  idProduct          0x522a
  bcdDevice            2.04
  iManufacturer           1 ZEPHYR
  iProduct                2 nRF Sniffer for Bluetooth LE
  iSerial                 3 C2E15977A9D11709
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x004b
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower              100mA
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         0
      bInterfaceCount         2
      bFunctionClass          2 Communications
      bFunctionSubClass       2 Abstract (modem)
      bFunctionProtocol       0
      iFunction               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass      2 Abstract (modem)
      bInterfaceProtocol      0
      iInterface              0
      CDC Header:
        bcdCDC               1.10
      CDC Call Management:
        bmCapabilities       0x02
          use DataInterface
        bDataInterface          1
      CDC ACM:
        bmCapabilities       0x02
          line coding and serial state
      CDC Union:
        bMasterInterface        0
        bSlaveInterface         1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval              10
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
Device Status:     0x0001
  Self Powered&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>