|
Info Request:
Ok, now that I have some spare time (finished re-writing the drivers for my Servo controller and GPS, to my liking)
Does anyone have the specifics on the Fusion Brain drivers? IE, are they simply FTDI to COM port, or is there more to them?
Also, does anyone have a protocol layout of the FusionBrain? I.E, what it can accept/transmit... source for the PIC would be awesome (I had to write drivers for my Servo controller via trial & error, with a little bit of help from a serial port listener, to find out what it was really sending/receiving =D
Nothing against the coders that made the drivers, but being that I have ALOT running through the laptop I run in my car, I'd prefer keep the interfaces as streamlined as possible.
BTW- FYSA- Visual Basic's MSComm thing-a-ma-bob needs encoding set to default, manually, to comunicate with 90% of the serial devices... took me almost a week to figure out why numbers above 127 were getting jarbled.
Also, I don't have an FB onhand yet, but do they run through a simple USB to Serial converter, and come up as a COM port? if so, I think I already have the answer to this one =D
For clarification, this is what I understand so far:
The FB comes up as a COM port; it receives and sends the same 64 byte chunk, the format is identical both ways:
bytes:
0-11: Relay Status
12-31: Analog In Status
32: Digital In Status
33-60: Zeros
61: 255/FF/11111111...
62: Fusion Brain version byte 1
63: Fusion Brain version byte 2
Relay Status is a 1 byte value in the format:
ccccccba
a: status 1=on,0=off
b: keepalive 1/0
c: timeout value 0-63
Analog In Status is in a 2-byte value, in the format:
aaaaaaaa,aa000000
a: 10-bit integer, 0-1023, 0=0v, 1023=5v
Digital In Status is all rolled into 1 byte, (I'm not 100% on the exact positioning of the bits, but have been told:
0aaaa000
a: Digital In 1,2,3,4: 1=on,0=off
Byte 61: required by the PIC to be 255, some sorta keepalive type thing - any additional info?
Bytes 62&63: major & minor version of the Firmware on the PIC- any additional info? IE, anything specific to look for, where the protocol changed?
How far off am I?
Thanks Again,
Mike
|