Serial Communications

I am currently trying to get serial communications between my PC and BB2 working, I am currently going through the programming interface (i.e. the DB9 connector), but hope to go to Bluesmirf wireless (or similar).

Communications work fine through the IDE. I tried writing a simple C++ routine on my PC to read a stream of bytes sent by BB2, I am finding it grabs the first few bytes correctly and then craps out.

  1. Does anyone have any suggestions offhand? As far as I know, the settings all match the ones on my port, but I could have missed something.

  2. Is there any example code around to do this (PC code to read/write a stream of bytes to BB2)?

  3. More generally, is there a single directory somewhere of stuff like tutorials, manuals & projects on this site? would be nice to see whats already available…

                        Thanks,
                           DPT