Return-Path: Message-ID: Date: Tue, 19 Dec 2006 12:26:32 -0800 From: "Mark S. Townsley" To: "BlueZ users" In-Reply-To: MIME-Version: 1.0 References: Subject: Re: [Bluez-users] minicom over /dev/rfcomm0 Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0468272747==" Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net --===============0468272747== Content-Type: multipart/alternative; boundary="----=_Part_15159_2925361.1166559992313" ------=_Part_15159_2925361.1166559992313 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Bas: thanks for your reply. So are you implying that if I do not go through RFCOMM and all the sockets stuff, I can actually open /dev/rfcomm0 and get back a file descriptor just like any other serial port? Thanks Mark On 12/19/06, Bas Schulte wrote: > > Hi, > > On 19-dec-2006, at 20:23, Mark S. Townsley wrote: > > > In many examples that I found online where people are trying to > > make their cellphone surf web or somehow talk to their cellphone > > from Bluez, I notice that they can often do minicom over /dev/ > > rfcomm0 in the setup. > > > > If I want to access the serial port service like that, but from my > > C program, do I just treat /dev/rfcomm0 as a serial device and use > > standard Unix serial programming libraries from my C program to do so? > > Just curious. Thanks in advanced for any tip. > > You sure can. > > You can of course use the code provided by Manuel too but then your > code won't work without rfcomm/bluetooth. The nice thing is that if > you keep it generic you can test your application using any old > serial connection. Or use a pipe in the filesystem etc.. > > Caveat: I can't get mgetty to work by feeding it /dev/rfcommX though : > ( It should work, must be one of those things ;) > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Bluez-users mailing list > Bluez-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bluez-users > ------=_Part_15159_2925361.1166559992313 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Bas:  thanks for your reply.

So are you implying that if I do not go through RFCOMM and all the sockets stuff, I can
actually open /dev/rfcomm0 and get back a file descriptor just like any other serial port?

Thanks

Mark


On 12/19/06, Bas Schulte <basschulte@gmail.com> wrote:
Hi,

On 19-dec-2006, at 20:23, Mark S. Townsley wrote:

> In many examples that I found online where people are trying to
> make their cellphone surf web or somehow talk to their cellphone
> from Bluez, I notice that they can often do minicom over /dev/
> rfcomm0 in the setup.
>
> If I want to access the serial port service like that, but from my
> C program, do I just treat /dev/rfcomm0 as a serial device and use
> standard Unix serial programming libraries from my C program to do so?
> Just curious.  Thanks in advanced for any tip.

You sure can.

You can of course use the code provided by Manuel too but then your
code won't work without rfcomm/bluetooth. The nice thing is that if
you keep it generic you can test your application using any old
serial connection. Or use a pipe in the filesystem etc..

Caveat: I can't get mgetty to work by feeding it /dev/rfcommX though :
( It should work, must be one of those things ;)


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

------=_Part_15159_2925361.1166559992313-- --===============0468272747== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV --===============0468272747== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users --===============0468272747==--