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

[Telink] add BLE PostEvent and fast/slow adv (Cherry-pick #23116) #23465

Conversation

s07641069
Copy link
Contributor

@s07641069 s07641069 commented Nov 3, 2022

Problem

These changes add Telink BLE PostEvent and fast/slow adv
Cherrypick #23116

Change overview

  • Added Telink BLE PostEvent
  • Added Telink fast/slow advertising switching

Testing

Tested manually with chip-tool.
Steps:

Run: $ chip-tool pairing ble-thread <...>
Wait till success
Run: $ chip-tool onoff on ${NODE_ID }1
Wait till success
Run: $ chip-tool onoff off ${NODE_ID }1
Wait till success

@github-actions
Copy link

github-actions bot commented Nov 3, 2022

PR #23465: Size comparison from a17c005 to 13d5d79

Increases (7 builds for cc13x2_26x2, esp32, nrfconnect, telink)
platform target config section a17c005 13d5d79 change % change
cc13x2_26x2 lock-ftd LP_CC2652R7 (read/write) 170088 170096 8 0.0
pump-controller-app LP_CC2652R7 (read only) 672299 672307 8 0.0
.text 585472 585480 8 0.0
esp32 all-clusters-app c3devkit (read/write) 1788390 1788398 8 0.0
.flash.rodata 257960 257968 8 0.0
nrfconnect all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1161207 1161223 16 0.0
text 803376 803380 4 0.0
telink light-switch-app tlsr9518adk80d (read/write) 788536 789372 836 0.1
text 553046 553700 654 0.1
lighting-app tlsr9518adk80d (read/write) 810640 811484 844 0.1
text 571266 571920 654 0.1
ota-requestor-app tlsr9518adk80d (read/write) 818584 819420 836 0.1
text 577450 578100 650 0.1
Decreases (12 builds for bl602, bl702, cc13x2_26x2, esp32, k32w, nrfconnect, psoc6, qpg)
platform target config section a17c005 13d5d79 change % change
bl602 lighting-app bl602 .text 1068830 1068828 -2 -0.0
bl602+rpc (read/write) 1434542 1434534 -8 -0.0
.text 1100178 1100176 -2 -0.0
bl702 lighting-app bl702 .debug_info 37900207 37900206 -1 -0.0
.text 957646 957644 -2 -0.0
bl702+rpc .debug_info 41806825 41806823 -2 -0.0
.text 1031354 1031350 -4 -0.0
cc13x2_26x2 lock-ftd LP_CC2652R7 (read only) 678615 678607 -8 -0.0
.text 600592 600584 -8 -0.0
pump-controller-app LP_CC2652R7 (read/write) 177220 177212 -8 -0.0
esp32 all-clusters-app m5stack (read/write) 564300 564292 -8 -0.0
.flash.rodata 315032 315024 -8 -0.0
k32w contact k32w0+release (read/write) 665916 665900 -16 -0.0
.text 567656 567640 -16 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 text 815512 815508 -4 -0.0
psoc6 all-clusters cy8ckit_062s2_43012 .debug_info 26823474 26823472 -2 -0.0
qpg lighting-app qpg6105+debug (read/write) 1148620 1148612 -8 -0.0
.text 595720 595712 -8 -0.0
lock-app qpg6105+debug (read/write) 1116532 1116524 -8 -0.0
.text 563628 563620 -8 -0.0
Full report (38 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section a17c005 13d5d79 change % change
bl602 lighting-app bl602 (read/write) 1389322 1389322 0 0.0
.bss 90529 90529 0 0.0
.data 9936 9936 0 0.0
.text 1068830 1068828 -2 -0.0
bl602+rpc (read/write) 1434542 1434534 -8 -0.0
.bss 97961 97961 0 0.0
.data 10320 10320 0 0.0
.text 1100178 1100176 -2 -0.0
bl702 lighting-app bl702 (read only) 3262 3262 0 0.0
(read/write) 1189307 1189307 0 0.0
.bleromro 6296 6296 0 0.0
.bleromrw 124 124 0 0.0
.boot2 688 688 0 0.0
.bss 67006 67006 0 0.0
.bss_psram 29696 29696 0 0.0
.comment 48 48 0 0.0
.data 4280 4280 0 0.0
.debug_abbrev 1506910 1506910 0 0.0
.debug_aranges 133192 133192 0 0.0
.debug_frame 486780 486780 0 0.0
.debug_info 37900207 37900206 -1 -0.0
.debug_line 5257529 5257529 0 0.0
.debug_loc 3364279 3364279 0 0.0
.debug_ranges 360144 360144 0 0.0
.debug_str 3456786 3456786 0 0.0
.hbn 509 509 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 144 144 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 116872 116872 0 0.0
.rsvd 3188 3188 0 0.0
.shstrtab 293 293 0 0.0
.stack 2048 2048 0 0.0
.strtab 565357 565357 0 0.0
.symtab 171904 171904 0 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3262 3262 0 0.0
.text 0 0 0 0.0
957646 957644 -2 -0.0
bl702+rpc (read only) 3262 3262 0 0.0
(read/write) 1285219 1285219 0 0.0
.bleromro 6296 6296 0 0.0
.bleromrw 124 124 0 0.0
.boot2 688 688 0 0.0
.bss 75038 75038 0 0.0
.bss_psram 29936 29936 0 0.0
.comment 48 48 0 0.0
.data 4800 4800 0 0.0
.debug_abbrev 1644489 1644489 0 0.0
.debug_aranges 140696 140696 0 0.0
.debug_frame 512156 512156 0 0.0
.debug_info 41806825 41806823 -2 -0.0
.debug_line 5632064 5632064 0 0.0
.debug_loc 3556945 3556945 0 0.0
.debug_ranges 382600 382600 0 0.0
.debug_str 3852753 3852753 0 0.0
.hbn 509 509 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 160 160 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 130264 130264 0 0.0
.rsvd 3188 3188 0 0.0
.shstrtab 293 293 0 0.0
.stack 2048 2048 0 0.0
.strtab 624530 624530 0 0.0
.symtab 189712 189712 0 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3262 3262 0 0.0
.text 0 0 0 0.0
1031354 1031350 -4 -0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 677083 677083 0 0.0
(read/write) 174452 174452 0 0.0
.bss 81228 81228 0 0.0
.data 3380 3380 0 0.0
.rodata 89859 89859 0 0.0
.text 586912 586912 0 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 641323 641323 0 0.0
(read/write) 157996 157996 0 0.0
.bss 80500 80500 0 0.0
.data 3380 3380 0 0.0
.rodata 78995 78995 0 0.0
.text 562008 562008 0 0.0
lock-ftd LP_CC2652R7 (read only) 678615 678607 -8 -0.0
(read/write) 170088 170096 8 0.0
.bss 78484 78484 0 0.0
.data 3304 3304 0 0.0
.rodata 77543 77543 0 0.0
.text 600592 600584 -8 -0.0
lock-mtd LP_CC2652R7 (read only) 662435 662435 0 0.0
(read/write) 181956 181956 0 0.0
.bss 74172 74172 0 0.0
.data 3304 3304 0 0.0
.rodata 103371 103371 0 0.0
.text 558584 558584 0 0.0
pump-app LP_CC2652R7 (read only) 687815 687815 0 0.0
(read/write) 161592 161592 0 0.0
.bss 78420 78420 0 0.0
.data 3296 3296 0 0.0
.rodata 90799 90799 0 0.0
.text 596532 596532 0 0.0
pump-controller-app LP_CC2652R7 (read only) 672299 672307 8 0.0
(read/write) 177220 177212 -8 -0.0
.bss 78532 78532 0 0.0
.data 3292 3292 0 0.0
.rodata 86347 86347 0 0.0
.text 585472 585480 8 0.0
shell LP_CC2652R7 (read only) 668070 668070 0 0.0
(read/write) 185776 185776 0 0.0
.bss 83540 83540 0 0.0
.data 3376 3376 0 0.0
.rodata 86566 86566 0 0.0
.text 581188 581188 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 587738 587738 0 0.0
.app_xip_area 464364 464364 0 0.0
.bss 65792 65792 0 0.0
.data 760 760 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 594786 594786 0 0.0
.app_xip_area 466084 466084 0 0.0
.bss 71112 71112 0 0.0
.data 768 768 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 543822 543822 0 0.0
.app_xip_area 425504 425504 0 0.0
.bss 60784 60784 0 0.0
.data 716 716 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read/write) 1110344 1110344 0 0.0
.bss 136340 136340 0 0.0
.data 2072 2072 0 0.0
.text 971912 971912 0 0.0
BRD4161A+rpc (read/write) 973708 973708 0 0.0
.bss 150852 150852 0 0.0
.data 2252 2252 0 0.0
.text 820580 820580 0 0.0
BRD4161A+rs911x (read/write) 1003632 1003632 0 0.0
.bss 169176 169176 0 0.0
.data 2064 2064 0 0.0
.text 832372 832372 0 0.0
lock-app BRD4161A+wf200 (read/write) 1151260 1151260 0 0.0
.bss 152264 152264 0 0.0
.data 2072 2072 0 0.0
.text 996904 996904 0 0.0
window-app BRD4161A (read/write) 1103940 1103940 0 0.0
.bss 137788 137788 0 0.0
.data 2096 2096 0 0.0
.text 964036 964036 0 0.0
esp32 all-clusters-app c3devkit (read only) 1223280 1223280 0 0.0
(read/write) 1788390 1788398 8 0.0
.dram0.bss 76944 76944 0 0.0
.dram0.data 13840 13840 0 0.0
.flash.rodata 257960 257968 8 0.0
.flash.text 1223280 1223280 0 0.0
.iram0.text 65204 65204 0 0.0
m5stack (read only) 1233299 1233299 0 0.0
(read/write) 564300 564292 -8 -0.0
.dram0.bss 82304 82304 0 0.0
.dram0.data 34296 34296 0 0.0
.flash.rodata 315032 315024 -8 -0.0
.flash.text 1227915 1227915 0 0.0
.iram0.text 123939 123939 0 0.0
k32w contact k32w0+release (read/write) 665916 665900 -16 -0.0
.bss 77040 77040 0 0.0
.data 2108 2108 0 0.0
.text 567656 567640 -16 -0.0
light k32w0+release (read/write) 641656 641656 0 0.0
.bss 74816 74816 0 0.0
.data 2064 2064 0 0.0
.text 562048 562048 0 0.0
lock k32w0+release (read/write) 635688 635688 0 0.0
.bss 75600 75600 0 0.0
.data 2080 2080 0 0.0
.text 555280 555280 0 0.0
linux chip-tool-ipv6only arm64 (read only) 10360348 10360348 0 0.0
(read/write) 706337 706337 0 0.0
.bss 33953 33953 0 0.0
.data 2768 2768 0 0.0
.data.rel.ro 650608 650608 0 0.0
.dynamic 560 560 0 0.0
.got 13904 13904 0 0.0
.init 24 24 0 0.0
.init_array 208 208 0 0.0
.rodata 504604 504604 0 0.0
.text 8200228 8200228 0 0.0
thermostat-no-ble arm64 (read only) 2389924 2389924 0 0.0
(read/write) 143601 143601 0 0.0
.bss 55361 55361 0 0.0
.data 1816 1816 0 0.0
.data.rel.ro 77232 77232 0 0.0
.dynamic 560 560 0 0.0
.got 5184 5184 0 0.0
.init 24 24 0 0.0
.init_array 440 440 0 0.0
.rodata 144396 144396 0 0.0
.text 2002672 2002672 0 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2456176 2456176 0 0.0
.bss 215044 215044 0 0.0
.data 5872 5872 0 0.0
.text 1418820 1418820 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1182571 1182571 0 0.0
bss 143633 143633 0 0.0
rodata 144476 144476 0 0.0
text 815512 815508 -4 -0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1161207 1161223 16 0.0
bss 142860 142860 0 0.0
rodata 136048 136048 0 0.0
text 803376 803380 4 0.0
psoc6 all-clusters cy8ckit_062s2_43012 0 0 0 0.0
(read only) 841968 841968 0 0.0
(read/write) 1745052 1745052 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 188712 188712 0 0.0
.comment 204 204 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2664 2664 0 0.0
.debug_abbrev 1229252 1229252 0 0.0
.debug_aranges 111864 111864 0 0.0
.debug_frame 373508 373508 0 0.0
.debug_info 26823474 26823472 -2 -0.0
.debug_line 3671142 3671142 0 0.0
.debug_loc 3584653 3584653 0 0.0
.debug_ranges 340264 340264 0 0.0
.debug_str 3440224 3440224 0 0.0
.heap 841968 841968 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 569768 569768 0 0.0
.symtab 421248 421248 0 0.0
.text 1545288 1545288 0 0.0
.zero.table 8 8 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 0 0 0 0.0
(read only) 842704 842704 0 0.0
(read/write) 1687652 1687652 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 187976 187976 0 0.0
.comment 204 204 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2664 2664 0 0.0
.debug_abbrev 1221051 1221051 0 0.0
.debug_aranges 111336 111336 0 0.0
.debug_frame 376588 376588 0 0.0
.debug_info 26560255 26560255 0 0.0
.debug_line 3691858 3691858 0 0.0
.debug_loc 3572290 3572290 0 0.0
.debug_ranges 338880 338880 0 0.0
.debug_str 3429237 3429237 0 0.0
.heap 842704 842704 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 533857 533857 0 0.0
.symtab 407680 407680 0 0.0
.text 1488624 1488624 0 0.0
.zero.table 8 8 0 0.0
light cy8ckit_062s2_43012 0 0 0 0.0
(read only) 850896 850896 0 0.0
(read/write) 1606196 1606196 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 179992 179992 0 0.0
.comment 204 204 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2456 2456 0 0.0
.debug_abbrev 1055107 1055107 0 0.0
.debug_aranges 103544 103544 0 0.0
.debug_frame 346916 346916 0 0.0
.debug_info 22024450 22024450 0 0.0
.debug_line 3261776 3261776 0 0.0
.debug_loc 3270322 3270322 0 0.0
.debug_ranges 304208 304208 0 0.0
.debug_str 3234769 3234769 0 0.0
.heap 850896 850896 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 470234 470234 0 0.0
.symtab 376128 376128 0 0.0
.text 1415360 1415360 0 0.0
.zero.table 8 8 0 0.0
lock cy8ckit_062s2_43012 0 0 0 0.0
(read only) 845864 845864 0 0.0
(read/write) 1644060 1644060 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 185008 185008 0 0.0
.comment 204 204 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2472 2472 0 0.0
.debug_abbrev 1062526 1062526 0 0.0
.debug_aranges 104216 104216 0 0.0
.debug_frame 349740 349740 0 0.0
.debug_info 22403802 22403802 0 0.0
.debug_line 3270491 3270491 0 0.0
.debug_loc 3310181 3310181 0 0.0
.debug_ranges 307552 307552 0 0.0
.debug_str 3262224 3262224 0 0.0
.heap 845864 845864 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 476474 476474 0 0.0
.symtab 379360 379360 0 0.0
.text 1448192 1448192 0 0.0
.zero.table 8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1148620 1148612 -8 -0.0
.bss 110348 110348 0 0.0
.data 832 832 0 0.0
.text 595720 595712 -8 -0.0
lock-app qpg6105+debug (read/write) 1116532 1116524 -8 -0.0
.bss 106172 106172 0 0.0
.data 836 836 0 0.0
.text 563628 563620 -8 -0.0
telink light-switch-app tlsr9518adk80d (read/write) 788536 789372 836 0.1
bss 71672 71672 0 0.0
noinit 43520 43520 0 0.0
text 553046 553700 654 0.1
lighting-app tlsr9518adk80d (read/write) 810640 811484 844 0.1
bss 72520 72520 0 0.0
noinit 43520 43520 0 0.0
text 571266 571920 654 0.1
ota-requestor-app tlsr9518adk80d (read/write) 818584 819420 836 0.1
bss 73428 73428 0 0.0
noinit 43520 43520 0 0.0
text 577450 578100 650 0.1

@andy31415 andy31415 merged commit ff13388 into project-chip:v1.0-branch Nov 4, 2022
@s07641069 s07641069 deleted the telink_BLEManageImpl_cherry-pick branch November 4, 2022 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants