syntax for advertising a service with specific uuid
Hello,
I'd like to create a client-server application in which a linux box (running bluez) will advertise a service by declaring a specific service uuid. the service needs to only be capable of sending / receiving strings so i'm assuming declaring a btspp service should be enough. that specific uuid will be embedded into a j2me midlet running on nokia 6600 (implementing jsr-82). the midlet will then search for service using url of format:
"btspp://1234567890123456789012" (uuid *has* to be chars long - nokia's apparent implementation limitation). so (correct me if i'm wrong )what i need is:
1.add Serial Port service via "sdptool add SP"
2.set attributeID 0x0003 (ServiceID) for the above Service Record to "1234567890123456789012"
correct?
i'm not sure of the sdptool syntax for step 2.
problem:
1.when i do step 1, i get "Serial Port registered". but, if i issue "sdptool get SP" afterwards, i get description of "SDP Server" (0x1000). shouldn't it return something like "SerialPort" (0x1101) - service class id for SerialPort per bt spec?
note: actually even if i issue "sdptool add LAN", subsequent "sdptool get LAN" returns same description as above.
2. also, i couldn't figure out exact syntax to accomplish step 2 above (set attribute):
sdptool setattr --help returns
"usage: sdptool get rec_handle attrib_id attrib_value", which seems not to be what i need to do...
thanks
-nikita
Signature · 23 lines
=================================== Nikita Tovstoles, MTS Demolab (Executive Communications) Sun Microsystems, Inc. 4170 Network Circle USCA17, Office 3705 Mailstop USCA17-205 Santa Clara CA 95054 e-mail: [email protected] office: 408-276-5348 / x15348 cell: 650-996-8173 =================================== ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Bluez-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel Holtmann
maintainerHi Nikita,
Quoted 8 lines
I'd like to create a client-server application in which a linux box (running bluez) will advertise a service by declaring a specific service uuid. the service needs to only be capable of sending / receiving strings so i'm assuming declaring a btspp service should be enough. that specific uuid will be embedded into a j2me midlet running on nokia 6600 (implementing jsr-82). the midlet will then search for service using url of format:
Quoted 8 lines
"btspp://1234567890123456789012" (uuid *has* to be chars long - nokia's apparent implementation limitation).
so (correct me if i'm wrong )what i need is:
1.add Serial Port service via "sdptool add SP"
2.set attributeID0x0003(ServiceID) for the above Service Record to "1234567890123456789012"correct?
I am not familiar with Symbian phones or JSR-82, so I can't help here.
Quoted 9 lines
i'm not sure of the sdptool syntax for step 2.
problem:
1.when i do step 1, i get "Serial Port registered". but, if i issue "sdptool get SP" afterwards, i get description of
"SDP Server" (0x1000). shouldn't it return something like "SerialPort" (0x1101) - service class id for SerialPort per bt spec?
note: actually even if i issue "sdptool add LAN", subsequent "sdptool get LAN" returns same description as above.
I prefer you read the manpage of sdptool. The get command needs the record handle of the previous created record.
Quoted 6 lines
2. also, i couldn't figure out exact syntax to accomplish step 2 above (set attribute):
sdptool setattr --help returns"usage: sdptool get
rec_handleattrib_idattrib_value", which seems not to be what i need to do...
Again. Look at the manpage.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
A message that is not in the archive (sent off-list or not yet received): [email protected]
Marcel Holtmann
maintainerHi Nikita,
Quoted 10 lines
Quoted 4 lines
I prefer you read the manpage of sdptool. The get command needs the record handle of the previous created record.
"man sdptool" returns nothing. the only thing i can look at is "sdptool --help". if that's not what you were referring to, where is sdptool's manpage?
%sdptool add --help
add [--channel] service
come on, check you MANPATH or look at the CVS
http://cvs.sourceforge.net/viewcvs.py/bluez/utils/tools/sdptool.1?view=markup
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel