I am trying to interface SPS30 via UART, but I am not able to start the fan. I am getting some response but it won't match any possible response from the datasheet. Using Micropython. Below is the code snippet -
import machine
import time
from micropython import const
if __name__ == "__main__":
uart=machine.UART(1,115200,tx=machine.Pin(4),rx=machine.Pin(5)
uart.write(bytes(0xff))
buffer=[0x7e,0x00,0x11,0x00,0xee,0x7e]
uart.write(bytes(buffer))
uart.write(bytes(buffer))
response=uart.read()
print(response)
time.sleep(1)
buffer=[0x7e,0x00,0x03,0x00,0xfc,0x7e]
uart.write(bytes(buffer))
response=uart.read()
print (response)
And response that I am getting -
b'\xfe~\x00}1C\x00\xab~'
b'~\x00}1C\x00\xab~'