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

Re: [bluetooth-dev] question of bluetooth

dai yong wrote:

>  hi:
>   I have read the file of 'bluetooth.c' and  I have
> tried to write an application for it to complete the
> simple function of receiving and sending data,but I
> found I cann't receive the data I send.
>     I use the following code to complete the sending
> function:
>         fd=open("/dev/ttyS0",......);
>         bt_fd=open("/dev/ttyBT0",....);
>                   .

That's a good start, but you have to make some ioctl calls to setup the line
discipline between ttyS0 and ttyBT*. Take a look at how btd.c does it in the
apps subdir.


To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com