Page 1 of 1

Packet Serial Address

Posted: Sun Nov 14, 2021 9:12 am
by willishf
I have multiple roboclaw 7A boards on a USB hub and trying to deal with the "randomness" of Com port assignment upon bootup. Would like to use the Packet Serial Address feature to set the address for each board via Basic Micro Studio 128-135. Then read each com port for the assigned ID and can handle the random assignment of com port.

In reviewing the API didn't see any options to read the board Packet Serial Address. If it exists can you point me to an example or docs?

Could also use the API to read the EEPROM address but didn't see any mappings of where data values are stored.

Did a quick test to try and write a value to an EEPROM address but didn't seem to work but also didn't know what the valid ranges are. Can you provide any documentation reference/example for user safe EEPROM addresses that won't get stepped on in future releases? Can solve the problem using that approach as well.

Re: Packet Serial Address

Posted: Fri Nov 19, 2021 12:45 pm
by Basicmicro Support
You want to use the ReadConfig function. Part of the bitmap of the returned value indicates what the Packet Serial address is.

The valid range for EEPROM is 0 to 65536(16bits) values and up to 256 values total. Reading the Config is probably simpler though.

P.S. we will never write something to USER EEPROM in any future firmware. There is a separate block of EEPROM to store our settings in.