[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [bluetooth-dev] tcsetattr: Invalid argument



btd and btdm will start pppd. Starting pppd as you do on ttyS0 below will
prevent btd/btdm from using ttyS0, thus the error. ttyS0 is the interface
to the Bluetooth module, and not something pppd knows anything about.
You should use ttyBT0-ttyBT6 for pppd (after starting btd/btdm or bti).
 
//Peter
-----Original Message-----
From: Yang Xiaoyong [mailto:linuxbluetooth@xxxxxxx.com]
Sent: Monday, October 22, 2001 20:06
To: bluetooth-dev@xxxxxxx.com
Subject: [bluetooth-dev] tcsetattr: Invalid argument

Hi all,

 

I have a question about the ppp and btd. will btd start the ppp for us? or we should start our own btd by ourselves. I tried start PPP first in with the following commands:

pppd -detach passive debug noauth 192.168.0.1:192.168.0.2 /dev/ttyS0 9600           on the server side

pppd -detach passive debug noauth 192.168.0.2:192.168.0.1 /dev/ttyS0 9600           on the client side

If i start my ppp with that command, I got the error like or both server and client side:...

hysdev /dev/ttyS0, btdev /dev/ttyBT0, speed 115200 baud

fd_setup : tcsetattr: Invalid argument

...

kernel infomation:

 

[root@desktop12 /root]# tail -f /var/log/messages

Oct 22 09:19:22 desktop12 kernel: BT SYS: Bluetooth Driver Using ttyBT[0-6] (data), ttyBTC (ctrl [7])

Oct 22 09:21:23 desktop12 btd: Initiating signal handler

Oct 22 09:21:23 desktop12 btd: Opening dev /dev/ttyS0

Oct 22 09:21:23 desktop12 kernel: BT (driver) bt_open on line 7

Oct 22 09:21:23 desktop12 kernel: BT (driver) Registering tty on line 7 (btd)

Oct 22 09:21:23 desktop12 kernel: BT (driver) Now 1 open fd:s for ttyBTC [btd]

Oct 22 09:21:23 desktop12 kernel: BT (driver) bt_close on line 7

Oct 22 09:21:23 desktop12 kernel: BT (driver) Unregistering tty on line 7

Oct 22 09:21:23 desktop12 btd: Shutting down bluetooth stack

Oct 22 09:21:23 desktop12 btd: close_device

 

 

could you please give me some explanation about the relationship between the pppd and the btd?

 

 

Thanks

Xiaoyong