bgoodwine / SeniorDesign

Code for Senior Design II
0 stars 1 forks source link

Set I2C Protocol between Pi & ESP32 #11

Closed bgoodwine closed 1 year ago

bgoodwine commented 1 year ago

Protocol Draft 1

Pi initial requests:

ESP32 response to general checkin:

ESP32 response to IMU data:

ESP32 data relay:

Originally posted by @bgoodwine in https://github.com/bgoodwine/SeniorDesign/issues/2#issuecomment-1438757839

bgoodwine commented 1 year ago

TODO

bgoodwine commented 1 year ago

Protocol Draft 2

Pi initial messages:

Pi responses to message transmission requests:

ESP32 response to general checkin:

ESP32 response to restart/shutdown commands:

ESP32 data relay messages will be repeated until all bytes have been transmitted:

bgoodwine commented 1 year ago

Send I2C data back from ESP32 S3

Read byte at a time with smbus

read_byte(i2c_addr, force=None)
Read a single byte from a device.
Return type int
Parameters
• i2c_addr (int) – i2c address
• force (Boolean) –
Returns Read byte value

uint8 data type in python read block data

bgoodwine commented 1 year ago

TODO

Lots of functionality added with #13 closed :) What's still left: