lwfinger / rtl8723bs_bt

Bluetooth Code for RTL8723bs
71 stars 35 forks source link

Onda V919 3G Dual Os 64Gb : H5 sync timed out #7

Open jon1012 opened 8 years ago

jon1012 commented 8 years ago

Hi,

I tried all the ttyS* on my device and none works. Wifi is working perfectly (recompiled kernel with fixes from the patch/ directory of rtl8723bs repo), but no way to get the bluetooth work.

Command outputs :

$ dmesg | grep tty [ 0.000000] console [tty0] enabled [ 1.672313] 00:02: ttyS0 at I/O 0x3f8 (irq = 199, base_baud = 115200) is a 16550A [ 6.740893] systemd[1]: Created slice system-getty.slice. [ 7.103121] 80860F0A:00: ttyS4 at MMIO 0x90913000 (irq = 191, base_baud = 2764800) is a 16550A [ 7.103517] 80860F0A:01: ttyS5 at MMIO 0x90919000 (irq = 192, base_baud = 2764800) is a 16550A

hciattach.txt:

Realtek Bluetooth init uart with init speed:115200, final_speed:115200, type:HCI UART H5 Realtek Bluetooth :Realtek hciattach version 2.5 Realtek Bluetooth :3-wire sync pattern resend : 1, len: 8 Realtek Bluetooth :3-wire sync pattern resend : 2, len: 8 Realtek Bluetooth :3-wire sync pattern resend : 3, len: 8

[... cut for brievety]

Realtek Bluetooth :3-wire sync pattern resend : 40, len: 8 Realtek Bluetooth ERROR: H5 sync timed out

I tried to use it on all the tty (not just ttyS4), change the baudrate, even ried rtk_h4 with no luck.

Any idea why it might happen ?

Thanks, Jonathan

xchetah commented 7 years ago

@madivak this is the parameters from my script.bin [wifi_para] wifi_used = 1 wifi_sdc_id = 1 wifi_usbc_id = 1 wifi_usbc_type = 1 wifi_mod_sel = 9 wifi_power = "axp22_dldo1" wifi_power_ext1 = "axp22_dldo2" wifi_power_ext2 = "" wifi_power_switch = port:power0<1><0><0> rtl8723bs_vq0_chip_en = port:PL11<1><0> rtl8723bs_vq0_wl_regon = port:PL06<1><0> rtl8723bs_vq0_wl_host_wake = port:PL07<4><0> rtl8723bs_vq0_bt_regon = port:PL08<1><0> rtl8723bs_vq0_bt_wake = port:PL10<1><0> rtl8723bs_vq0_bt_host_wake = port:PL09<4><0> rtl8723bs_vq0_lpo_use_apclk = 0

[bt_para] bt_used = 1 bt_uart_id = 1

I didnt enable wifi_power_ext1 = "axp22_dldo2" in the dtsi , which resulted in the errors mentioned earlier

emelcher commented 7 years ago

With kernel 4.8 Bluetoooth worked with this patch: https://github.com/burzumishi/linux-baytrail-flexx10/tree/master/kernel/patches/v4.8 In kernel 4.12, rtl8723bs wifi got included. However, even with that patch applied, the "base_baud = 2764800" appears in dmesg and 'ERROR: H5 sync timed out" appears in hciattach.txt. This is my computer: http://lad.dsc.ufcg.edu.br/lad/pmwiki.php?n=Lad.Tablet Is there a way to get Bluetooth working using kernel 4.12 ?

madivak commented 7 years ago

With that issue I suspect its something to do with your DTS file. Check previous comments above and see guys had the same issue. Make sure your DTS file is properly configured. Check my comment above u will find a link for my DTS file and kernel. Properly look at the DTS file.

emelcher commented 7 years ago

I forgot to enable CONFIG_RFKILL_GPIO in the kernel .config, Sorry for the silly mistake.

youyudedasan commented 7 years ago

I drive rtl8723ds with rtk_h5 protocol on ARM 9,kernel 3.10.65,bluez5.38. when i ran hciattach -n -s 115200 ttyS2 rtk_h5,I got logs below: root@TinaLinux:/# hciattach -n -s 115200 ttyS2 rtk_h5 Realtek Bluetooth init uart with init speed:115200, final_speed:115200, type:HCI UART H5 Realtek Bluetooth :Realtek hciattach version 3.1

Realtek Bluetooth :3-wire sync pattern resend : 1, len: 8

Realtek Bluetooth :Get SYNC Resp Pkt

Realtek Bluetooth :Get SYNC pkt-active mode

Realtek Bluetooth :3-wire config pattern resend : 1 , len: 10 Realtek Bluetooth :Get CONFG pkt-active mode

Realtek Bluetooth :Get CONFG resp pkt-active mode

Realtek Bluetooth :H5 init finished

Realtek Bluetooth :RTK send HCI_VENDOR_READ_RTK_ROM_VERISION_Command

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :receive hci command complete event with command:1001

Realtek Bluetooth :Read Local Version Information with Status:0 Realtek Bluetooth :HCI Version 0x08 Realtek Bluetooth :HCI Revision 0x000d Realtek Bluetooth :LMP Subversion 0x8723 Realtek Bluetooth :RTK send HCI_VENDOR_READ_RTK_ROM_VERISION_Command

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :receive hci command complete event with command:fc6d

Realtek Bluetooth :Read RTK rom version with Status:0 Realtek Bluetooth :LMP Subversion 0x8723 Realtek Bluetooth :EVersion 2 Realtek Bluetooth :IC: RTL8723DS

Realtek Bluetooth :Firmware/config: rtl8723d_fw, rtl8723d_config

Realtek Bluetooth :config offset(00f4),length(01) Realtek Bluetooth :config offset(00f6),length(02) Realtek Bluetooth :config offset(00fa),length(02) Realtek Bluetooth :config baud rate to :4928002, hwflowcontrol:5f, 1 Realtek Bluetooth :config offset(00d9),length(01) Realtek Bluetooth :config offset(00e4),length(01) Realtek Bluetooth :Get config baud rate from config file:252c00a Realtek Bluetooth :Load FW OK Realtek Bluetooth :rtk_get_fw_project_id: opcode 0, len 1, data 9 Realtek Bluetooth :fw_ver 0xaa5d675f, patch_num 3 Realtek Bluetooth :chip id 0x0001 Realtek Bluetooth :chip id 0x0002 Realtek Bluetooth :chip id 0x0003 Realtek Bluetooth :patch length is 0x7594 Realtek Bluetooth :start offset is 0x4980 Realtek Bluetooth :Svn version: 18994

Realtek Bluetooth :Coexistence: BTCOEX_20161108-1010

Realtek Bluetooth :fw: exists, config file: exists Realtek Bluetooth :Total len 30147 for fw/config Realtek Bluetooth :baudrate in change speed command: 0xa 0xc0 0x52 0x2

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :receive hci command complete event with command:fc17

Realtek Bluetooth :Change BD Rate with status:0 Realtek Bluetooth :final_speed 230400

Realtek Bluetooth :hw flow control enable Realtek Bluetooth :iEndIndex:119 iLastPacketLen:159 iAdditionpkt:5

Realtek Bluetooth :hci_download_patch tx_index:0 rx_index: -1

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 0

Realtek Bluetooth :hci_download_patch tx_index:1 rx_index: 0

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 1

Realtek Bluetooth :hci_download_patch tx_index:2 rx_index: 1

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 2

Realtek Bluetooth :hci_download_patch tx_index:3 rx_index: 2

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 3

Realtek Bluetooth :hci_download_patch tx_index:4 rx_index: 3

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 4

Realtek Bluetooth :hci_download_patch tx_index:5 rx_index: 4

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 5

Realtek Bluetooth :hci_download_patch tx_index:6 rx_index: 5

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 6

Realtek Bluetooth :hci_download_patch tx_index:7 rx_index: 6

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 7

Realtek Bluetooth :hci_download_patch tx_index:8 rx_index: 7

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 8

Realtek Bluetooth :hci_download_patch tx_index:9 rx_index: 8

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 9

Realtek Bluetooth :hci_download_patch tx_index:10 rx_index: 9

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 10

Realtek Bluetooth :hci_download_patch tx_index:11 rx_index: 10

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 11

Realtek Bluetooth :hci_download_patch tx_index:12 rx_index: 11

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 12

Realtek Bluetooth :hci_download_patch tx_index:13 rx_index: 12

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 13

Realtek Bluetooth :hci_download_patch tx_index:14 rx_index: 13

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 14

Realtek Bluetooth :hci_download_patch tx_index:15 rx_index: 14

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 15

Realtek Bluetooth :hci_download_patch tx_index:16 rx_index: 15

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 16

Realtek Bluetooth :hci_download_patch tx_index:17 rx_index: 16

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 17

Realtek Bluetooth :hci_download_patch tx_index:18 rx_index: 17

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 18

Realtek Bluetooth :hci_download_patch tx_index:19 rx_index: 18

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 19

Realtek Bluetooth :hci_download_patch tx_index:20 rx_index: 19

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 20

