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

RE: [bluetooth-dev] collecting data from serial port and send via bt-radio?


I assume you already have an application which fetch the data from the serialport?
In that case you will also need to produce the XML-file from the data received, 
there is probably some libraries for this in Linux which can be used. For the
transfer I suggest you use PAN to setup a network-connection over bluetooth
and then send your generated file over standard TCP/IP. There is a tool
called bnep_connect which allows you to initiate the BT-link. As example
you have initiated the connection at bnep device 0. You can then use
bnep0 just like a standard ethernetdevice, ifconfig bnep0 <ip> up, and
then send data through that interface. You will probably have to setup
your routes correct so the data is sent to the BNEP-interface instead
of standard eth0. This is probably the easiest way to do it, otherwise
you will have to create custom application on both sides of the BT-link
which uses, as example, rfcomm for sending the data. You can also use
the LAN access profile which uses PPP over a rfcomm-channel but my opinion
is that LAN profile is an unnecessary complicated way to accomplish 
network connectivity over Bluetooth (that's why PAN was created :) ).

Best Regards
Anders Johansson

> -----Original Message-----
> From: Patrick Dolz [mailto:dlzpat001@xxxxxxx.za]
> Sent: Friday, February 28, 2003 1:49 PM
> To: Anders Torbjörn Johansson
> Subject: Re: [bluetooth-dev] collecting data from serial port and send
> via bt-radio?
> Anders Torbjörn Johansson wrote:
> > Hello,
> >  
> > My suggestion is to use LAN or PAN to send the data over standard 
> > TCP/IP network. Another way to do it is to forward anything 
> from your 
> > serialport by
> > the Serial Port Profile which emulates a serialport over 
> Bluetooth. On 
> > the other side of the connection you can then have the data 
> processed 
> > (making
> > the XML-file or whatever) and maybe email it somewhere or 
> send it to 
> > another server in your network.
> >  
> > Just some suggestions, there is a lot of ways to accomplish this.
> >  
> > Best Regards
> > Anders Johansson
> >
> >     -----Original Message-----
> >     *From:* Patrick Dolz [mailto:dlzpat001@xxxxxxx.za]
> >     *Sent:* Thursday, February 27, 2003 2:36 PM
> >     *To:* bluetooth-dev@xxxxxxx.com
> >     *Subject:* [bluetooth-dev] collecting data from serial port and
> >     send via bt-radio?
> >
> >      
> >     hi there,
> >     i have a question: i'm trying to collect sensor data from the
> >     serial port, wrap them in xml and send the packets via the
> >     bluetooth radio! any suggestions what i should do?
> >      
> >     have a good day,
> >     patrick
> >
> i need to pick up the sensor data at the serial port and send 
> it via the 
> bluetooth radio to another bluetooth device.
> is there no way i can wrap the data into xml on the dev-board already?
> thank's for your quick reply,
> patrick

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