The running of the CSR Bluetooth Chip SPP service is the PS setting, csrspp

Source: Internet
Author: User

The running of the CSR Bluetooth Chip SPP service is the PS setting, csrspp

The CSR Bluetooth chip directly runs the built-in spp_dev_ B example program. The host cannot search for Bluetooth devices, mainly because the PS key value needs to be configured as follows:

// PSKEY_BDADDR
& Amp; 0001 = 0011 2003 0003 0014


// PSKEY_MAX_SCOS
& 000e = 0001


// PSKEY_LOCAL_SUPPORTED_FEATURES
& 00ef = ffff 788f 1818 8000


// PSKEY_AFH_OPTIONS
& 00f9 = 0006


// PSKEY_CODEC_PIO
& 01b9 = 000b // Use PIO 11


// PSKEY_UART_BAUDRATE
& 01be = 0027 // 9.6 kbaud


// PSKEY_UART_CONFIG_USR
& 01c2 = 08a0


// PSKEY_HOST_INTERFACE
& 01f9 = 0004 // VM access to the UART


// PSKEY_ANA_FREQ
& 01fe = 3e80


// PSKEY_DEEP_SLEEP_STATE
& Amp; 0229 = 0000 // deep sleep will not be used


// PSKEY_USR1
& Amp; 028b = 000f
// PSKEY_USR3
& Amp; 028d = 000d
// PSKEY_USR5
& Amp; 028f = 1800
// PSKEY_USR8
& Amp; 0292 = 0000
// PSKEY_USR10
& Amp; 0294 = 7f10 ffff 0000 7f02 ffff 7876 1040 0000 26e6 007d 321d 0000 603f 0000 ffff 0039 0000 2ced 3a7f 0000 ffff 0000 000d 000f 0000 65ab 003f 0065 0001 ac8b 0016 0001 8c09 0000 0000 0000 7f08 ffff 0327 106a 1379 f21e ff0c fffe 187b 1900 4c55 0271 0003 0000 0028 b566 0304 9568 aa45 0507 080a a763 b21a 5E 0075 56a1 3826 1418 f53f 1e26 d8c6 1fff 2f3a 1ed8 3d0b 3183 facc 4700
// PSKEY_USR11
& Amp; 0295 = 0000
// PSKEY_USR20
& Amp; 029e = 0034
// PSKEY_USR21
& 029f = 0048 0043 002d 0030 0036
// PSKEY_USR23
& 02a1 = 0031 0032 0033 0034
// PSKEY_USR28
& 02a6 = 94c5 1859 8071 1221
// PSKEY_USR29
& 02a7 = 4696 d08e 9938
// PSKEY_USR41
& 02b3 = 0004 0003 0002 0001 0000 0000 0000 0000
// PSKEY_USR42
& 02b4 = 0031 3012 0010 1011 0080 0067 008a 00cc 00da 0056 00ad 00a0 006e 0003 0016 001c 0093 0017 0047 00b0 0001
// PSKEY_USR43
& 02b5 = 0028 0668 0003 0013 0072 00bd 004a 003a 000c 009b 0084 006d 00eb 0086 0084 0074 00c1 00e5 00cc 00a6 0001
// PSKEY_USR44
& 02b6 = 0084 22df 00d2 8400 00a5 00f7 0073 00e1 0029 001e 0027 0078 00f9 006f 00c5 00ce 004e 00ed 0024 0028 0001
// PSKEY_USR45
& 02b7 = 0023 1059 0008 2013 0065 000d 0021 0015 00c5 0091 0024 0011 004b 005e 004d 00cf 00f7 00a1 0051 0001 0001


This item is actually set the matching code for the connection. It will be changed when the program runs without modifying it. Here I am 8888, so we need to enter 8888 during pairing.

// PSKEY_FIXED_PIN
& Amp; 035b = 0038 0038 0038 0038


// PSKEY_ONCHIP_HCI_CLIENT

& Amp; 03cc = 0001

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.