Hello,
My task is to have an application on the Shimmer that logs the
accelerometer data on the SD card and once in one hour sends this data
to a PC/Smartphone through Bluetooth.
This should be repeated continuous process working until the battery
dies or is put for charging.
I have started to solve this problem by adapting JustForLogging application.
The current version of my application is successfully logging data,
establishing a Bluetooth connection and trying to send a file dividing
it in packets.
I have a C# application that is receiving these packets, parse/convert
them and saves into a file.
The problem that I am having is in the Bluetooth packet sending. It is
unpredictable.
Sometimes the whole file is send correctly.
Sometimes there is some unknown byte at the beginning and all other
bytes are not correct.
Sometimes it doesn't start with the first byte of the file in the SD card.
Sometimes is losing some parts of the file.
I am cleaning the buffer on the PC side every time when the connection
is established, so I think the problem is on the Shimmer side.
If you have any idea why these problems occur please give me some guidance.
Right now I plan to make a simple mechanism of Send/Receive/Acknowledge
to be sure what will be send. If you also have some ideas on this please
write to me.
Thanks in advance.
Hristijan
_______________________________________________
Shimmer-users mailing list
[email protected]
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users