All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marco Trudel <mtrudel@gmx.ch>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] BlueZ on ETRAX 100LX devboard 82+
Date: Sun, 12 Jun 2005 11:51:32 +0200	[thread overview]
Message-ID: <42AC05A4.1090105@gmx.ch> (raw)
In-Reply-To: <20050610050635.82925.qmail@web52804.mail.yahoo.com>

Hello Naved

Step 3 should automatically be done from hcid.
Step 2 (sdpd), is not needed if you haven't services on the axis board.

I suggest do program step 6 yourself. look at the sources from rfcomm and 
read a socket programming howto. bluez is basically socket programming. 
There are examples in the archive too.
If the problem is with the rfcomm utility, you'll get around it by doing 
this step yourself.


btw, does your script look like:
#!/bin/sh
#echo "PIN:1234"

or like:
#!/bin/sh
echo "PIN:1234"


regards
Marco


Naved Aziz wrote:
> Hi,
> 
> Basically, these are the steps that I am taking to set
> up an SP connection between the Axis board and the
> Nokia 6600:
> 
> (1) hcid
> (2) sdpd
> (3) hciconfig hci0 up #set up the bluetooth dongle
> (4) hcitool scan  #spot the phone, get the BD address
> (5) sdptool browse <BD address> #see services and 
>     their corrresponding channels
> (6) rfcomm connect /dev/rfcomm0 <BD address> <channel>
>     #where, if channel 2 is the one on nokia 6600    
>     providing serial port service, I put 2 for
> channel.   
>     The /dev/rfcomm0 is already created prior to 
>     flashing the image onto the board as follows:
>     mknod -m 0666 /dev/rfcomm0 c 216 0 
> 
> At this point, the phone gives a prompt, asking for a
> pin number.  The value in /etc/bluetooth/pin is 1234,
> and I have changed the pin_helper in hcid.conf to
> refer to a script file called qpin that looks like
> this:
> 
> #!/bin/sh
> #echo "PIN:1234"
> 
> This script file that I have created to work with the
> pin_helper is stored in the /tmp directory, since this
> is the only place where I am allowed to create any
> files, etc once an image has been downloaded onto the
> board. 
> 
> After I type in the pin on the Nokia 6600, there is a
> moment of wait, and then, the phone says "unable to
> connect", and the board says "can't create socket:
> resource temporarily unavailable".
> 
> You mentioned that the rfcomm utility creates a device
> that causes problems on some systems; how to get
> around this?
> 
> Thanks in advance for your help.
> 
> Naved
> 
> 
> 
>  
> --- Marco Trudel <mtrudel@gmx.ch> wrote:
> 
> 
>>Hello Naved
>>
>>
>>>So you're saying that you programmed, as in write
>>
>>the code, for the 
>>
>>>rfcomm protocol, while keeping the other (working)
>>
>>BlueZ stuff (meaning 
>>
>>>the other utilities like sdptool) on the board?  I
>>
>>will eventually have 
>>
>>>to write some applcation using rfcomm in order to
>>
>>exchange files and 
>>
>>>stuff with phones, but now, I am actually at a
>>
>>loss as to how to 
>>
>>>progress.  As a cherry on top, it has been only a
>>
>>couple of weeks since 
>>
>>>I have begun working with Linux. 
>>
>>Can you explain what you try to reach?
>>
>>
>>>Marco, it would mean a lot to me if you could
>>
>>provide me with some 
>>
>>>guidance as to how to get rfcomm working on the
>>
>>devboard 82+.  I am a 
>>
>>>total newbie at this, so if you could give me a
>>
>>step-by-step guide as to 
>>
>>>how to set up the Axis board with rfcomm support,
>>
>>I would be forever in 
>>
>>>your debt =)
>>
>>Everything works fine. The rfcomm utility creates a
>>device, this creates 
>>proglems on some systems. But rfcomm isn't broken.
>>
>>
>>regards
>>Marco
>>
>>
>>
> 
> -------------------------------------------------------
> 
>>This SF.Net email is sponsored by: NEC IT Guy Games.
>> How far can you shotput
>>a projector? How fast can you ride your desk chair
>>down the office luge track?
>>If you want to score the big prize, get to know the
>>little guy.  
>>Play to win an NEC 61" plasma display:
>>http://www.necitguy.com/?r=20
>>_______________________________________________
>>Bluez-users mailing list
>>Bluez-users@lists.sourceforge.net
>>
> 
> https://lists.sourceforge.net/lists/listinfo/bluez-users
> 
> 
> 
> 
> 	
> 		
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Mail - You care about security. So do we. 
> http://promotions.yahoo.com/new_mail
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
> a projector? How fast can you ride your desk chair down the office luge track?
> If you want to score the big prize, get to know the little guy.  
> Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users
> 
> 


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

  reply	other threads:[~2005-06-12  9:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-09 11:12 [Bluez-users] BlueZ on ETRAX 100LX devboard 82+ Naved Aziz
2005-06-09 11:43 ` Marco Trudel
2005-06-09 13:57   ` Naved Aziz
2005-06-09 15:26     ` Marco Trudel
2005-06-10  5:06       ` Naved Aziz
2005-06-12  9:51         ` Marco Trudel [this message]
2005-06-14 14:04           ` Naved Aziz
2005-06-14 18:26             ` Marco Trudel
2005-06-26 10:40               ` Naved Aziz
2005-06-26 13:36                 ` Naved Aziz
2005-06-13  8:32         ` Erwin Authried

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42AC05A4.1090105@gmx.ch \
    --to=mtrudel@gmx.ch \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.