From: jiva_at_humboldt1.com
Date: 2001-06-13 04:26:33
In the event someone in the software crowd is anxious to get
going ... what about a data simulation routine? Simulates the
output of the unit ... pipe it out one com port and in the
other ... and then further software development can ensue.
Doesn't appear too challenging (to the unexperienced).
I'm like to try it but it will take me some time to
figure out even VB as I haven't done any programming since
dos days. Feedback on the concept and potential programmers?
(Seems like 2 channels would be adequate for now.)
-----------
The protocol (at the moment only EEG -> PC ) is defined in:
www.jhansmann.de\work\eeg\eeg_files\RS232EEG_release010226\software
(PC-side)\protocol (version2).txt
The following data-frame is transmitted each 1/256 seconds:
/*
enhanced protocol (version 2):
byte synch_1 // is always $a5
byte synch_2 // is always $5a
byte version // is 0x02 (tells the PC, which protocol is running)
byte frame_counter // is 0x00 at startup. increment 1 for each data
frame. wraparound 255->0
byte ch1_high // bit pattern is 000000bb. bb are the 2 high bits
of 10 bit AD-value
byte ch1_low
byte ch2_high // bit pattern is 000000bb. bb are the 2 high bits
of 10 bit AD-value
byte ch2_low
byte ch3_high // bit pattern is 000000bb. bb are the 2 high bits
of 10 bit AD-value
byte ch3_low
byte ch4_high // bit pattern is 000000bb. bb are the 2 high bits
of 10 bit AD-value
byte ch4_low
byte ch5_high // bit pattern is 000000bb. bb are the 2 high bits
of 10 bit AD-value
byte ch5_low
byte ch6_high // bit pattern is 000000bb. bb are the 2 high bits
of 10 bit AD-value
byte ch6_low
byte switches // 1 byte digital inputs (PD2..PD5) in the lower
4 bits.
all together 17 bytes per frame.
Note that channel data high and low byte are swapped compared to the
previous version. By this measure together with the unique pattern in
synch_1 and synch_2 it is guaranteed, that re-synch (i.e after
disconnecting the data line) is always safe and not just by chance.
*/
This archive was generated by hypermail 2.1.4 : 2002-07-27 12:28:31 BST