3文章/ 0
Last post
svl0822
Offline
Last seen:5 years 7 months ago
Joined:2014-11-17 19:20
SPS one byte at a time

你好对话框,

I am using the SPS serial to BLE application and it mostly works well - however, I noticed that when I am sending data at 250Hz (1 byte every 4 ms), I receive the data in packets of 7-8 bytes together as one number. Is it possible to change the code such that every time a single byte is received, it gets immediately relayed via BLE? Does this have something to do with the UART trying to fill up its buffer before being processed? Where can I change this?

Thanks,
svl0822

JE_Dialog
Offline
Last seen:2 days 2 hours ago
Staff
Joined:2013-12-05 14:02
Hello svl0822, yes, this will

Hello svl0822, yes, this will most likely be due to the buffer . This is partly by design because the DSPS buffering has been optimised to get the highest throughput at lowest possible power . Right now we're pretty resource constrained so we're not going to be able to look at modifying this , but let me have a check around the team to see if anyone has done a modification to this . If i find something, i'll respond here. BR JE_Dialog

svl0822
Offline
Last seen:5 years 7 months ago
Joined:2014-11-17 19:20
JE_DIalog, Thanks.

JE_DIalog,

Thanks.