Home
last modified time | relevance | path

Searched refs:beacon (Results 1 – 5 of 5) sorted by relevance

/tools/netsim/rust/daemon/src/bluetooth/
Dbeacon.rs158 let mut beacon = guard.get(&self.chip_id); in tick() localVariable
159 if beacon.is_none() { in tick()
163 let mut beacon = beacon.unwrap().lock().expect("Failed to acquire lock on BeaconChip"); in tick() localVariable
166 (beacon.advertise_start, beacon.advertise_settings.timeout) in tick()
173 if let Some(last) = beacon.advertise_last { in tick()
174 if last.elapsed() <= beacon.advertise_settings.mode.interval { in tick()
178 beacon.advertise_start = Some(Instant::now()) in tick()
181 beacon.advertise_last = Some(Instant::now()); in tick()
184 advertising_type: beacon.advertise_settings.get_packet_type(), in tick()
185 advertising_data: beacon.advertise_data.to_bytes(), in tick()
[all …]
Dmod.rs19 mod beacon; module
22 pub(crate) use self::beacon::*;
/tools/netsim/rust/cli/
Dnetsim-cli.md32 * ### `beacon`: A chip that sends advertisements at a set interval
33 * Usage: `netsim beacon <COMMAND>`
35 * `create`: Create a beacon
36 * Usage: `netsim beacon create <COMMAND>`
38 * `ble`: Create a Bluetooth low-energy beacon
39 … * Usage: `netsim beacon create ble [DEVICE_NAME | DEVICE_NAME CHIP_NAME] [OPTIONS]`
42 …* \[CHIP_NAME\]: Optional name of the beacon to create within the new device. May only be specifie…
50 * `--tx-power-level <LEVEL>`: Set the beacon's transmission power level
57 * `--scannable`: Set whether the beacon will respond to scan requests
63 * `patch`: Modify a beacon
[all …]
/tools/netsim/proto/netsim/
Dmodel.proto96 // Advertise Settigns dictate how the beacon functions on the netwwork.
98 // How often the beacon sends an advertising packet
136 // How often the beacon sends an advertising packet
149 // Whether the beacon will respond to scan requests.
156 // scan responses sent by the beacon. Beacons in Betosim will support a
162 // UUID of a Bluetooth GATT service for the beacon
182 // Settings on how beacon functions
210 // Settings on how beacon functions
Dstats.proto40 // built-in BLE beacon