[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bluetooth-dev] Connection problems



Mattias ┼gren wrote:
> 
> sorry for that...next release will be out shortly :)
> until then you could extract the bytes from this...
> 
> s32
> read_ericsson_rev_info(void)
> {
>         s32 tmp;
> 
>         D_CTRL("read_ericsson_rev_info: \n");
>         c_pkt.type = CMD_PKT;
>         c_pkt.ocf = 0xf;
>         c_pkt.ogf = 0x3f;
>         c_pkt.len = 0;
> 
>         tmp = send_cmd((u8*) &c_pkt ,c_pkt.len + CMD_HDR_LEN + HCI_HDR_LEN);
>         start_cmd_timer();
>         interruptible_sleep_on(&hci_wq);
> 
>         return tmp;
> }
> 
> The answer comes back in a command complete as text.
> 
Thanks for your quick answer ! Well, I modified the stack in a quick and
dirty way and added a new command (called "rev") to the "btd" test
application.

Here's the screenshot:
Menu
------------------------
  inq (inquiry scan)
  connect <xx:xx:xx:xx:xx:xx> <profile>
  disc <handle>
  send <nbr bytes> <nbr repeats>
  modemdummy <1/0>
  setbd <xx:xx:xx:xx:xx:xx>
  rev
  readbd
  reset
  quit
> rev
Revision read ! - see log   

And here's the system log:

Jul 19 14:52:50 pc-matthias kernel: HCI: hci_receive_data : got 48 bytes
Jul 19 14:52:50 pc-matthias kernel:
Jul 19 14:52:50 pc-matthias kernel: hci_receive_data :  (48)
Jul 19 14:52:50 pc-matthias kernel:    0x4 0xe i 0x1 0xf 0xfc 0x0 0xd
0xa   G e n e r a
Jul 19 14:52:50 pc-matthias kernel:    t e d :   2 0 0 0 - 0 4 - 2 8
Jul 19 14:52:50 pc-matthias kernel:    1 5 : 5 4 0xd 0xa   C o m m e n t
:
Jul 19 14:52:50 pc-matthias kernel:
Jul 19 14:52:50 pc-matthias kernel: HCI: hci_receive_data:
WAIT_FOR_PACKET_TYPE
Jul 19 14:52:50 pc-matthias kernel: HCI: hci_receive_data:
WAIT_FOR_EVENT_TYPE
Jul 19 14:52:50 pc-matthias kernel: HCI: hci_receive_data:
WAIT_FOR_EVENT_LENGTH
Jul 19 14:52:50 pc-matthias kernel: HCI: hci_receive_data:
WAIT_FOR_EVENT_PARAM
Jul 19 14:52:50 pc-matthias kernel: HCI: hci_receive_data : got 56 bytes
Jul 19 14:52:50 pc-matthias kernel:
Jul 19 14:52:50 pc-matthias kernel: hci_receive_data :  (56)
Jul 19 14:52:50 pc-matthias kernel:      C X C   1 2 5   2 4 4   P 9 A
Jul 19 14:52:50 pc-matthias kernel:    0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
Jul 19 14:52:50 pc-matthias kernel:    0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
Jul 19 14:52:50 pc-matthias kernel:    0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
Jul 19 14:52:50 pc-matthias kernel:
Jul 19 14:52:50 pc-matthias kernel: HCI: hci_receive_data:
WAIT_FOR_EVENT_PARAM
Jul 19 14:52:50 pc-matthias kernel: HCI: hci_receive_data : got 4 bytes
Jul 19 14:52:50 pc-matthias kernel:
Jul 19 14:52:50 pc-matthias kernel: hci_receive_data :  (4)
Jul 19 14:52:50 pc-matthias kernel:    0x0 0x0 0x0 0x0
Jul 19 14:52:50 pc-matthias kernel:
Jul 19 14:52:50 pc-matthias kernel: HCI: hci_receive_data:
WAIT_FOR_EVENT_PARAM
Jul 19 14:52:50 pc-matthias kernel:
Jul 19 14:52:50 pc-matthias kernel: process_event_packet (105)
Jul 19 14:52:50 pc-matthias kernel:    0x1 0xf 0xfc 0x0 0xd 0xa   G e n
e r a t e d
Jul 19 14:52:50 pc-matthias kernel:    :   2 0 0 0 - 0 4 - 2 8   1 5 :
Jul 19 14:52:50 pc-matthias kernel:    5 4 0xd 0xa   C o m m e n t :   C
X
Jul 19 14:52:50 pc-matthias kernel:    C   1 2 5   2 4 4   P 9 A 0x0 0x0
0x0								
Jul 19 14:52:50 pc-matthias kernel:    0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
Jul 19 14:52:50 pc-matthias kernel:    0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
Jul 19 14:52:50 pc-matthias kernel:    0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
0x0
Jul 19 14:52:50 pc-matthias kernel:
Jul 19 14:52:50 pc-matthias kernel: HCI: process_event_packet:
COMMAND_COMPLETE
Jul 19 14:52:50 pc-matthias kernel:  HCI: process_event_packet: now
cmd_num = 1
Jul 19 14:52:50 pc-matthias kernel:  HCI: process_return_param :
MANUFACTURER_SPEC
Jul 19 14:52:50 pc-matthias kernel: process_return_param : Ericsson read
stack revision                   

It seems that my module uses the stack revision P9A, as you can see in
the dump above !

Matthias

-- 
------------------------------------------------- 
\ Matthias Fuchs                                 \
 \ esd electronic system design Gmbh              \
  \ Vahrenwalder Stra▀e 205                        \
   \ D-30165 Hannover                               \
    \ email: matthias.fuchs@xxxxxxx.com      \
     \ phone: +49-511-37298-0                         \
      \ fax:   +49-511-37298-68                        \
       --------------------------------------------------