linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-devel] A small query
@ 2005-05-03 13:09 Mayank Batra
  2005-05-03 15:38 ` Marcel Holtmann
  0 siblings, 1 reply; 5+ messages in thread
From: Mayank Batra @ 2005-05-03 13:09 UTC (permalink / raw)
  To: BLUEZ DEVELOPERS LIST

Guys,

Does it matter whether I declare packet_type before or
after message_type. I am not sure, but if I declare it
before somehow, the hcidump on the a2recv side is not
correct. 
I mean, there is something wrong in the hcidump. It
considers the commands as 'Cont' command and this is
when the source sends me a disconnect without
hesitation.
What I want to say is that if I declare packet_type
after message_type, then both the source's and sink's
dump are ok.


struct avdtp_header {
	uint8_t packet_type:2;
	uint8_t message_type:2;
	uint8_t transaction_label:4;
	uint8_t signal_id:6;
	uint8_t rfa0:2;
} __attribute__ ((packed));



Mayank

________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [Bluez-devel] A small query
@ 2005-05-08 12:44 Mayank Batra
  0 siblings, 0 replies; 5+ messages in thread
From: Mayank Batra @ 2005-05-08 12:44 UTC (permalink / raw)
  To: bluez-devel

Marcel,


> > Swapping message_type and packet_type makes no
> > difference to a2play but it makes a lot of
> difference
> > to a2recv.
> 
> Why can this be? Doesn't a2play uses message_type
> and packet_type at
> all?
> 


This is because a2play sends commands and not replies.
In commands the message_type is always 0 and
packet_type is also 0, thus it makes no difference
whether packet_type is before or after message_type.

But, in a2recv we have to send replies, and this is
when the trouble comes up. In replies, message_type is
whether the message was acceped or denied. But
packet_type is again 0. So here message_type is not
always 0. Thus interchanging them WILL create a mess
up.

Mayank

________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-05-08 12:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-03 13:09 [Bluez-devel] A small query Mayank Batra
2005-05-03 15:38 ` Marcel Holtmann
2005-05-05 12:29   ` Mayank Batra
2005-05-05 13:13     ` Marcel Holtmann
  -- strict thread matches above, loose matches on Subject: below --
2005-05-08 12:44 Mayank Batra

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).