Command 0Test UART communication. If communication is working correctly, the PGA450-Q1 will return a value of 0x12 0x23.
Example hex entry: 0x00, 0x55, 0x01, 0x00
where:
- [0] 0x00: break field
- [1] 0x55: synchronization field
- [2] 0x01: 0 = command 0. 1 = sensor address set in EEPROM address 0x31
- [3] 0x00: ignored but required checksum
Command 1Trigger a short or long distance burst and capture with hard-coded drive and receive settings. Also reads first instance of threshold crossing for closest object detected.
Example hex entry: 0x00, 0x55, 0x11, 0x02, 0x00
where:
- [0] 0x00: break field
- [1] 0x55: synchronization field
- [2] 0x11: 1 = command 1. 1 = sensor address set in EEPROM address 0x31
- [3] 0x02: 00 = listen. 01 = short. 02 = long.
- [4] 0x00: ignored but required checksum
Command 2Read first instance of threshold crossing for closest object detected.
Example hex entry: 0x00, 0x55, 0x21, 0x00
where:
- [0] 0x00: break field
- [1] 0x55: synchronization field
- [2] 0x21: 2 = command 2. 1 = sensor address set in EEPROM address 0x31
- [3] 0x00: ignored but required checksum
Command 3Update an EEPROM value.
Example hex entry: 0x00, 0x55, 0x31, 0x00, 0xFF, 0x00
where:
- [0] 0x00: break field
- [1] 0x55: synchronization field
- [2] 0x31: 3 = command 3. 1 = sensor address set in EEPROM address 0x31
- [3] 0x00: 00 = EEPROM address
- [4] 0xFF: FF = EEPROM data
- [5] 0x00: ignored but required checksum
Command 4Read all 768 bytes of FIFO data.
Example hex entry: 0x00, 0x55, 0x41, 0x00
where:
- [0] 0x00: break field
- [1] 0x55: synchronization field
- [2] 0x41: 4 = command 4. 1 = sensor address set in EEPROM address 0x31
- [3] 0x00: ignored but required checksum