List Info

Thread: RecHandle




RecHandle
country flaguser name
Austria
2007-04-10 05:30:47
I'm writing start/stop scripts for bluetooth services.
Assuming I want to run several servises of the same type and
stop them
later on. How can I make a difference between the related
sdpd records
easily? Unfotunately  'sdptool add' does not provide the
RecHandle.

Surprisingly RecHandles differ with the command issued. Is
there any
special reason for that behaviour?

# sdptool search --bdaddr local SP
[...]
Service RecHandle: 0x10001
[...]

# sdptool get SP
[...]
Service RecHandle: 0x0
[...]


------------------------------------------------------------
-------------
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-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users


Re: RecHandle
country flaguser name
Germany
2007-04-10 09:22:46
Hi Gerhard,

> I'm writing start/stop scripts for bluetooth services.
> Assuming I want to run several servises of the same
type and stop them
> later on. How can I make a difference between the
related sdpd records
> easily? Unfotunately  'sdptool add' does not provide
the RecHandle.

don't even do it this way. The services should register the
records by
themself and all of the ones included in bluez-utils do so.

Regards

Marcel



------------------------------------------------------------
-------------
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-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users


Re: RecHandle
country flaguser name
Austria
2007-04-10 14:31:11
Hi Marcel,

>> I'm writing start/stop scripts for bluetooth
services.
>> Assuming I want to run several servises of the same
type and stop them
>> later on. How can I make a difference between the
related sdpd records
>> easily? Unfotunately  'sdptool add' does not
provide the RecHandle.
>
> don't even do it this way. The services should register
the records by
> themself and all of the ones included in bluez-utils do
so.
>

Well, rfcomm does not. Or is there something wrong with
mine?


------------------------------------------------------------
-------------
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-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users


Re: RecHandle
country flaguser name
Germany
2007-04-10 14:34:10
Hi Gerhard,

> >> I'm writing start/stop scripts for bluetooth
services.
> >> Assuming I want to run several servises of the
same type and stop them
> >> later on. How can I make a difference between
the related sdpd records
> >> easily? Unfotunately  'sdptool add' does not
provide the RecHandle.
> >
> > don't even do it this way. The services should
register the records by
> > themself and all of the ones included in
bluez-utils do so.
> >
> 
> Well, rfcomm does not. Or is there something wrong with
mine?

that is true, but RFCOMM is also not a service
implementation. However
feel free to send in patches if you think it is useful.

Regards

Marcel



------------------------------------------------------------
-------------
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-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users


Re: RecHandle
country flaguser name
Austria
2007-04-10 15:43:57
Hi Marcel,

my idea was to have an embedded device automatically
connecting to a host
system providing rfcomm. This embedded device might go down
from time to
time but should normaly be streaming sensor data. To keep
things easy I
thougt it would be advantageous to avoid implementing an ip
streaming in
favour of rfcomm.
Thatfor on hostside I wrote a script to have 'rfcomm listen'
restarted
everytime it goes down due to hangup. The embedded device
should
{,re}connect to it whenever it starts up.

This is working quite well with a single connection. I'm not
planning to
have more than one but the script would be more elegante if
this were
possible.
But this also does mean that I have to offer to stop a
channel without
closing one of the others.

You don't think that this is a good idea, do you?
Respect to all taking part!

Regards,
gerhard


2 files attached:
rc_rfcomm - bash start/stopscript (replace the function
'boot_mesg',
'evaluate_retval' and 'echo_warning' with something
appropriate or get
their definitions here:
http://www.linuxfromscratc
h.org/blfs/downloads/6.2.0/blfs-bootscripts-20060910.tar.bz2
)
rfcomm_listen - bash daemon script called from rc_rfcomm.
------------------------------------------------------------
-------------
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-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users


  
  
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )