You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am experiencing a significant latency issue while retrieving GPS data via a serial connection using the "serialport" Node.js dependency on an ARM embedded system. The latency manifests as an initial 8-second delay, followed by the reception of multiple frames that should have been received during that period. This pattern repeats with subsequent delays.
When utilizing the port.on("data") or parser.on("data") events, there are noticeable delays in processing GPS data. This latency impacts the responsiveness of my application and the accuracy of the received data.
What should have happened?
Data should be emitted faster, for example when the buffer defined with "highWaterMark" is full.
How to reduce this latency of almost 8 seconds ?
Additional information
Steps Tried:
- Change setting "highWaterMark" to increase or reduce the buffer size
- Don't use the parser like in the code example
- Use port.read() with while loop or setTimeout
Important note: I must keep the baudrate at 4800
The text was updated successfully, but these errors were encountered:
SerialPort Version
9.0.7
Node Version
14.15.0
Electron Version
No response
Platform
Linux BUILDROOT 4.9.88 #1 SMP PREEMPT Tue Sep 11 00:27:43 CEST 2018 armv7l GNU/Linux
Architecture
ARM
Hardware or chipset of serialport
i.MX6
What steps will reproduce the bug?
GPS Data Source: The GPS data frames are sent via a reliable software, NemaStudio. Use burst mode
GPS Data Example:
Code example:
My logs :
What happens?
I am experiencing a significant latency issue while retrieving GPS data via a serial connection using the "serialport" Node.js dependency on an ARM embedded system. The latency manifests as an initial 8-second delay, followed by the reception of multiple frames that should have been received during that period. This pattern repeats with subsequent delays.
When utilizing the port.on("data") or parser.on("data") events, there are noticeable delays in processing GPS data. This latency impacts the responsiveness of my application and the accuracy of the received data.
What should have happened?
Data should be emitted faster, for example when the buffer defined with "highWaterMark" is full.
How to reduce this latency of almost 8 seconds ?
Additional information
Steps Tried:
- Change setting "highWaterMark" to increase or reduce the buffer size
- Don't use the parser like in the code example
- Use port.read() with while loop or setTimeout
Important note: I must keep the baudrate at 4800
The text was updated successfully, but these errors were encountered: