Need help to log serial stream to SD.
icecuberyder
Posts: 6
Hi All,
I need a bit of programming help.
I want to log a continous stream of serial data to a SD card, the serial data in question is from the ibus signal in my car, all the examples I have seen so far seem to look for a "stop" character like CR/LF/$00 to work with or log blocks of data, but the ibus stream does not have that, it does however use hex 00 to FF and everything inbetween.
I am using the standard OBEX full duplex serial, and rays SD card objects.
(If you have an ibus converter/interpreter, would you please post it to the OBEX?
or to this thread, or email it to me, even if it is incomplete and/or ugly.
I have seen some talk of ibus projects on the forums but nothing came of it.)
I am using Ray's PSM,
but the hardware side is not a problem, only my rusty programming "skills".
I need a bit of programming help.
I want to log a continous stream of serial data to a SD card, the serial data in question is from the ibus signal in my car, all the examples I have seen so far seem to look for a "stop" character like CR/LF/$00 to work with or log blocks of data, but the ibus stream does not have that, it does however use hex 00 to FF and everything inbetween.
I am using the standard OBEX full duplex serial, and rays SD card objects.
(If you have an ibus converter/interpreter, would you please post it to the OBEX?
or to this thread, or email it to me, even if it is incomplete and/or ugly.
I have seen some talk of ibus projects on the forums but nothing came of it.)
I am using Ray's PSM,
but the hardware side is not a problem, only my rusty programming "skills".
Comments
or do you want to translate the bytes into cleartext-commands?
keep the questions coming
best regards
Stefan
*grin* hope you use a thermo-seat for riding icecubes. Or do you belong to the jackass-team? They prefer naked riding with frozen-egg-fixing :-)
In the long run I mean to use the psm as a replacement for my dead MID console, as well as GPS logging amongst other things as well.
Heh, that Icecuberyder nick has been with me for about 25 years now.. invented some cold winter night here in Iceland, whilst dialling BBS's in the UK with my trusty old BBC :-)
I don't know the SD card pins on the PSM, maybe you need mount_explicite() instead of mount.
Andy
P.S. I think ice cube riding and snowboarding as a beginner have much in common...