Skip to main content

Enumerate

Enumerate a peripheral and insert it in the OBCS enumeration table.

Request​

012345678910111213141516171819202122232425262728293031
997N1N2N3N4N5S

Request Structure​

ByteValueSizeTypeDescription
0991BINOBCS address
171BINEnumeration instruction code
2N11BIN1st peripheral’s serial number pair (2 digits)
3N21BIN2nd peripheral’s serial number pair (2 digits)
4N31BIN3rd peripheral’s serial number pair (2 digits)
5N41BIN4th peripheral’s serial number pair (2 digits)
6N51BIN5th peripheral’s serial number pair (2 digits)
7S1BINNew peripheral ID or 0 to keep N1 value (default)

Response​

012345678910111213141516171819202122232425262728293031
S1

Response Structure​

ByteValueSizeTypeDescription
0S1BINPeripheral’s ID
111BIN1 for successful (See remarks below)

Remarks​

If enumeration is successful, the shown response is sent. If not, OBCS will issue an error as the answer. See OBCS ERROR MESSAGES section for in-depth details.

Users must wait for an answer.

Enumeration can take some time to accomplish and if interrupted, corruption of the translation table may occur.

N1 through N5 are the serial’s number pairs.

The serial number is composed of 10 digits. Every 2 digits constitute a pair. For instance, the serial number 3123456789 has the pairs ‘31’, ‘23’, ‘45’, ‘67’ and ‘89’, being N1 the first pair ‘31’. The S argument ranges from 21 to 98 or 0 to keep the default. The peripherals can only be reached if an enumeration is successful performed.