• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Serial Port Profile baud rate problems

 
Paul Atkins
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Does anyone know if it's possible to set the baud rate of a serial port profile connection?

I'm trying to connect to a device that's sending data over Bluetooth at 9600 baud. After some trial and error I can read data continuously from the device by making my thread sleep for around 30ms between reads of 37 bytes.

However, after a large amount of data has been read, the data being read in appears to be corrupted, and out of sync with the data being sent.

Any ideas how to set the baud rate, so I can just read in data without problems?

Paul
 
Jason Fox
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using a CommConnection, you can specify the baudrate in the connection string:


Wether or not the device you're working with will respect the baudrate, parity, etc., I do not know. I can tell you that most of the phones I've worked with (mostly IDEN) usually respect the baudrate, but completely ignore any parity specs).
 
Paul Atkins
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jason,

Thanks for the reply.

I've looked at CommConnection, however the Nokia 6630 returns null when trying to get a list of the available COM ports using:



Also, I couldn't see a way to open a SPP connection using the CommConnection, as the url's used are completely different.

i.e.

SPP


Comm


I can tell you that most of the phones I've worked with (mostly IDEN) usually respect the baudrate, but completely ignore any parity specs).


Have you got any example code of connecting to a bluetooth serial port profile using a CommConnection? If you have could you post it, as it'd be very useful!

Cheers,

Paul

[ March 03, 2005: Message edited by: Paul Atkins ]
[ March 03, 2005: Message edited by: Paul Atkins ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic