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

Re: [bluetooth-dev] CSR module(casira) : Discarding 12 byte...





Carl Orsborn wrote:

> Jun's message is a BCSP link establishment message:
>
>     0xc0 0x40 0x41 0x00 0x7e 0xda 0xdc 0xed 0xed 0xa9 0x7a 0xc0
>
> The big clue is the 0xc0 at either end - BCSP uses SLIP at its lowest
> level, and 0xc0 is the packet framing character.
>
> Also, the ASCII text in the middle, "dad ceded," is the first of BCSP's
> link establishment messages.  The Casira module is trying to make
> first contact with its host.
>
> Switching Casira to use H4 involves setting several configuration
> values (pskeys) and rebooting.  I believe the changes needed are:
>
>  -  Set pskey "Host Interface" to "UART Link running H4".
>  -  Set pskey "UART: Stop Bits" to "1 stop bit".
>  -  Set pskey "UART: Parity Bits" to "No parity".
>  -  Set pskey "UART: Flow Control Enable" to "Enabled".
>  -  Set pskey "UART: RTS Auto Enabled to "Disabled".
>  -  Set pskey "UART: RTS Enabled" to "Enabled".
>  -  Set pskey "UART: Non BCSP Enabled" to "Enabled".
>  -  Set pskey "UART Baud Rate" to the desired value.
>

And as in PSTool.txt:
    - set pskey "UART configuration bitfields" to 168

Alain

>
> Reboot the bc01.  Casira should now be configured to run H4.
>
> Carl
>
> Gordon McNutt wrote:
>
> > "" wrote:
> >
> > > Hello
> > > I am Jun from seoul korea.
> > >
> > > I used CSR module and axis stack.
> > > successfully Comfile...
> > > But stack occured error when execute stack and power on CASIRA.
> > >
> > > Error is
> > > -----------------------------------------------
> > > hci_receive_data, (12)
> > > 0xc0 0x40 0x41 0x00 0x7e 0xda 0xdc 0xed 0xed 0xa9 0x7a 0xc0
> > > hci_receive_data, hci-12
> > >
> > > BT SYS: ERROR :hci_receive_data, Discarding 12 bytes and waiting forever...
> > > -----------------------------------------------
> > >
> > > I wish, I know that what is this 12byte and how handling.
> > >
> > > execute option is :
> > > ./btd -u /dev/ttyS0 -b /dev/ttyBT0 -r server -s 115200 -m
> > >
> > > /var/log/message file contents is :
> > >
> > > Feb 20 07:42:42 localhost kernel: BT (driver) bt_ioctl: forwarding ioctl 0x540b to serial driver
> > > Feb 20 07:42:42 localhost kernel: BT (driver) bt_flush_buffer
> > > Feb 20 07:42:42 localhost kernel: BT SYS: Initialising Bluetooth Stack
> > > Feb 20 07:42:42 localhost kernel: BT SYS: hci_init, Initialising HCI
> > >
> > > Feb 20 07:42:42 localhost kernel: BT SYS: HCI emulator off
> > > Feb 20 07:42:42 localhost kernel: BT SYS: hci_init, Initialising HCI inbuffers [800]
> > >
> > > Feb 20 07:42:42 localhost kernel: HCI: init_cmd_buf, Initializing
> > >
> > > Feb 20 07:42:43 localhost kernel: BT SYS: hci_init, Reading buffer sizes in the module...
> > >
> > > Feb 20 07:42:43 localhost kernel: HCI: send_cmd_queue, start: Num_HCI_Command_Pa@
> > >
> > > Feb 20 07:42:43 localhost kernel: HCI: send_cmd_queue, start: Num_HCI_Command_Packets=1
> > >
> > > Feb 20 07:42:43 localhost kernel:
> > > Feb 20 07:42:43 localhost kernel: hci_receive_data, (12)
> > >
> > > Feb 20 07:42:43 localhost kernel: 0xc0 0x40 0x41 0x00 0x7e 0xda 0xdc 0xed 0xed 0xa9 0x7a 0xc0
> > > Feb 20 07:42:43 localhost kernel: hci_receive_data, hci-12
> > >
> > > Feb 20 07:42:43 localhost kernel: HCI: hci_receive_data, WAIT_FOR_PACKET_TYPE
> > >
> > > Feb 20 07:42:43 localhost kernel: BT SYS: ERROR :hci_receive_data, Bad UART baud rate or trashed data on the uart
> > > Feb 20 07:42:43 localhost kernel: BT SYS: ERROR :hci_receive_data, Try reducing uart speed or change IRQ setting (PC)
> > > Feb 20 07:42:43 localhost kernel: BT SYS: ERROR :hci_receive_data, Try reducing uart speed or change IRQ setting (PC)
> > > Feb 20 07:42:43 localhost kernel: BT SYS: hci_receive_data, Resetting state machmachine and trying to resync
> > >
> >
> > Hi Jun,
> >
> > Looks like your UART is dropping bytes. Try a lower baud rate, check if the serial port is getting overruns, make sure
> > nobody's trying to use the serial port as a console, etc.
> >
> > --gmcnutt
> >
> > -
> > To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
> > the body of a message to majordomo@xxxxxxx.com
>
> -
> To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
> the body of a message to majordomo@xxxxxxx.com

--
Alain Pellmont, Computer Engineering & Communication Networks Lab,
Swiss Federal Institute of Technology (ETH) Zurich
Mail: apellmon@xxxxxxx. 35, CH-8092 Zurich, Switzerland


-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com