Search found 19 matches
- Thu Jan 18, 2024 2:30 pm
- Forum: ESP-IDF
- Topic: Controlling Nimble BLE Advertising Scan Channels on S3
- Replies: 15
- Views: 111983
Re: Controlling Nimble BLE Advertising Scan Channels on S3
Check this comment out: https://www.esp32.com/viewtopic.php?f=13&t=37638#p126149 The problem is not the S3 and its BLE stack. If I run the use standalone BLE on the S3 I get a perfectly acceptable 3% packet loss. The problem is when I turn on esp-matter, then the packet loss jumps to 20%+, with some...
- Wed Jan 17, 2024 1:50 pm
- Forum: ESP-IDF
- Topic: Controlling Nimble BLE Advertising Scan Channels on S3
- Replies: 15
- Views: 111983
Re: Controlling Nimble BLE Advertising Scan Channels on S3
My goal is to send three ADV packets and get at least one of them 95% of the time. The sniffer sitting next to the S3 is dropping zero of these packets, the radios are only 40cm apart. I believe the high drop rate I am seeing is because the S3 radio is not listening to BLE when I send the packets. I...
- Fri Jan 12, 2024 9:50 pm
- Forum: ESP-IDF
- Topic: Controlling Nimble BLE Advertising Scan Channels on S3
- Replies: 15
- Views: 111983
Re: Controlling Nimble BLE Advertising Scan Channels on S3
I know it is a shared radio and it is going to miss packets, but is it possible to get sharing to a point where if I send a BLE packet three times 100ms apart it will get at least one of the three 98% of the time? Wifi is running in STA mode so shouldn't the wifi side have fixed timing windows where...
- Fri Jan 12, 2024 9:36 pm
- Forum: ESP-IDF
- Topic: Controlling Nimble BLE Advertising Scan Channels on S3
- Replies: 15
- Views: 111983
Re: Controlling Nimble BLE Advertising Scan Channels on S3
Next I started with the esp-matter/example/light code and added this file: #include <esp_err.h> #include <esp_log.h> #include <host/ble_gap.h> static const char *TAG = "ble_advert"; static void print_uuid(const ble_uuid_t *uuid) { char buf[BLE_UUID_STR_LEN]; printf("%s", ble_uuid_to_str(uuid, buf));...
- Fri Jan 12, 2024 8:45 pm
- Forum: ESP-IDF
- Topic: Controlling Nimble BLE Advertising Scan Channels on S3
- Replies: 15
- Views: 111983
Re: Controlling Nimble BLE Advertising Scan Channels on S3
Next I made a BLE only test program by stripping down the blecent example. /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF li...
- Fri Jan 12, 2024 7:27 pm
- Forum: ESP-IDF
- Topic: Controlling Nimble BLE Advertising Scan Channels on S3
- Replies: 15
- Views: 111983
Re: Controlling Nimble BLE Advertising Scan Channels on S3
Changing intvl and window to 160 doesn't seem to have any impact. Average of 33 seconds.
Code: Select all
8
30 22
51 21
90 39
134 44
142 8
148 6
154 6
156 2
198 42
298 100
348 50
392 44
463 71
475 12
534 59
576 42
614 38
649 35
699 50
725 26
818 93
820 2
862 42
881 19
938 57
966 28
973 7
986 13
- Fri Jan 12, 2024 6:57 pm
- Forum: ESP-IDF
- Topic: Controlling Nimble BLE Advertising Scan Channels on S3
- Replies: 15
- Views: 111983
Re: Controlling Nimble BLE Advertising Scan Channels on S3
Here's the periodicity of dropping packets. It is sending three packets once per second. These are the seconds when all three were dropped. First column is the seconds count, second is the delta seconds. The average delta is 25 seconds. Starts at 315. No code is changed from previous post. 325 377 5...
- Thu Jan 11, 2024 6:33 pm
- Forum: ESP-IDF
- Topic: Controlling Nimble BLE Advertising Scan Channels on S3
- Replies: 15
- Views: 111983
Re: Controlling Nimble BLE Advertising Scan Channels on S3
I have implemented esp_ble_scan_channel_setting() and verified that it works as expected. However, that does not seem to be the cause of my problems. If I set the sensor to Channel 37 and the S3 to Channel 39 I receive no packets, if I set them both to Channel 39 I see packets. Also note that I have...
- Mon Jan 08, 2024 2:47 pm
- Forum: ESP-IDF
- Topic: Controlling Nimble BLE Advertising Scan Channels on S3
- Replies: 15
- Views: 111983
Re: Controlling Nimble BLE Advertising Scan Channels on S3
So what is the best way to build a battery powered temperature sensor which connects to an ESP based device? The ESP device is mains powered and also on wifi with a small amount of traffic. My goal here is to minimize the number of packets the temp sensor is sending. If I use BLE advertising to send...
- Fri Jan 05, 2024 7:13 pm
- Forum: ESP-IDF
- Topic: Controlling Nimble BLE Advertising Scan Channels on S3
- Replies: 15
- Views: 111983
Controlling Nimble BLE Advertising Scan Channels on S3
How do I control the advertising scan channels for numble ble_gap_disc() on the S3?
There appears to be an undocumented API in the ROM -- ble_ll_scan_channel_setting(). Is that what I want? What are the parameters? Why isn't this documented?
There appears to be an undocumented API in the ROM -- ble_ll_scan_channel_setting(). Is that what I want? What are the parameters? Why isn't this documented?