im working with the fez mini and working on my headtracking project. it connects a wiimote camera (removed and made into an i2c device) the fez mini a xbee.
im looking to transfer 2 integers over a serial line in a way that doesnt use strings (because they are slow). is it possible to do this? seems like it should be.
in winform stuff i can just use the BitConverter object but that doesnt seem to be available in NETMF. previously i was constructing a long string that held all my values but the processing of the string on the receivers side seems to perfom slow. i think its because having to do things like string splits takes too long for the speed i am trying to get it to operate at (think ~10ms between sends). the bytesAvailable queue seems to get backed up as i process.
i was using this
byte intBytes = Encoding.UTF8.GetBytes(txtInteger.Text);
but that only takes in a string (i want to use an int like 120 instead of sending “120”)
anybody have any advice? this should be easy, right? what am i not getting? sending numbers should be easier then sending a string…