RAKWireless / WisBlock

Quickstart, tutorials and examples for the RAKwireless WisBlock product line.
https://www.rakwireless.com
MIT License
156 stars 117 forks source link

in bootloader mode, the RAK4631 5005 and 19003 have same values #44

Closed mkinney closed 2 years ago

mkinney commented 2 years ago

The vendor id and the product are the same when both devices are in boot mode.

Is there a way to distinguish the two devices without installing any big libraries? (currently using python, so a pip package would be fine as long as it works on mac, windows, and linux.

I would love to have a way to easily query the device for what model it is. They do have different product identifiers when not in boot mode.

I'm using lsusb in linux to query. If on a mac, you can use: ioreg -p IOUSB. On windows, Get-PnpDevice -PresentOnly. I typically will run those commands to a file before plugging in the device, then plug in the device, and do a "diff".

Let me know you need more info or do not understand my question.

beegee-tokyo commented 2 years ago

The vendor id and product id is coming from the RAK4631, not from the base board. There is no option to determine which base board is used.

I am running into the same problem and it will get worse as we will release new base boards soon.

mkinney commented 2 years ago

Is there any way to add the info to the INFO_UF2.TXT file?

beegee-tokyo commented 2 years ago

Doesn't help either. The UF2 is coming from the RAK4631. If I take it off a RAK5005-O and put it into a RAK19003, the UF2 is still the same.

mkinney commented 2 years ago

Ok. Is there a python program I can run to query the device? Or a small standalone C program?

beegee-tokyo commented 2 years ago

Is this the question about I2C devices that I answered in Discord?

If it is about the base boards, there is no way to detect from the Core module.

mkinney commented 2 years ago

Yes, thanks