-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Hi there, recently built a seisberry and am very happy with the form and simplicity of it. The only downside I'm finding is the inflexibility of viewing and processing the data. After some research I happened across the open source rsudp software intended for use with the raspberry shake https://github.com/raspishake/rsudp. I have very limited expertise in programming, but it seems like it would be relatively straightforward to send the data from the seisberry over UDP in the format that the rsudp software is expecting. The necessities of the datastream are here: https://manual.raspberryshake.org/udp.html
Individual data packets are sent to port 8888 on the Shake Pi computer by default. The output format is straightforward:
Each data packet contains data for a single channel only
Entire data packet is wrapped with open and closing braces: { }
All fields are separated by a comma
First element defines the channel name - string in single quotes
Second element defines the timestamp, in epoch seconds, down to milliseconds, of the first data point - float
All remaining elements are the data points themselves - integer
...and here is an example packet:
{'SHZ', 1507760140.530, 614, 916, 1095, 1156, 839, 923, 861, 856, 861, 789, 568, 823, 965, 788, 835, 991, 1028, 1225, 1142, 828, 682, 635, 771, 978, 834, 1167, 1116, 888, 627, 564, 944, 994, 780, 652, 811, 915, 832, 1134, 1020, 594, 756, 782, 748, 810, 864, 936, 977, 1014, 676, 502}
If you could at least point me to how to parse the raw data coming off the ad/da board I can probably bodge something together to send the packets as needed.
Thanks!