Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hciconfig hci0 up error #325

Open
kevin406972552 opened this issue Mar 14, 2024 · 0 comments
Open

hciconfig hci0 up error #325

kevin406972552 opened this issue Mar 14, 2024 · 0 comments

Comments

@kevin406972552
Copy link

kevin406972552 commented Mar 14, 2024

我添加wifi+bt 模块驱动后,wifi能正常工作,但蓝牙不行。
硬件:orangepi 3b ,内核:kernel-develop-5.10
添加完全驱动后执行了以下指令:
root@localhost:~# /usr/bin/hciattach_opi -n -s 1500000 /dev/ttyBT0 sprd &
SPRD Bluetooth init uart with init speed:1500000, final_speed:1500000, type:HCI UART H4
SPRD Bluetooth: Attempt to load conf from /lib/firmware/bt_configure_pskey.ini
SPRD Bluetooth: device_class -> 0x001F00
SPRD Bluetooth: feature_set -> 0xBF, 0xFF, 0x8D, 0xFE, 0xDB, 0x3D, 0x7B, 0x87, 0xFF, 0xA7, 0xFF, 0x7F, 0x00, 0xE0, 0xF7, 0x3E
SPRD Bluetooth: device_addr -> 0x6D, 0x6D, 0x8E, 0x8E, 0x8F, 0x8F
SPRD Bluetooth: comp_id -> 0x01EC
SPRD Bluetooth: g_sys_uart0_communication_supported -> 1
SPRD Bluetooth: cp2_log_mode -> 1
SPRD Bluetooth: LogLevel -> 0xFF
SPRD Bluetooth: g_central_or_perpheral -> 0
SPRD Bluetooth: Log_BitMask -> 0xFFFF
SPRD Bluetooth: super_ssp_enable -> 0
SPRD Bluetooth: common_rfu_b3 -> 0
SPRD Bluetooth: common_rfu_w -> 0x00000000, 0x00000000
SPRD Bluetooth: le_rfu_w -> 0x00000000, 0x000000000
SPRD Bluetooth: lmp_rfu_w -> 0x00000000, 0x000000000
SPRD Bluetooth: lc_rfu_w -> 0x00000000, 0x000000000
SPRD Bluetooth: g_wbs_nv_117 -> 0x004D
SPRD Bluetooth: g_wbs_nv_118 -> 0x0166
SPRD Bluetooth: g_nbv_nv_117 -> 0x004D
SPRD Bluetooth: g_nbv_nv_118 -> 0x0166
SPRD Bluetooth: g_sys_sco_transmit_mode -> 0
SPRD Bluetooth: audio_rfu_b1 -> 0
SPRD Bluetooth: audio_rfu_b2 -> 0
SPRD Bluetooth: audio_rfu_b3 -> 0
SPRD Bluetooth: audio_rfu_w -> 0x00000000, 0x00000000
SPRD Bluetooth: g_sys_sleep_in_standby_supported -> 1
SPRD Bluetooth: g_sys_sleep_master_supported -> 1
SPRD Bluetooth: g_sys_sleep_slave_supported -> 1
SPRD Bluetooth: power_rfu_b1 -> 0
SPRD Bluetooth: power_rfu_w -> 0x00000000, 0x00000000
SPRD Bluetooth: win_ext -> 40
SPRD Bluetooth: edr_tx_edr_delay -> 6
SPRD Bluetooth: edr_rx_edr_delay -> 8
SPRD Bluetooth: tx_delay -> 12
SPRD Bluetooth: rx_delay -> 34
SPRD Bluetooth: bb_rfu_w -> 0x00000000, 0x00000000
SPRD Bluetooth: agc_mode -> 0
SPRD Bluetooth: diff_or_eq -> 0xFF
SPRD Bluetooth: ramp_mode -> 0
SPRD Bluetooth: modem_rfu_b1 -> 0
SPRD Bluetooth: modem_rfu_w -> 0x00000000, 0x00000000
SPRD Bluetooth: BQB_BitMask_1 -> 0x00000000
SPRD Bluetooth: BQB_BitMask_2 -> 0x00000000
SPRD Bluetooth: bt_coex_threshold -> 0x04E2, 0x1F40, 0x0020, 0x00C8, 0x0006, 0x0000, 0x0000, 0x0000
SPRD Bluetooth: other_rfu_w -> 0x00000000, 0x00000000
SPRD Bluetooth: Attempt to load conf from /lib/firmware/bt_configure_rf.ini
SPRD Bluetooth: g_GainValue_A -> 0xE000, 0xE000, 0xE000, 0xE000, 0xE000, 0xE000
SPRD Bluetooth: g_ClassicPowerValue_A -> 0x4115, 0x3A15, 0x3415, 0x2E15, 0x2715, 0x2115, 0x1715, 0x1115, 0x0B15, 0x0715
SPRD Bluetooth: g_LEPowerValue_A -> 0x3B15, 0x3715, 0x3315, 0x2F15, 0x2B15, 0x2715, 0x2315, 0x1F15, 0x1B15, 0x1715, 0x1315, 0x0F15, 0x0B15, 0x0815, 0x0415, 0x0015
SPRD Bluetooth: g_BRChannelpwrvalue_A -> 0x0615, 0x0615, 0x0615, 0x0615, 0x0615, 0x0615, 0x0615, 0x0615
SPRD Bluetooth: g_EDRChannelpwrvalue_A -> 0x0615, 0x0615, 0x0615, 0x0715, 0x0715, 0x0715, 0x0715, 0x0715
SPRD Bluetooth: g_LEChannelpwrvalue_A -> 0x1515, 0x1515, 0x1515, 0x1515, 0x1515, 0x1515, 0x1515, 0x1515
SPRD Bluetooth: g_GainValue_B -> 0xE000, 0xE000, 0xE000, 0xE000, 0xE000, 0xE000
SPRD Bluetooth: g_ClassicPowerValue_B -> 0x4915, 0x4315, 0x4115, 0x3915, 0x3115, 0x2A15, 0x2215, 0x1B15, 0x1415, 0x0E15
SPRD Bluetooth: g_LEPowerValue_B -> 0x4B15, 0x4B15, 0x4B15, 0x4B15, 0x4B15, 0x4615, 0x4015, 0x3B15, 0x3615, 0x3015, 0x2B15, 0x2615, 0x2015, 0x1A15, 0x1415, 0x0E15
SPRD Bluetooth: g_BRChannelpwrvalue_B -> 0x0815, 0x0915, 0x0C15, 0x0C15, 0x0C15, 0x0C15, 0x0C15, 0x0B15
SPRD Bluetooth: g_EDRChannelpwrvalue_B -> 0x0A15, 0x0B15, 0x0D15, 0x0E15, 0x0E15, 0x0E15, 0x0E15, 0x0D15
SPRD Bluetooth: g_LEChannelpwrvalue_B -> 0x0E15,0x0E15,0x1115,0x1115,0x1115,0x1115,0x1115,0x1015
SPRD Bluetooth: LE_fix_powerword -> 0x00
SPRD Bluetooth: Classic_pc_by_channel -> 0xFF
SPRD Bluetooth: LE_pc_by_channel -> 0xFF
SPRD Bluetooth: RF_switch_mode -> 0x02
SPRD Bluetooth: Data_Capture_Mode -> 0x00
SPRD Bluetooth: Analog_IQ_Debug_Mode -> 0x00
SPRD Bluetooth: RF_common_rfu_b3 -> 0x55
SPRD Bluetooth: RF_common_rfu_w -> 0x555F4334, 0x55555555, 0x55555555, 0x55555555, 0x55555555
SPRD Bluetooth: set_mac_address
SPRD Bluetooth: marlin3_pskey_preload
SPRD Bluetooth: sprd_vnd_send_hci_vsc
SPRD Bluetooth: a0 fc b0 00 1f 00 00 bf ff 8d fe db 3d 7b 87 ff
SPRD Bluetooth: a7 ff 7f 00 e0 f7 3e 7e bc f1 20 67 a0 ec 01 01
SPRD Bluetooth: 01 ff 00 ff ff 00 00 00 00 00 00 00 00 00 00 00
SPRD Bluetooth: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SPRD Bluetooth: 00 00 00 00 00 00 00 4d 00 66 01 4d 00 66 01 00
SPRD Bluetooth: 00 00 00 00 00 00 00 00 00 00 00 01 01 01 00 00
SPRD Bluetooth: 00 00 00 00 00 00 00 28 00 00 00 06 08 0c 22 00
SPRD Bluetooth: 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00
SPRD Bluetooth: 00 00 00 00 00 00 00 00 00 00 00 e2 04 40 1f 20
SPRD Bluetooth: 00 c8 00 06 00 00 00 00 00 00 00 00 00 00 00 00
SPRD Bluetooth: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SPRD Bluetooth: 00 00 00
SPRD Bluetooth: Received event, len: 13
SPRD Bluetooth: 04 0e 0a 01 a0 fc 00 68 67 22 10 15 20
SPRD Bluetooth: Bluetooth Firmware Node: 6768 Date: 2015-10-22
SPRD Bluetooth: yujian.qin marlin3_rf_preload
SPRD Bluetooth: sprd_vnd_send_hci_vsc
SPRD Bluetooth: a2 fc fc 00 e0 00 e0 00 e0 00 e0 00 e0 00 e0 15
SPRD Bluetooth: 41 15 3a 15 34 15 2e 15 27 15 21 15 17 15 11 15
SPRD Bluetooth: 0b 15 07 15 3b 15 37 15 33 15 2f 15 2b 15 27 15
SPRD Bluetooth: 23 15 1f 15 1b 15 17 15 13 15 0f 15 0b 15 08 15
SPRD Bluetooth: 04 15 00 15 06 15 06 15 06 15 06 15 06 15 06 15
SPRD Bluetooth: 06 15 06 15 06 15 06 15 06 15 07 15 07 15 07 15
SPRD Bluetooth: 07 15 07 15 15 15 15 15 15 15 15 15 15 15 15 15
SPRD Bluetooth: 15 15 15 00 e0 00 e0 00 e0 00 e0 00 e0 00 e0 15
SPRD Bluetooth: 49 15 43 15 41 15 39 15 31 15 2a 15 22 15 1b 15
SPRD Bluetooth: 14 15 0e 15 4b 15 4b 15 4b 15 4b 15 4b 15 46 15
SPRD Bluetooth: 40 15 3b 15 36 15 30 15 2b 15 26 15 20 15 1a 15
SPRD Bluetooth: 14 15 0e 15 08 15 09 15 0c 15 0c 15 0c 15 0c 15
SPRD Bluetooth: 0c 15 0b 15 0a 15 0b 15 0d 15 0e 15 0e 15 0e 15
SPRD Bluetooth: 0e 15 0d 15 0e 15 0e 15 11 15 11 15 11 15 11 15
SPRD Bluetooth: 11 15 10 00 00 ff ff 02 00 00 55 34 43 5f 55 55
SPRD Bluetooth: 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55
SPRD Bluetooth: Received event, len: 7
SPRD Bluetooth: 04 0e 04 01 a2 fc 00
SPRD Bluetooth: hw_rf_cback hw_rf_cback response: [0xFCA2, 0x0000, 0x00]
SPRD Bluetooth: sprd_vnd_send_hci_vsc
SPRD Bluetooth: a1 fc 03 00 00 01
SPRD Bluetooth: Received event, len: 9
SPRD Bluetooth: 04 0e 06 01 a1 fc 00 00 01
SPRD Bluetooth: hw_core_cback hw_core_cback response: [0xFCA1, 0x0000, 0x01]
SPRD Bluetooth post process
SPRD Bluetooth: Done setting line discpline
Device setup complete

root@localhost:~# hciconfig -a
hci0: Type: Primary Bus: UART
BD Address: A0:67:20:F1:BC:7E ACL MTU: 1021:8 SCO MTU: 240:3
DOWN
RX bytes:539 acl:0 sco:0 events:22 errors:0
TX bytes:351 acl:0 sco:0 commands:22 errors:0
Features: 0xbf 0xff 0x8d 0xfe 0xdb 0x3d 0x7b 0xc7
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy:
Link mode: PERIPHERAL ACCEPT

root@localhost:# hciconfig hci0 up
[ 216.602138] debugfs: File 'dut_mode' in directory 'hci0' already present!
Can't init device hci0: Invalid argument (22)

root@localhost:
# rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
2: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
root@localhost:~#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant