-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPS communication on UART with PC #1
Comments
hi
At first sight I would say the responds is the same as the TX. Is there a loopback in Docklight set ? I don't know docklight, but had a quick look, not much time to deepdive. I see that directsend has an option for UDP loopback: When using a channel setting like UDP:LOCALHOST:10001 you effectively create a loopback, similar to a serial port loopback, where and all outgoing data is immediately received.
Are you using that ? What happens if you remove connection from pin 2 or 3 from the SPS30? Are you still getting a responds ?
Then I looked at the commands as documented in https://www.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/0_Datasheets/Particulate_Matter/Sensirion_PM_Sensors_SPS30_Datasheet.pdf
7E 00 00 01 02 F9 7E
7E Start
00 address
00 command
01 length
02 data
F9 inverted checksum
7E STOP
CMD command length data
0x00 Start measurement 02 01 03
0x01 Stop measurement 00
0x03 read measured value 00
0x80 read autoclean 01 00
0x80 write autoclean 05 00 XX XX XX XX )( X = time in seconds)
0x56 Start fancleaning 00
0xD0 read product info 01 YY ( 01 or 02 or 03)
0xD3 device reset 00
your commands :
7E 00 00 01 02 F9 7E : command is 00. Length must be 02 but is 01 missing the mandatory data, it will not start
7E 00 00 00 FF 7E : command is 00, Length must be 02 but is 00 missing the mandatory data, it will not start
7E 00 03 00 FC 7E : command is 03 , correct read measurement, but SPS30 has not started. Still I would have expected a different responds (loopback ?)
7E 00 D3 00 2C 7E : command is D3. correct reset but I would have expected a different responds (loopback ?)
Check for loopback, but also check for the commands as documented in the datasheet.
regards,
Paul
…________________________________
Van: Mohit2183 <[email protected]>
Verzonden: zaterdag 11 januari 2020 23:09
Aan: paulvha/SPS30_lora <[email protected]>
CC: Subscribed <[email protected]>
Onderwerp: [paulvha/SPS30_lora] SPS communication on UART with PC (#1)
we are facing a critical issue with communication with SPS30 WITH PC
we were testing sps30 by connecting with docklight.
we have used usb to serial converter to command the sps30.
pin 1 was connected to poer supply +5vdc ,
pin 5 was connected to 0vdc.
pin4 was left open for UART,
pin 2 was connected to Tx of master (PC),
pin 3 was connected to Rx of master (pc).
From docklight v2.3 we had set the com port , 115200, 8N1 communication settings.
we have placed command in format of Hex codes i.e.
start command
Tx: 7E 00 00 01 02 F9 7E ,
Rx REPLY: 7E 00 00 01 02 F9 7E ,
Tx: 7E 00 00 00 FF 7E,
Rx REPLY: x: 7E 00 00 00 FF 7E ,
Tx: 7E 00 03 00 FC 7E ,
Rx REPLY: 7E 00 03 00 FC 7E ,
Tx: 7E 00 D3 00 2C 7E,
Rx REPLY: 7E 00 D3 00 2C 7E .
OVER ALL FAN IS ALSO NOT ROTATING PHYSICALLY..
could you pls guide us why sps30 is not giving response to our commands.
how to proceed further with sps30
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpaulvha%2FSPS30_lora%2Fissues%2F1%3Femail_source%3Dnotifications%26email_token%3DAD2GBPHUW2OLY3GRJREULX3Q5I7SBA5CNFSM4KFUHXPKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IFRHSWQ&data=02%7C01%7C%7C4efa03758a66413834c908d796e2f23a%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637143773773970413&sdata=kSoe5R1GdvD3ifKkz4pDfA7E%2FbVR7Yj31d19oZnHV6E%3D&reserved=0>, or unsubscribe<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAD2GBPCVJU4F6WPQOVRNROTQ5I7SBANCNFSM4KFUHXPA&data=02%7C01%7C%7C4efa03758a66413834c908d796e2f23a%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637143773773970413&sdata=%2BuWmf7J0nZc5ZB99G%2Bhj1%2BVAybvZ8Uk2nBw64xpPIiA%3D&reserved=0>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
we are facing a critical issue with communication with SPS30 WITH PC
we were testing sps30 by connecting with docklight.
we have used usb to serial converter to command the sps30.
pin 1 was connected to poer supply +5vdc ,
pin 5 was connected to 0vdc.
pin4 was left open for UART,
pin 2 was connected to Tx of master (PC),
pin 3 was connected to Rx of master (pc).
From docklight v2.3 we had set the com port , 115200, 8N1 communication settings.
we have placed command in format of Hex codes i.e.
start command
Tx: 7E 00 00 01 02 F9 7E ,
Rx REPLY: 7E 00 00 01 02 F9 7E ,
Tx: 7E 00 00 00 FF 7E,
Rx REPLY: x: 7E 00 00 00 FF 7E ,
Tx: 7E 00 03 00 FC 7E ,
Rx REPLY: 7E 00 03 00 FC 7E ,
Tx: 7E 00 D3 00 2C 7E,
Rx REPLY: 7E 00 D3 00 2C 7E .
OVER ALL FAN IS ALSO NOT ROTATING PHYSICALLY..
could you pls guide us why sps30 is not giving response to our commands.
how to proceed further with sps30
The text was updated successfully, but these errors were encountered: