Linux bluetooth development
 help / color / mirror / Atom feed
From: Ka Kin Cheung <michaelhku2002@yahoo.com.hk>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] rfcomm question 2-AT command
Date: Sat, 29 Jan 2005 13:52:15 +0800 (CST)	[thread overview]
Message-ID: <20050129055215.33954.qmail@web60901.mail.yahoo.com> (raw)
In-Reply-To: <1106940245.10580.2.camel@pegasus>

Hi Marcel!
    When I ran my main program with "hcidump -t"
running in other terminal, the following occurs:
When I choose an item and then the other menu, for
which the items are found in MySQL DB, is generated,
the hcidump -t shows
1106977607.097970 > ACL data: handle 0x0029 flags 0x02
dlen 17
1106977607.099967 > ACL data: handle 0x0029 flags 0x01
dlen 5
    L2CAP(d): cid 0x0040 len 18 [psm 0]
1106977607.668238 < ACL data: handle 0x0029 flags 0x02
dlen 38
    L2CAP(d): cid 0x0040 len 34 [psm 0]
1106977607.690862 > HCI Event: Number of Completed
Packets (0x13) plen 5
1106977607.716864 > ACL data: handle 0x0029 flags 0x02
dlen 17
1106977607.718855 > ACL data: handle 0x0029 flags 0x01
dlen 17
1106977607.719863 > ACL data: handle 0x0029 flags 0x01
dlen 6
    L2CAP(d): cid 0x0040 len 36 [psm 0]
1106977608.216723 < ACL data: handle 0x0029 flags 0x02
dlen 15
    L2CAP(d): cid 0x0040 len 11 [psm 0]
1106977608.221762 > HCI Event: Number of Completed
Packets (0x13) plen 5
1106977608.246760 > ACL data: handle 0x0029 flags 0x02
dlen 17
    L2CAP(d): cid 0x0040 len 13 [psm 0]
1106977608.766719 < ACL data: handle 0x0029 flags 0x02
dlen 18
    L2CAP(d): cid 0x0040 len 14 [psm 0]
1106977608.772661 > HCI Event: Number of Completed
Packets (0x13) plen 5
1106977608.798667 > ACL data: handle 0x0029 flags 0x02
dlen 17
1106977608.800657 > ACL data: handle 0x0029 flags 0x01
dlen 3
    L2CAP(d): cid 0x0040 len 16 [psm 0]
1106977608.800702 < ACL data: handle 0x0029 flags 0x02
dlen 9
    L2CAP(d): cid 0x0040 len 5 [psm 0]
1106977608.806656 > HCI Event: Number of Completed
Packets (0x13) plen 5
1106977609.316716 < ACL data: handle 0x0029 flags 0x02
dlen 14
    L2CAP(d): cid 0x0040 len 10 [psm 0]
1106977609.330564 > HCI Event: Number of Completed
Packets (0x13) plen 5
1106977609.356569 > ACL data: handle 0x0029 flags 0x02
dlen 16
    L2CAP(d): cid 0x0040 len 12 [psm 0]
1106977609.866708 < ACL data: handle 0x0029 flags 0x02
dlen 20
    L2CAP(d): cid 0x0040 len 16 [psm 0]
1106977609.877461 > HCI Event: Number of Completed
Packets (0x13) plen 5
1106977609.903469 > ACL data: handle 0x0029 flags 0x02
dlen 17
1106977609.905483 > ACL data: handle 0x0029 flags 0x01
dlen 5
    L2CAP(d): cid 0x0040 len 18 [psm 0]
1106977610.416722 < ACL data: handle 0x0029 flags 0x02
dlen 16
    L2CAP(d): cid 0x0040 len 12 [psm 0]
1106977610.433359 > HCI Event: Number of Completed
Packets (0x13) plen 5
1106977610.459367 > ACL data: handle 0x0029 flags 0x02
dlen 17
1106977610.461362 > ACL data: handle 0x0029 flags 0x01
dlen 1
    L2CAP(d): cid 0x0040 len 14 [psm 0]
1106977610.966700 < ACL data: handle 0x0029 flags 0x02
dlen 18
    L2CAP(d): cid 0x0040 len 14 [psm 0]
1106977610.976260 > HCI Event: Number of Completed
Packets (0x13) plen 5
1106977611.002265 > ACL data: handle 0x0029 flags 0x02
dlen 17
1106977611.004283 > ACL data: handle 0x0029 flags 0x01
dlen 3
    L2CAP(d): cid 0x0040 len 16 [psm 0]
1106977611.516716 < ACL data: handle 0x0029 flags 0x02
dlen 17
    L2CAP(d): cid 0x0040 len 13 [psm 0]
1106977611.537162 > HCI Event: Number of Completed
Packets (0x13) plen 5
1106977611.561163 > ACL data: handle 0x0029 flags 0x02
dlen 17
1106977611.563188 > ACL data: handle 0x0029 flags 0x01
dlen 2
    L2CAP(d): cid 0x0040 len 15 [psm 0]
1106977611.789114 > ACL data: handle 0x0029 flags 0x02
dlen 16
    L2CAP(d): cid 0x0040 len 12 [psm 0]
Then when I choose other item and wait for generating
other menu, where  the items are also found from MySQL
DB, the hcidump -t shows
1106977778.719674 > ACL data: handle 0x0029 flags 0x02
dlen 17
1106977778.721671 > ACL data: handle 0x0029 flags 0x01
dlen 5
    L2CAP(d): cid 0x0040 len 18 [psm 0]
1106977779.157250 < ACL data: handle 0x0029 flags 0x02
dlen 38
    L2CAP(d): cid 0x0040 len 34 [psm 0]
1106977779.178591 > HCI Event: Number of Completed
Packets (0x13) plen 5
1106977779.202585 > ACL data: handle 0x0029 flags 0x02
dlen 17
1106977779.204592 > ACL data: handle 0x0029 flags 0x01
dlen 17
1106977779.206614 > ACL data: handle 0x0029 flags 0x01
dlen 6
    L2CAP(d): cid 0x0040 len 36 [psm 0]
1106977779.706707 < ACL data: handle 0x0029 flags 0x02
dlen 18
    L2CAP(d): cid 0x0040 len 14 [psm 0]
1106977779.717489 > HCI Event: Number of Completed
Packets (0x13) plen 5
1106977779.742486 > ACL data: handle 0x0029 flags 0x02
dlen 17
1106977779.744493 > ACL data: handle 0x0029 flags 0x01
dlen 3
    L2CAP(d): cid 0x0040 len 16 [psm 0]
1106977780.256721 < ACL data: handle 0x0029 flags 0x02
dlen 17
    L2CAP(d): cid 0x0040 len 13 [psm 0]
1106977780.280395 > HCI Event: Number of Completed
Packets (0x13) plen 5
1106977780.306385 > ACL data: handle 0x0029 flags 0x02
dlen 17
1106977780.308392 > ACL data: handle 0x0029 flags 0x01
dlen 2
    L2CAP(d): cid 0x0040 len 15 [psm 0]
1106977780.806713 < ACL data: handle 0x0029 flags 0x02
dlen 18
    L2CAP(d): cid 0x0040 len 14 [psm 0]
1106977780.823288 > HCI Event: Number of Completed
Packets (0x13) plen 5
1106977780.851297 > ACL data: handle 0x0029 flags 0x02
dlen 17
1106977780.853290 > ACL data: handle 0x0029 flags 0x01
dlen 3
    L2CAP(d): cid 0x0040 len 16 [psm 0]
1106977781.356790 < ACL data: handle 0x0029 flags 0x02
dlen 17
    L2CAP(d): cid 0x0040 len 13 [psm 0]
1106977781.364188 > HCI Event: Number of Completed
Packets (0x13) plen 5
1106977781.391194 > ACL data: handle 0x0029 flags 0x02
dlen 17
1106977781.393193 > ACL data: handle 0x0029 flags 0x01
dlen 2
    L2CAP(d): cid 0x0040 len 15 [psm 0]
1106977781.573153 > ACL data: handle 0x0029 flags 0x02
dlen 16
    L2CAP(d): cid 0x0040 len 12 [psm 0]
    Then does it mean that the items are too much that
the sending of AT command from PC to T610 has delay?
And what is the cause of the delay?
Michael

 --- Marcel Holtmann <marcel@holtmann.org> 內容:
> Hi Michael,
> 
> > I have written a program that the menu can be sent
> to T610 by AT
> > command. However, I face a problem. When I send
> one menu to the
> > mobile, there is 4-5 seconds delay. The syntax of
> my program is:
> > sprintf(command,
> "AT*EASM=\"Bt-IrConverter\",1,1,%d", item_brand+1);
> >   ret_code=put_command (command, answer, sizeof
> (answer), 5, 0);
> >   for (j=0; j<item_brand; j++)
> >   {
> >    sprintf(command, ",\"%s\"", device[j]);
> >    ret_code=put_command (command, answer, sizeof
> (answer), 5, 0);
> >    }
> >   sprintf(command, ",\"quit\",\r");
> > where the variable device[j] stores the string
> extracted from MySQL
> > db. So, why is that? And how can I reduce the
> delay?
> 
> check with hcidump if there is really a delay or if
> the phone simply
> needs that long to execute that command.
> 
> Regards
> 
> Marcel
> 
> 
> 
> 
>
-------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW --
> Interactive Reporting
> Tool for open source databases. Create drag-&-drop
> reports. Save time
> by over 75%! Publish reports on the web. Export to
> DOC, XLS, RTF, etc.
> Download a FREE copy at
> http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/bluez-users
>  

_______________________________________________________________________
新年願望第一位 : 找到友緣人
http://personals.yahoo.com.hk


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

  reply	other threads:[~2005-01-29  5:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-28 14:13 [Bluez-users] rfcomm question 2-AT command Ka Kin Cheung
2005-01-28 19:24 ` Marcel Holtmann
2005-01-29  5:52   ` Ka Kin Cheung [this message]
2005-01-29 14:06     ` Marcel Holtmann

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=20050129055215.33954.qmail@web60901.mail.yahoo.com \
    --to=michaelhku2002@yahoo.com.hk \
    --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