Replies: 2 comments
-
My expectation would be that you cannot share a serial port (each usage place "owns" it), but instead is has to be either-or. And as I read that |
Beta Was this translation helpful? Give feedback.
-
OK. When I looked at the code it appears that SerialSend5 may be sending the command but the received data is accessed and printed by the LD2410 driver itself. So that explains that there is no contention to read the data by two different functions of the code. |
Beta Was this translation helpful? Give feedback.
-
I am using LD2410B device which is connected to GPIO1/3 HW Serial Port.
The sensor is sending the data more than one time within a second.
When the sensor is working, I can use SerialSend5 to send commands to the sensor and can receive the responses to the command.
So what it means is while the sensor driver is active, SerialSend5 command has access to the serial port.
When I try to access the serial port via script the access to serial port is not possible.
Is there way to access the already opened serial port via scripting?
My second question is how to read the bytes in the receive buffer and convert them to hex representation
inside the script?
There is a command to convert a received string in to decimal ie.
hd("hstr") = converts hex number string to a decimal number
what is the hstr here?
Can it be like?
hstr=sa()
Beta Was this translation helpful? Give feedback.
All reactions