No description
Find a file
2023-04-13 10:41:50 +02:00
master Improve set_time() and send_command_get_anwser() 2023-04-13 10:41:50 +02:00
slave Add GPS demo data, tension and temperature sensors 2023-04-12 16:45:33 +02:00
README.md Add GPS demo data, tension and temperature sensors 2023-04-12 16:45:33 +02:00

Documentation

I2C Commands

Command Name Description Byte value(s)
CMD_ACK Ask the slave if the last command was successfully received 0x01
SET_TIME Set slave's time to match master's one 0x02, value (4 bytes)
RESEND Resend the content of last request 0xFF
GET_GPS Get the current GPS position of the Solex 0x10
GET_VOLT Get the current tension of the Solex's battery 0x11
GET_TEMP Get the current temperature of the Solex's battery 0x12

I2C Requests

Previous Command Name Description Byte value(s)
CMD_ACK Tell the master if the last command (different from CMD_ACK) was successfully recieved 0x01 if last command was successfull, 0xFF otherwise
RESEND Resend the content of the last request to the master
GET_GPS Send the current GPS position of the Solex timestamp (15 bytes) latitude (4 bytes) longitude (4 bytes)
GET_VOLT Send the current tension of the Solex's battery timestamp (15 bytes) tension (4 bytes)
GET_TEMP Send the current temperature of the Solex's battery timestamp (15 bytes) temperature (4 bytes)

It is forbidden to define a request that can send to the master an answer of length 1 with the byte 0x00 because it is the code that notify the master that last command was not send successfully and should thus be sent again.

Sensor Ids

Id Sensor
0 Drive message
1 GPS
2 Tension
3 Temperature