You are extraordinarily knowledgeable Paul, is there any references you'd recommend so I may learn some of these fundamentals you speak of, I feel like I'm wasting your time, but I think we are very close.
OK. So you want to decode the data from the headset on the Arduino the headset is attached to?
Yes
This implies that no, you want the Arduino with the headset attached to just transmit the raw data, and the remote Arduino will decode it.
Yes again, The Arduino on the headset will decode the information and the remote Arduino can decode it too. As they'll both require the information.
Serial is an instance of the HardwareSerial class. NewSoftSerial is a class name. Not the same things at all.
If I am reading this correctly, so now that I have replaced the instances in the library from HardwareSerial to NewSoftSerial, I should be using my newly defined 'Headset' in Brain brain(NewSoftSerial); ?
This is the output I get when I try this:
Brain brain(Headset);
In file included from BrainSoftSerialOut.cpp:5:
C:\Users\Rj\Documents\Arduino\libraries\ArduinoBrainLibrary/Brain.h:18: error: expected `)' before '&' token
C:\Users\Rj\Documents\Arduino\libraries\ArduinoBrainLibrary/Brain.h:45: error: ISO C++ forbids declaration of 'NewSoftSerial' with no type
C:\Users\Rj\Documents\Arduino\libraries\ArduinoBrainLibrary/Brain.h:45: error: expected ';' before '*' token
BrainSoftSerialOut:10: error: no matching function for call to 'Brain::Brain(NewSoftSerial&)'
C:\Users\Rj\Documents\Arduino\libraries\ArduinoBrainLibrary/Brain.h:14: note: candidates are: Brain::Brain()
C:\Users\Rj\Documents\Arduino\libraries\ArduinoBrainLibrary/Brain.h:14: note: Brain::Brain(const Brain&)
So what I did was add the #include NewSoftSerial on the libraries and guess what!! It seems to have worked!!
The headset is functioning properly and as expected! Thanks for your help Paul!
I'm wondering if i should branch the wiring of the new softserial input on pin 2 into two and have the other go to the TX pin of the Fio so that it is automatically transmitted over-the-air by the Xbee, would that work? Would I need to have any code or should it just happen automatically?
Thanks again for your help!