Site Tools


Hotfix release available: 2025-05-14a "Librarian". upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian". upgrade now! [56] (what's this?)
Hotfix release available: 2024-02-06b "Kaos". upgrade now! [55.2] (what's this?)
Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04b "Jack Jackrum". upgrade now! [54.2] (what's this?)
Hotfix release available: 2023-04-04a "Jack Jackrum". upgrade now! [54.1] (what's this?)
New release available: 2023-04-04 "Jack Jackrum". upgrade now! [54] (what's this?)
Hotfix release available: 2022-07-31b "Igor". upgrade now! [53.1] (what's this?)
Hotfix release available: 2022-07-31a "Igor". upgrade now! [53] (what's this?)
New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
Hotfix release available: 2020-07-29a "Hogfather". upgrade now! [51.4] (what's this?)
New release available: 2020-07-29 "Hogfather". upgrade now! [51.3] (what's this?)
New release candidate 3 available: 2020-06-09 "Hogfather". upgrade now! [51.2] (what's this?)
New release candidate 2 available: 2020-06-01 "Hogfather". upgrade now! [51.1] (what's this?)
New release candidate available: 2020-06-01 "Hogfather". upgrade now! [51] (what's this?)
Hotfix release available: 2018-04-22c "Greebo". upgrade now! [50.3] (what's this?)
Hotfix release available: 2018-04-22b "Greebo". upgrade now! [50.2] (what's this?)
Hotfix release available: 2018-04-22a "Greebo". upgrade now! [50.1] (what's this?)
New release available: 2018-04-22 "Greebo". upgrade now! [50] (what's this?)
Hotfix release available: 2017-02-19g "Frusterick Manners". upgrade now! [49.7] (what's this?)
Hotfix release available: 2017-02-19f "Frusterick Manners". upgrade now! [49.6] (what's this?)
Hotfix release available: 2017-02-19e "Frusterick Manners". upgrade now! [49.5] (what's this?)
Hotfix release available fixing CVE-2017-12979 and CVE-2017-12980: 2017-02-19d "Frusterick Manners". upgrade now! [49.4] (what's this?)
Hotfix release available fixing CVE-2017-12583: 2017-02-19c "Frusterick Manners". upgrade now! [49.3] (what's this?)
wiki:bluetooth

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:bluetooth [2017/10/23 17:55]
1.241.172.144
wiki:bluetooth [2017/11/12 00:13] (current)
1.241.172.144
Line 1: Line 1:
 [[Module]] [[Module]]
  
 +
 +[[자료]]
  
  
Line 12: Line 14:
 Android에 연결되어 있음 Android에 연결되어 있음
  
-<​code>​ 
-# bccmd -t bcsp -d /dev/ttyS4 -b 115200 psload -r /​root/​my.psr 
-Loading PSKEY_PCM_CONFIG32 ... done 
-Loading PSKEY_USE_OLD_BCSP_LE ... done 
-Loading PSKEY_PCM_CVSD_USE_NEW_FILTER ... done 
-Loading PSKEY_PCM_FORMAT ... done 
-Loading PSKEY_CODEC_OUT_GAIN ... done 
-Loading PSKEY_CODEC_IN_GAIN ... done 
-Loading PSKEY_PCM_LOW_JITTER_CONFIG ... done 
-Loading PSKEY_HOSTIO_SCO_PCM_THRESHOLDS ... done 
-Loading PSKEY_HOSTIO_SCO_HCI_THRESHOLDS ... done 
-Loading PSKEY_HOSTIO_MAP_SCO_PCM_SLOT ... done 
-Loading PSKEY_UART_BAUDRATE ... done 
-Loading PSKEY_UART_CONFIG_BCSP ... done 
-Loading PSKEY_UART_CONFIG_H4 ... done 
-Loading PSKEY_UART_CONFIG_H5 ... done 
-Loading PSKEY_UART_CONFIG_USR ... done 
-Loading PSKEY_UART_TX_CRCS ... done 
-Loading PSKEY_UART_ACK_TIMEOUT ... done 
-Loading PSKEY_UART_TX_MAX_ATTEMPTS ... done 
-Loading PSKEY_UART_TX_WINDOW_SIZE ... done 
-Loading PSKEY_UART_HOST_WAKE ... done 
-Loading PSKEY_HOSTIO_THROTTLE_TIMEOUT ... done 
-Loading PSKEY_PCM_ALWAYS_ENABLE ... done 
-Loading PSKEY_UART_HOST_WAKE_SIGNAL ... done 
-Loading PSKEY_UART_CONFIG_H4DS ... done 
-Loading PSKEY_H4DS_WAKE_DURATION ... done 
-Loading PSKEY_H4DS_MAXWU ... done 
-Loading PSKEY_H4DS_LE_TIMER_PERIOD ... done 
-Loading PSKEY_H4DS_TWU_TIMER_PERIOD ... done 
-Loading PSKEY_H4DS_UART_IDLE_TIMER_PERIOD ... done 
-Loading 0x01e5 ... done 
-Loading 0x01eb ... done 
-Loading 0x01ec ... done 
-Loading 0x01ed ... done 
-Loading 0x01f0 ... done 
-Loading PSKEY_ANA_FTRIM ... done 
-Loading PSKEY_WD_TIMEOUT ... done 
-Loading PSKEY_WD_PERIOD ... done 
-Loading PSKEY_HOST_INTERFACE ... done 
-Loading PSKEY_HQ_HOST_TIMEOUT ... done 
-Loading PSKEY_HQ_ACTIVE ... done 
-Loading PSKEY_BCCMD_SECURITY_ACTIVE ... done 
-Loading PSKEY_ANA_FREQ ... done 
-Loading PSKEY_PIO_PROTECT_MASK ... done 
-Loading PSKEY_STUB ... done 
-Loading PSKEY_TXRX_PIO_CONTROL ... done 
-Loading PSKEY_ANA_RX_LEVEL ... done 
-Loading PSKEY_ANA_RX_FTRIM ... done 
-Loading PSKEY_PSBC_DATA_VERSION ... done 
-Loading PSKEY_PCM0_ATTENUATION ... done 
-Loading PSKEY_LO_LVL_MAX ... done 
-Loading PSKEY_LO_ADC_AMPL_MIN ... done 
-Loading PSKEY_LO_ADC_AMPL_MAX ... done 
-Loading PSKEY_IQ_TRIM_CHANNEL ... done 
-Loading PSKEY_IQ_TRIM_GAIN ... done 
-Loading PSKEY_TX_OFFSET_HALF_MHZ ... done 
-Loading PSKEY_GBL_MISC_ENABLES ... done 
-Loading PSKEY_UART_SLEEP_TIMEOUT ... done 
-Loading PSKEY_DEEP_SLEEP_STATE ... done 
-Loading 0x022b ... done 
-Loading 0x022c ... done 
-Loading PSKEY_IQ_ENABLE_PHASE_TRIM ... done 
-Loading PSKEY_HCI_HANDLE_FREEZE_PERIOD ... done 
-Loading PSKEY_MAX_FROZEN_HCI_HANDLES ... done 
-Loading PSKEY_PAGETABLE_DESTRUCTION_DELAY ... done 
-Loading PSKEY_IQ_TRIM_PIO_SETTINGS ... done 
-Loading PSKEY_USE_EXTERNAL_CLOCK ... done 
-Loading PSKEY_DEEP_SLEEP_WAKE_CTS ... done 
-Loading PSKEY_FC_HC2H_FLUSH_DELAY ... done 
-Loading PSKEY_RX_HIGHSIDE ... done 
-Loading PSKEY_TX_PRE_LVL ... done 
-Loading PSKEY_RX_SINGLE_ENDED ... done 
-Loading PSKEY_TX_FILTER_CONFIG ... done 
-Loading PSKEY_CLOCK_REQUEST_ENABLE ... done 
-Loading PSKEY_RX_MIN_ATTEN ... done 
-Loading PSKEY_XTAL_TARGET_AMPLITUDE ... done 
-Loading PSKEY_PCM_MIN_CPU_CLOCK ... done 
-Loading PSKEY_CPU_IDLE_MODE ... done 
-Loading PSKEY_DEEP_SLEEP_CLEAR_RTS ... done 
-Loading PSKEY_RF_RESONANCE_TRIM ... done 
-Loading PSKEY_DEEP_SLEEP_PIO_WAKE ... done 
-Loading PSKEY_MODULE_ID ... done 
-Loading PSKEY_MODULE_DESIGN ... done 
-Loading PSKEY_VM_DISABLE ... done 
-Loading PSKEY_DUT_VM_DISABLE ... done 
-Loading PSKEY_USB_VERSION ... done 
-Loading PSKEY_USB_DEVICE_CLASS_CODES ... done 
-Loading PSKEY_USB_VENDOR_ID ... done 
-Loading PSKEY_USB_PRODUCT_ID ... done 
-Loading PSKEY_USB_ATTRIBUTES ... done 
-Loading PSKEY_USB_MAX_POWER ... done 
-Loading PSKEY_USB_BT_IF_CLASS_CODES ... done 
-Loading PSKEY_USB_LANGID ... done 
-Loading PSKEY_USB_DFU_CLASS_CODES ... done 
-Loading PSKEY_USB_DFU_PRODUCT_ID ... done 
-Loading PSKEY_USB_PIO_PULLUP ... done 
-Loading PSKEY_USB_PIO_WAKE_TIMEOUT ... done 
-Loading PSKEY_USB_BT_SCO_IF_CLASS_CODES ... done 
-Loading PSKEY_USB_SUSPEND_PIO_LEVEL ... done 
-Loading PSKEY_USB_SUSPEND_PIO_DIR ... done 
-Loading PSKEY_USB_SUSPEND_PIO_MASK ... done 
-Loading PSKEY_USB_ENDPOINT_0_MAX_PACKET_SIZE ... done 
-Loading PSKEY_USB_CONFIG ... done 
-Loading 0x02fc ... done 
-Loading PSKEY_RADIOTEST_ATTEN_INIT ... done 
-Loading PSKEY_RADIOTEST_FIRST_TRIM_TIME ... done 
-Loading PSKEY_RADIOTEST_SUBSEQUENT_TRIM_TIME ... done 
-Loading PSKEY_RADIOTEST_LO_LVL_TRIM_ENABLE ... done 
-Loading PSKEY_RADIOTEST_DISABLE_MODULATION ... done 
-Loading PSKEY_MDNS_PORT ... done 
-Loading PSKEY_MDNS_TTL ... done 
-Loading PSKEY_MDNS_IPV4_ADDR ... done 
-Loading PSKEY_ARP_CACHE_TIMEOUT ... done 
-Loading PSKEY_SLOW_CLOCK_FILTER_DIVIDER ... done 
-Loading PSKEY_SLOW_CLOCK_FILTER_SHIFT ... done 
-Loading PSKEY_LO_VCO_STANDBY ... done 
-Loading PSKEY_LO_DIV_LATCH_BYPASS ... done 
-Loading PSKEY_MR_TX_IF_ATTEN_OFF_TEMP ... done 
-Loading PSKEY_PIO_WAKEUP_STATE ... done 
-Loading PSKEY_ANALOGUE_ATTENUATOR ... done 
-Loading PSKEY_TX_PRE_LVL_CLASS1 ... done 
-Loading PSKEY_RX_MR_EQ_TAPS ... done 
-Loading PSKEY_TEMPERATURE_VS_DELTA_TX_BB_MR_PAYLOAD ... done 
-Loading PSKEY_TEMPERATURE_VS_DELTA_TX_BB_MR_HEADER ... done 
-Loading PSKEY_TEMPERATURE_VS_DELTA_TX_PRE_LVL_MR ... done 
-Loading PSKEY_TEMPERATURE_VS_DELTA_INTERNAL_PA_CLASS1 ... done 
-Loading PSKEY_CLASS1_TX_CONFIG2 ... done 
-Loading PSKEY_CLASS1_IQ_LVL ... done 
-Loading PSKEY_UART_CONFIG2 ... done 
-Loading PSKEY_MR_PIO_CONFIG ... done 
-Loading PSKEY_TX_AVOID_PA_CLASS1_PIO ... done 
-Loading PSKEY_TRANSMIT_OFFSET_CLASS1 ... done 
-Loading PSKEY_CLOCK_REQUEST_FEATURES ... done 
-Loading PSKEY_CHARGER_TRIM ... done 
-Loading PSKEY_LC_USE_THROTTLING ... done 
-Loading PSKEY_USB_DONT_RESET_BOOTMODE_ON_HOST_RESET ... done 
-Loading PSKEY_MR_TX_CONFIG2 ... done 
-Loading PSKEY_MR_TX_FILTER_CONFIG ... done 
-Loading PSKEY_I2C_CONFIG ... done 
-Loading PSKEY_MR_ANA_RX_FTRIM ... done 
-Loading PSKEY_USB_VM_CONTROL ... done 
-Loading PSKEY_TRIM_RADIO_FILTERS ... done 
-Loading PSKEY_DEEP_SLEEP_USE_EXTERNAL_CLOCK ... done 
-Loading PSKEY_SCHED_THROTTLE_TIMEOUT ... done 
-Loading PSKEY_RSSI_CORRECTION ... done 
-Loading PSKEY_MIN_WAIT_STATES ... done 
-Loading PSKEY_SYNTH_TXRX_THRESHOLDS ... done 
-Loading PSKEY_RX_ATTEN_UPDATE_RATE ... done 
-Loading PSKEY_RX_ATTEN_BACKOFF ... done 
-Loading PSKEY_ONCHIP_HCI_CLIENT ... done 
-Loading PSKEY_RADIOTEST_CDMA_LO_REF_LIMITS ... done 
-Loading PSKEY_RF_TRAP_BAD_DIVISION_RATIOS ... done 
-Loading PSKEY_TEST_FORCE_OFFSET ... done 
-Loading PSKEY_RX_DYNAMIC_LVL_OFFSET ... done 
-Loading PSKEY_TEST_DELTA_OFFSET ... done 
-Loading PSKEY_TEMPERATURE_VS_DELTA_TX_BB ... done 
-Loading PSKEY_TEMPERATURE_VS_DELTA_TX_PRE_LVL ... done 
-Loading PSKEY_TEMPERATURE_VS_DELTA_INTERNAL_PA ... done 
-Loading PSKEY_TEMPERATURE_CALIBRATION ... done 
-Loading PSKEY_DEEP_SLEEP_CORRECTION_FACTOR ... done 
-Loading PSKEY_CLOCK_STARTUP_DELAY ... done 
-Loading PSKEY_CDMA_LO_ERROR_LIMITS ... done 
-Loading PSKEY_CDMA_LO_REF_LIMITS ... done 
-Loading PSKEY_LOOP_FILTER_TRIM ... done 
-Loading 0x044d ... done 
-Loading 0x044e ... done 
-Loading 0x044f ... done 
-Loading 0x0450 ... done 
-Loading 0x0451 ... done 
-Loading 0x0452 ... done 
-Loading 0x0453 ... done 
-Loading 0x0455 ... done 
-Loading 0x0456 ... done 
-Loading 0x0457 ... done 
-Loading 0x0458 ... done 
-Loading 0x0459 ... done 
-Loading 0x045a ... done 
-Loading 0x215e ... done 
-Loading 0x2160 ... done 
-Loading 0x2161 ... done 
-Loading 0x2162 ... done 
-Loading 0x216e ... done 
-Loading 0x2192 ... done 
-Loading 0x21b6 ... done 
-Loading 0x21b8 ... done 
-Loading 0x21b9 ... done 
-Loading 0x21bd ... done 
-Loading 0x21c0 ... done 
-Loading 0x21cd ... done 
-Loading 0x21ce ... done 
-Loading 0x21d3 ... done 
-Loading 0x21d5 ... done 
-Loading 0x21d8 ... done 
-Loading 0x21da ... done 
-Loading 0x21df ... done 
-Loading 0x2433 ... done 
-Loading 0x2434 ... done 
-</​code>​ 
  
-<​code>​ +[[PAN : Slave Operation]] 
-# hciconfig + 
-</​code>​+[[PAN : NAP Operation]]
  
 <​code>​ <​code>​
-hciattach -n -s 115200 ​/dev/ttyS4 bcsp 115200 & +ifconfig 
-Device setup complete +lo        Link encap:Local Loopback 
-BluetoothOut-of-order packet arrived, got expected ​0+          inet addr:​127.0.0.1 ​ Mask:​255.0.0.0 
 +          inet6 addr: ::1/128 Scope:Host 
 +          UP LOOPBACK RUNNING ​ MTU:​65536 ​ Metric:1 
 +          RX packets:0 errors:0 dropped:0 overruns:0 frame:0 
 +          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 
 +          collisions:​0 txqueuelen:1 
 +          RX bytes:0 (0.0 B)  TX bytes:0 (0.B)
 </​code>​ </​code>​
 +와 같이 부팅 후 eth0가 잡히지 않은 경우
  
 +3가지의 형태로 이를 수정 할 수 있다.
 +
 +1) u-boot에서 IP address를 전달 하여 이를 적용하는 방법
 +
 +2) 고정 ip를 설정하는 방법
 +
 +3) DHCP를 통해 받아오는 방법
 +
 +u-boot에서 IP address를 전달 하여 이를 적용하는 방법
 +
 +
 +
 +고정 ip를 설정하는 방법
 +
 +/​etc/​network/​interfaces 를 수정하여 적용한다.
 +아래에 예를 들었다.
 +
 + 
 <​code>​ <​code>​
-hciconfig -a +#cat /​etc/​network/​interfaces ​ 
-hci0:   Type: Primary ​ Bus: UART +auto lo 
-        BD Address: 00:​18:​9A:​07:​DC:​7A ​ ACL MTU: 620:5  SCO MTU: 64:8 +iface lo inet loopback 
-        DOWN +auto eth0 
-        RX bytes:891 acl:sco:0 events:23 errors:+iface eth0 inet static 
-        TX bytes:705 acl:sco:commands:22 errors:+address 192.168.0.1 
-        ​Features:​ 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x59 0x83 +netmask 255.255.255.
-        ​Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 +network 192.168.0.0 
-        Link policy: RSWITCH HOLD SNIFF PARK +broadcast 192.168.0.255 
-        Link mode: SLAVE ACCEPT+gateway 192.168.0.1 
 +dns-nameservers 168.126.63.1 168.126.63.2
 </​code>​ </​code>​
 +
 +DHCP를 통해 받아오는 방법
 +
 +/​etc/​network/​interfaces 를 수정하여 적용한다.
 +아래에 예를 들었다.
  
 <​code>​ <​code>​
-hciconfig hci0 up +#cat /​etc/​network/​interfaces ​ 
-# hciconfig -a +auto lo 
-hci0:   Type: Primary ​ Bus: UART +iface lo inet loopback 
-        BD Address: 00:​18:​9A:​07:​DC:​7A ​ ACL MTU: 620:5  SCO MTU: 64:8 +auto eth0 
-        UP RUNNING +iface eth0 inet dhcp
-        RX bytes:1754 acl:0 sco:0 events:45 errors:0 +
-        TX bytes:1404 acl:0 sco:0 commands:45 errors:0 +
-        Features: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x59 0x83 +
-        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 +
-        Link policy: RSWITCH HOLD SNIFF PARK +
-        Link mode: SLAVE ACCEPT +
-        Name: 'CSR - bc4' +
-        Class: 0x000000 +
-        Service Classes: Unspecified +
-        Device Class: Miscellaneous,​ +
-        HCI Version: 2.1 (0x4)  Revision: 0x1899 +
-        LMP Version: 2.1 (0x4)  Subversion: 0x1899 +
-        Manufacturer:​ Cambridge Silicon Radio (10)+
 </​code>​ </​code>​
  
 <​code>​ <​code>​
-hciconfig hci0 piscan +#brctl addbr pan0 
-hciconfig -a +#brctl setfd pan0 
-hci0:   Type: Primary ​ Bus: UART +#brctl sto pan0 off 
-        BD Address: 00:​18:​9A:​07:​DC:​7A ​ ACL MTU: 620:5  SCO MTU: 64:8 +#brctl addif pan0 
-        UP RUNNING PSCAN ISCAN + 
-        RX bytes:2102 acl:0 sco:0 events:49 errors:+
-        TX bytes:1504 acl:0 sco:0 commands:51 errors:0 +
-        ​Features:​ 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x59 0x83 +
-        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 +
-        Link policy: RSWITCH HOLD SNIFF PARK +
-        Link mode: SLAVE ACCEPT +
-        Name: 'CSR - bc4' +
-        Class: 0x000000 +
-        Service Classes: Unspecified +
-        Device Class: Miscellaneous,​ +
-        HCI Version: 2.1 (0x4)  Revision: 0x1899 +
-        LMP Version: 2.1 (0x4)  Subversion: 0x1899 +
-        ​Manufacturer:​ Cambridge Silicon Radio (10)+
 </​code>​ </​code>​
 +
  
  
  
wiki/bluetooth.1508748928.txt.gz · Last modified: 2017/10/23 17:55 by 1.241.172.144