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

[bluetooth-dev] ppp problems



Hi all,

I have a problem with running ppp over the emulated serial port. I am running the latest OpenBT software with CSR kits running H4. I use the exprimental source, on one side btdm and on the other side bti and btcon. I get rfcom connections that works just fine and I can pipe information to the ttyBTX's. I have although problem to start ppp on these ttys.

On one side I run:

btdm -u /dev/ttyS1 -s 19200 -m 0
Registered bluetooth line discipline on /dev/ttyS1
Remote bd: 00:02:5B:FF:06:33

And on the other:
bti, rfconn and then:

pppd /dev/ttyBT0 19200 crtscts defaultroute 191.168.0.9:192.168.0.12

This results in the following syslog:

Jun 14 16:37:31 Jimmy pppd[961]: pppd 2.3.11 started by root, uid 0
Jun 14 16:37:31 Jimmy kernel: BT (driver) bt_open on line 0
Jun 14 16:37:31 Jimmy kernel: BT (driver) Registering tty on line 0 (pppd)
Jun 14 16:37:31 Jimmy kernel: BT (driver) bt_set_termios - forwarding to serial driver
Jun 14 16:37:31 Jimmy kernel: BT (driver) bt_open on line 0
Jun 14 16:37:31 Jimmy kernel: BT (driver) Registering tty on line 0 (pppd)
Jun 14 16:37:31 Jimmy kernel: BT SYS: warning :bt_register_tty : line busy !
Jun 14 16:37:31 Jimmy kernel: BT (driver) bt_close on line 0
Jun 14 16:37:31 Jimmy kernel: BT (driver) Unregistering tty on line 0
Jun 14 16:37:31 Jimmy pppd[961]: Failed to reopen /dev/ttyBT0: Device or resource busy
Jun 14 16:37:32 Jimmy kernel: BT (driver) bt_set_termios - forwarding to serial driver
Jun 14 16:37:32 Jimmy kernel: BT (driver) bt_close on line 0
Jun 14 16:37:32 Jimmy kernel: BT (driver) Unregistering tty on line 0
Jun 14 16:37:32 Jimmy kernel: BT SYS: warning :bt_unregister_tty : tty not prev registered
Jun 14 16:37:32 Jimmy pppd[961]: Exit.

Why is not pppd able to open the tty when I can pipe to the device or am I using the pppd with any wrong options?

Thanks,
Peter