solutions
LoRa Basics Modem and LoRa Edge documentation
Scenario - LoRa Basics™ Wi-Fi Passive Scan¶
Introduction¶
One of the key features of the LoRa Edge™ Platform is the ability to scan Wi-Fi signals and provide the measurements to a LoRa Cloud™ Services to determine the location of an object. Here, we review the requirements for completing a passive Wi-Fi scan by the LR111x chip and for returning the data to the device application.
Prerequisites/Dependences¶
Common:
Must have an SPI connection to exchange information between the device application and the LR1110 chip.
Prerequisites for LoRa Basics™ Modem:
Not applicable
Prerequisites for LoRa Basics™ Modem-E:
No additional requirements
Prerequisites for a Transceiver:
No additional requirements
Step-by-Step Procedure¶
LoRa Basics™ Modem-E¶
Through the SPI interface, the host MCU calls the Wi-Fi passive scan command (
0x0330
)Note
Scan options include: Wi-Fi type (b/g/n), Chan Mask, Acquisition Mode, Max Nb, Nb Scan per Channel, Timeout, Abort on Timeout, and Result Format
Depending on the channel mask, number of scans per channel, and the timeout settings, the scan time will vary (for example, it will take about 500ms for six (6) access points on three (3) channels).
When the scan is complete, the EVENT signal on the LoRa Basics Modem-E is set high.
The host MCU calls
GetEventsize
(command0x0633
) andGetEvent
(command0x0600
).The LoRa Basics Modem-E clears the EVENT signal by asserting it low.
The LoRa Basics Modem-E returns the Wi-Fi scan results.
Transceiver¶
Through the SPI interface, the host MCU calls the Wi-Fi scan command (
0x0300
)Note
Scan options include: Wi-Fi type (b/g/n), Chan Mask, Acquisition Mode, Max Nb, Nb Scan per Channel, Timeout, Abort on Timeout, and Result Format
Depending on the channel mask, number of scans per channel, and the timeout settings, the scan time will vary (for example, it will take about 500ms for six (6) Access Points on three (3) channels).
If enabled with
WifiScanDone
, when the scan is complete, the IRQ signal on the LR1110 is set high.The host MCU calls
WifiGetNbResults
(command0x0305
) andWiFiReadResults
(command0x0306
).The LR1110 chip sets the BUSY signal low.
The LR1110 chip returns the Wi-Fi scan results.
If enabled, the LR1110 chip sets the IRQ signal low.
Used By¶
MCU, LR111x/LoRa Edge chip
Troubleshooting¶
No suggestions at this time.
LoRa Basics Modem and LoRa Edge documentation
Table of Contents
- Overview - LoRa Edge™ Asset Management Platform
- Use Case - Basic Asset Tracking
- Use Case - IR Image Upload on Detected Motion
- Scenario - GNSS Assisted Scan
- Scenario - GNSS Autonomous Scan
- Scenario - LoRa Basics™ Wi-Fi Passive Scan
- Scenario - GNSS Scan with ROSE
- Scenario - Wi-Fi Scan with ROSE
- Scenario - LoRa Cloud™ Join Server
- Scenario - Claiming a Device
- Scenario - Unclaiming a Device
- Scenario - Modem-E Initialization
- Scenario - LoRa Basics™ Almanac Update
- Scenario - User Loaded Almanac Update
- Scenario - Intermittent Network
- Component - Clock Synchronization
- Component - Large File Upload
- Component - Reliable Octet Stream Encoding
- Cryptographic Engine
- Glossary
ADDITIONAL RESOURCES - VIDEOS