Problems with multiple incoming serial connections
Problems with multiple incoming serial connections
- Subject: Problems with multiple incoming serial connections
- From: Tico Ballagas <email@hidden>
- Date: Fri, 25 Feb 2005 17:59:54 +0100
Hello-
I need to support multiple incoming serial (RS-232) connections for an
application that I'm developing. To set up my environment, I've
created two different incoming serial ports using the Bluetooth Serial
Utility. I've found that once I successfully connect and transfer data
through one serial port, I'm unable to use the other port. To be more
explicit, here are the chain of events:
1) Launch an application that opens and waits for data on
/dev/tty.BTSerialPort1
2) Use a bluetooth enabled mobile phone to connect and send data
3) Close connection (bluetooth status in menu bar shows the device is
no longer connected)
4) Launch an application that opens and waits for data on
/dev/tty.BTSerialPort2
5) Use the same bluetooth enabled mobile phone to connect and try to
send data
This is where the problem occurs. I'm able to successfully connect to
/dev/tty.BTSerialPort2 as indicated by both the mobile phone and the
Menu Bar, but then a few seconds later the connection terminates for no
apparent reason with no data transfered.
After this point, I can still successfully transfer to
/dev/tty.BTSerialPort1 without any problems. But I can never
successfully transfer data on /dev/tty.BTSerialPort2. I have found
that if I restart, sometimes I am able to transfer data to the
BTSerialPort2 if I connect to it first. However, after that I'm unable
to transfer to BTSerialPort1.
Has anyone else run into this problem? Any suggestions?
Thanks
-Tico
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden