My guess is that you are running into the issue that the interrupts caused by the HSERIAL system (hserin/hserout), is causing the data stream to the SSC-32 to be corrupted. Been there. What I did to resolve this with the DIY XBee work, was to introduce a function:
; [ControlAllowInput] - Are we allowing input?
_fCAI var byte
if _fCAI then
g_fAllowInput = _fCAI
I then soldered on a wire to the RTS line of the xbee adapter and then connected it to an IO pin on the BB2. I use one of the IO pins that output 3.3V to be safe (I believe that is pins 7 or
The XBee needs to be configured to watch this signal: Command "ATD6 1". Code in DIY...
There is code in the main part that calls off to this function to disable the XBEE while we are outputting stuff to the SSC-32. Depending on what version of code you are using, it may be there or not, also the function name may have changed...