Packet Serial Address

General discussion of using Roboclaw motor controllers
Post Reply
willishf
Posts: 6
Joined: Sun Nov 14, 2021 9:06 am
Packet Serial Address

Post 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.
User avatar
Basicmicro Support
Posts: 1594
Joined: Thu Feb 26, 2015 9:45 pm
Re: Packet Serial Address

Post 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.

Post Reply