Realtek Bluetooth :hci_download_patch tx_index:21 rx_index: 20

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 21

Realtek Bluetooth :hci_download_patch tx_index:22 rx_index: 21

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 22

Realtek Bluetooth :hci_download_patch tx_index:23 rx_index: 22

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 23

Realtek Bluetooth :hci_download_patch tx_index:24 rx_index: 23

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 24

Realtek Bluetooth :hci_download_patch tx_index:25 rx_index: 24

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 25

Realtek Bluetooth :hci_download_patch tx_index:26 rx_index: 25

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 26

Realtek Bluetooth :hci_download_patch tx_index:27 rx_index: 26

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 27

Realtek Bluetooth :hci_download_patch tx_index:28 rx_index: 27

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 28

Realtek Bluetooth :hci_download_patch tx_index:29 rx_index: 28

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 29

Realtek Bluetooth :hci_download_patch tx_index:30 rx_index: 29

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 30

Realtek Bluetooth :hci_download_patch tx_index:31 rx_index: 30

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 31

Realtek Bluetooth :hci_download_patch tx_index:32 rx_index: 31

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 32

Realtek Bluetooth :hci_download_patch tx_index:33 rx_index: 32

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 33

Realtek Bluetooth :hci_download_patch tx_index:34 rx_index: 33

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 34

Realtek Bluetooth :hci_download_patch tx_index:35 rx_index: 34

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 35

Realtek Bluetooth :hci_download_patch tx_index:36 rx_index: 35

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 36

Realtek Bluetooth :hci_download_patch tx_index:37 rx_index: 36

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 37

Realtek Bluetooth :hci_download_patch tx_index:38 rx_index: 37

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 38

Realtek Bluetooth :hci_download_patch tx_index:39 rx_index: 38

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 39

Realtek Bluetooth :hci_download_patch tx_index:40 rx_index: 39

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 40

Realtek Bluetooth :hci_download_patch tx_index:41 rx_index: 40

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 41

Realtek Bluetooth :hci_download_patch tx_index:42 rx_index: 41

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 42

Realtek Bluetooth :hci_download_patch tx_index:43 rx_index: 42

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 43

Realtek Bluetooth :hci_download_patch tx_index:44 rx_index: 43

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 44

Realtek Bluetooth :hci_download_patch tx_index:45 rx_index: 44

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 45

Realtek Bluetooth :hci_download_patch tx_index:46 rx_index: 45

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 46

Realtek Bluetooth :hci_download_patch tx_index:47 rx_index: 46

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 47

Realtek Bluetooth :hci_download_patch tx_index:48 rx_index: 47

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 48

Realtek Bluetooth :hci_download_patch tx_index:49 rx_index: 48

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 49

Realtek Bluetooth :hci_download_patch tx_index:50 rx_index: 49

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 50

Realtek Bluetooth :hci_download_patch tx_index:51 rx_index: 50

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 51

Realtek Bluetooth :hci_download_patch tx_index:52 rx_index: 51

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 52

Realtek Bluetooth :hci_download_patch tx_index:53 rx_index: 52

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 53

Realtek Bluetooth :hci_download_patch tx_index:54 rx_index: 53

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 54

Realtek Bluetooth :hci_download_patch tx_index:55 rx_index: 54

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 55

Realtek Bluetooth :hci_download_patch tx_index:56 rx_index: 55

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 56

Realtek Bluetooth :hci_download_patch tx_index:57 rx_index: 56

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 57

Realtek Bluetooth :hci_download_patch tx_index:58 rx_index: 57

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 58

Realtek Bluetooth :hci_download_patch tx_index:59 rx_index: 58

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 59

Realtek Bluetooth :hci_download_patch tx_index:60 rx_index: 59

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 60

Realtek Bluetooth :hci_download_patch tx_index:61 rx_index: 60

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 61

Realtek Bluetooth :hci_download_patch tx_index:62 rx_index: 61

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 62

Realtek Bluetooth :hci_download_patch tx_index:63 rx_index: 62

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 63

Realtek Bluetooth :hci_download_patch tx_index:64 rx_index: 63

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 64

Realtek Bluetooth :hci_download_patch tx_index:65 rx_index: 64

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 65

Realtek Bluetooth :hci_download_patch tx_index:66 rx_index: 65

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 66

Realtek Bluetooth :hci_download_patch tx_index:67 rx_index: 66

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 67

Realtek Bluetooth :hci_download_patch tx_index:68 rx_index: 67

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 68

Realtek Bluetooth :hci_download_patch tx_index:69 rx_index: 68

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 69

Realtek Bluetooth :hci_download_patch tx_index:70 rx_index: 69

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 70

Realtek Bluetooth :hci_download_patch tx_index:71 rx_index: 70

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 71

Realtek Bluetooth :hci_download_patch tx_index:72 rx_index: 71

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 72

Realtek Bluetooth :hci_download_patch tx_index:73 rx_index: 72

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 73

able seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 73

Realtek Bluetooth :hci_download_patch tx_index:74 rx_index: 73

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 74

Realtek Bluetooth :hci_download_patch tx_index:75 rx_index: 74

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 75

Realtek Bluetooth :hci_download_patch tx_index:76 rx_index: 75

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 76

Realtek Bluetooth :hci_download_patch tx_index:77 rx_index: 76

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 77

Realtek Bluetooth :hci_download_patch tx_index:78 rx_index: 77

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 78

Realtek Bluetooth :hci_download_patch tx_index:79 rx_index: 78

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 79

Realtek Bluetooth :hci_download_patch tx_index:80 rx_index: 79

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 80

Realtek Bluetooth :hci_download_patch tx_index:81 rx_index: 80

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 81

Realtek Bluetooth :hci_download_patch tx_index:82 rx_index: 81

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 82

Realtek Bluetooth :hci_download_patch tx_index:83 rx_index: 82

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 83

Realtek Bluetooth :hci_download_patch tx_index:84 rx_index: 83

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 84

Realtek Bluetooth :hci_download_patch tx_index:85 rx_index: 84

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 85

Realtek Bluetooth :hci_download_patch tx_index:86 rx_index: 85

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 86

Realtek Bluetooth :hci_download_patch tx_index:87 rx_index: 86

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 87

Realtek Bluetooth :hci_download_patch tx_index:88 rx_index: 87

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 88

Realtek Bluetooth :hci_download_patch tx_index:89 rx_index: 88

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 89

Realtek Bluetooth :hci_download_patch tx_index:90 rx_index: 89

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 90

Realtek Bluetooth :hci_download_patch tx_index:91 rx_index: 90

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 91

Realtek Bluetooth :hci_download_patch tx_index:92 rx_index: 91

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 92

Realtek Bluetooth :hci_download_patch tx_index:93 rx_index: 92

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 93

Realtek Bluetooth :hci_download_patch tx_index:94 rx_index: 93

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 94

Realtek Bluetooth :hci_download_patch tx_index:95 rx_index: 94

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 95

Realtek Bluetooth :hci_download_patch tx_index:96 rx_index: 95

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 96

Realtek Bluetooth :hci_download_patch tx_index:97 rx_index: 96

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 97

Realtek Bluetooth :hci_download_patch tx_index:98 rx_index: 97

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 98

Realtek Bluetooth :hci_download_patch tx_index:99 rx_index: 98

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 99

Realtek Bluetooth :hci_download_patch tx_index:100 rx_index: 99

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 100

Realtek Bluetooth :hci_download_patch tx_index:101 rx_index: 100

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 101

Realtek Bluetooth :hci_download_patch tx_index:102 rx_index: 101

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 102

Realtek Bluetooth :hci_download_patch tx_index:103 rx_index: 102

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 103

Realtek Bluetooth :hci_download_patch tx_index:104 rx_index: 103

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 104

Realtek Bluetooth :hci_download_patch tx_index:105 rx_index: 104

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 105

Realtek Bluetooth :hci_download_patch tx_index:106 rx_index: 105

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 106

Realtek Bluetooth :hci_download_patch tx_index:107 rx_index: 106

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 107

Realtek Bluetooth :hci_download_patch tx_index:108 rx_index: 107

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 108

Realtek Bluetooth :hci_download_patch tx_index:109 rx_index: 108

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 109

Realtek Bluetooth :hci_download_patch tx_index:110 rx_index: 109

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 110

Realtek Bluetooth :hci_download_patch tx_index:111 rx_index: 110

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 111

Realtek Bluetooth :hci_download_patch tx_index:112 rx_index: 111

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 112

Realtek Bluetooth :hci_download_patch tx_index:113 rx_index: 112

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 113

Realtek Bluetooth :hci_download_patch tx_index:114 rx_index: 113

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 114

Realtek Bluetooth :hci_download_patch tx_index:115 rx_index: 114

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 115

Realtek Bluetooth :hci_download_patch tx_index:116 rx_index: 115

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 116

Realtek Bluetooth :hci_download_patch tx_index:117 rx_index: 116

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 117

Realtek Bluetooth :proto:2 Realtek Bluetooth :hci_download_patch tx_index:118 rx_index: 117

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 118

Realtek Bluetooth :hci_download_patch tx_index:119 rx_index: 118

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 119

Realtek Bluetooth :Send additional packet 120 Realtek Bluetooth :hci_download_patch tx_index:120 rx_index: 119

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 120

Realtek Bluetooth ERROR: Out-of-order packet arrived, got(3)expected(4) Realtek Bluetooth :Send additional packet 121 Realtek Bluetooth :hci_download_patch tx_index:121 rx_index: 120

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 121

Realtek Bluetooth :Send additional packet 122 Realtek Bluetooth :hci_download_patch tx_index:122 rx_index: 121

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 122

Realtek Bluetooth :Send additional packet 123 Realtek Bluetooth :hci_download_patch tx_index:123 rx_index: 122

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 123

Realtek Bluetooth :Send end packet 252 Realtek Bluetooth :Send FW last command Realtek Bluetooth :hci_download_patch tx_index:124 rx_index: 123

Realtek Bluetooth ERROR: h5 hdr checksum error!!! Realtek Bluetooth ERROR: patch timerout, retry:

Realtek Bluetooth :3-wire download patch re send:0 Alarm clock

PS:i show the uart speed to 115200.i set alarm timer to 10s in case of alarming in downloading patch

dmarkey commented 6 years ago
root@amlogic:~/rtl8723bs_bt# ./rtk_hciattach -n -s 115200 /dev/ttyS1 rtk_h5
Realtek Bluetooth init uart with init speed:115200, final_speed:115200, type:HCI UART H5
Realtek Bluetooth :Realtek hciattach version 2.5 

Realtek Bluetooth :3-wire sync pattern resend : 1, len: 8

Realtek Bluetooth :Get SYNC Resp Pkt

Realtek Bluetooth :3-wire config pattern resend : 1 , len: 10
Realtek Bluetooth :Get SYNC pkt-active mode

Realtek Bluetooth :Get SYNC pkt-active mode

Realtek Bluetooth :Get CONFG pkt-active mode

Realtek Bluetooth :3-wire config pattern resend : 2 , len: 10
Realtek Bluetooth :Get CONFG resp pkt-active mode

Realtek Bluetooth :H5 init finished

Realtek Bluetooth :config offset(f4),length(8)
Realtek Bluetooth :config baud rate to :4928002, hwflowcontrol:5f, 1
Realtek Bluetooth :config offset(27),length(1)
Realtek Bluetooth :config offset(fe),length(1)
Realtek Bluetooth :config offset(15b),length(4)
Realtek Bluetooth :config offset(1e3),length(1)
Realtek Bluetooth :Get config baud rate from config file:4928002
Realtek Bluetooth :Load FW OK
Realtek Bluetooth :RTK send HCI_VENDOR_READ_RTK_ROM_VERISION_Command

Realtek Bluetooth :Received reliable seqno 0 from card
Realtek Bluetooth :receive hci command complete event with command:1001

Realtek Bluetooth :Read RTK LMP version with Status:0
Realtek Bluetooth :gLmpVersion = 0x8723
Realtek Bluetooth :RTK send HCI_VENDOR_READ_RTK_ROM_VERISION_Command

Realtek Bluetooth :Received reliable seqno 1 from card
Realtek Bluetooth :receive hci command complete event with command:fc6d

Realtek Bluetooth :Read RTK rom version with Status:0
Realtek Bluetooth :rtk_hw_cfg.eversion = 1
Realtek Bluetooth :rtk_get_fw_project_id: opcode 0, len 1, data 1
Realtek Bluetooth :fw_ver 0x1e3ee40e, patch_num 2
Realtek Bluetooth :patch length is 0x5e90
Realtek Bluetooth :start offset is 0x4f00
Realtek Bluetooth :fw: exists, config file: exists
Realtek Bluetooth :baudrate in change speed command: 0x2 0x80 0x92 0x4 

Realtek Bluetooth :Received reliable seqno 2 from card
Realtek Bluetooth :receive hci command complete event with command:fc17

Realtek Bluetooth :Change BD Rate with status:0
Realtek Bluetooth :final_speed 1500000

Realtek Bluetooth :hw flow control enable
Realtek Bluetooth :iEndIndex:96  iLastPacketLen:71 iAdditionpkt:4

Realtek Bluetooth :hci_download_patch tx_index:0 rx_index: -1

Realtek Bluetooth ERROR: patch timerout, retry:

Realtek Bluetooth :3-wire download patch re send:0
Realtek Bluetooth ERROR: patch timerout, retry:

Anyone seen this happen before?