linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] problem adding 1284 ID SDP attribute
Date: Mon, 12 Dec 2005 10:34:36 +0100	[thread overview]
Message-ID: <1134380076.1468.9.camel@blade> (raw)
In-Reply-To: <20051212092649.65060.qmail@web32403.mail.mud.yahoo.com>

Hi Arch,

> I am having a problem adding the 1284ID attribute. The 1284ID is of
> type String. (So I use SDP_TEXT_STR8) However, the first 2 characters
> of this string are to be interpreted as a 2-byte length field. The
> length of my string is 80 which is 0x0050 in HEXADECIMAL. So when I
> add it as a string, the SDP function interprets the 1st byte as a null
> terminator and sends an empty string.
>  
> I tried increasing the length of my string to 0x0101 to avoid a 0x00
> byte. However, this cannot be done since the maximum length for an
> SDP_TEXT_STR8 is only 255 which is 0x00FF.
>  
> In this case, how will I be able to add a 1284ID string attribute
> whose length field contains a 0x00 byte?

last week ago or so, Collin ran into the same problem with the HID
report descriptor. It is also a binary string. With bluez-libs-2.23 you
can use sdp_data_alloc_with_length() to specify the length of the string
and then it should work fine.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

      parent reply	other threads:[~2005-12-12  9:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-12  9:26 [Bluez-users] problem adding 1284 ID SDP attribute Arch Sayo
2005-12-12  9:34 ` oj ravadilla
2005-12-13  2:01   ` oj ravadilla
2005-12-13  2:59     ` oj ravadilla
2005-12-13  5:35     ` Marcel Holtmann
2005-12-12  9:34 ` Marcel Holtmann [this message]

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=1134380076.1468.9.camel@blade \
    --to=marcel@holtmann.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).