sdk3.0.6
Requirements: there are two devices at the same time as the machine (respectively called SlaveA and SlaveB), SlaveA test button, when there is a button activates SlaveA switch to host (MasterA) and search for radio equipment will find SlaveB (theory), and establish a connection, search services, and the corresponding profile data, receives the response after switching back to (SlaveA) from the machine.
The above processes are achieved, test the basic no problem, but time is too slow, sometimes within roughly 1 s response (the whole process with end) sometimes after 3 s to make the response.
Question:
1, the time waste in where?
2, to make the lowest power consumption, the optimal way to ~ the fastest
The following is my way of use:
Broadcast time interval: 500 ms,
The host search parameters:
MSG - > interval = 10;/ / APP_SCAN_INTERVAL;/ / 10 ms?Here not sure if ms
MSG - > Windows = 4;/ / APP_SCAN_WINDOW;/ / 4 ms?
Connection between
Ms, 50 500 ms overtime.
thank you
The search parameters, the unit is 625 us.You try to change a bit bigger.
Need to be sure, other key interrupt response from you, to start sending commands, scanning adv package and get the address, then began to establish a connection, all process every step of the time.
Can use rwble_get_clock () to get the timing, the unit 625 us, hardware uart printed directly.Can also be controlled air sniffer file.
The original poster hello, excuse me 14580 master-slave how you switch switch, can show routines
476969576
Is this your QQ
DA discussion groups