Memory Stick Datalogger 27937 Variable Space / Array on BS2
JC68
Posts: 19
i just got the datalogger (27937) and it's really cool. while going through the only code samples i can find (which run fine by the way):
DataloggerDemoV1.0.bs2
DataloggerTestV1.0.bs2
i noticed the following line:
buffer·· VAR·· Byte(15)
is it required to give up over half the BS2 variable space to use it?· i am hoping to find away around this rather large array.
i checked the datalogger spec sheet and a search doesn't show any ref. to a buffer.
http://www.parallax.com/dl/docs/prod/comm/VDAPFirmwareSpec.pdf
thanks!!
·
DataloggerDemoV1.0.bs2
DataloggerTestV1.0.bs2
i noticed the following line:
buffer·· VAR·· Byte(15)
is it required to give up over half the BS2 variable space to use it?· i am hoping to find away around this rather large array.
i checked the datalogger spec sheet and a search doesn't show any ref. to a buffer.
http://www.parallax.com/dl/docs/prod/comm/VDAPFirmwareSpec.pdf
thanks!!
·
Comments
Basically, take a workbook and list all the possible responses from the datalogger for a given command or group of commands. Your routine has to read in the first character, repeating the SERIN if it times out, then checks the character. Based on the character, it jumps to one of several routines that reads the 2nd character, then jumps to a 3rd routine based on the 2nd character. If you know about state machines, that what this kind of thing is. Eventually, the "last" character of the response is reached and the subroutine reports what kind of message it was and that may be the only additional storage needed.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Extended command set and Shortened command set.
The extended commands are short ascii strings and the shortened commands are hex formatted numbers.
There·is·not a lot of·difference in size·when you send a command to the logger but the replies the logger sends back can be considerably shorter and easier to handle in shortened command mode .
Both command sets are listed in the firmware instructions.
Jeff T.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
FYI: to anybody considering the parallax datalogger, you should check it out.· it's a really COOL device.· from bs2 to excel charts, so easy...
thanks!!
ps
i think i need to get a bs2e or bs2sx