-
Notifications
You must be signed in to change notification settings - Fork 69
SIO Command $FC Get Scan Result
Bill Kendrick edited this page May 27, 2022
·
3 revisions
This is a command for Device $70 - The FujiNet Device itself (see SIO-Commands-for-Device-ID-$70).
After running Command $FD to scan networks, this command returns the result specified by DAUX parameter, in the following format (33 bytes total):
Size | Parameter | Description |
---|---|---|
33 | SSID Name | Name of the detected network, NUL ($00) terminated. |
1 | RSSI | Signal Strength expressed in a single byte as dBm, e.g. -90 = -90dBm |
DCB | Value |
---|---|
DDEVIC | $70 |
DUNIT | $01 |
DCOMND | $FC |
DSTATS | $40 |
DBUF | 33 byte buffer, example struct below |
DTIMLO | $0F |
DBYT | 33 |
DAUX1 | # of network result to return |
DAUX2 | Not used |
union
{
struct
{
char ssid[33];
signed char rssi;
};
unsigned char rawData[34];
} ssidInfo;
/**
* Return Network entry from last scan
*/
unsigned char config_scan_result(unsigned char n)
{
OS.dcb.ddevic=0x70;
OS.dcb.dunit=1;
OS.dcb.dcomnd=0xFC; // Return scan result
OS.dcb.dstats=0x40; // Peripheral->Computer
OS.dcb.dbuf=&ssidInfo.rawData;
OS.dcb.dtimlo=0x0F; // 15 second timeout
OS.dcb.dbyt=sizeof(ssidInfo.rawData);
OS.dcb.daux1=n; // get entry #n
siov();
return OS.dcb.dstats;
}
- Scan Networks
- Set SSID
Copyright 2024 Contributors to the FujiNetWIFI project.
Join us on Discord: https://discord.gg/7MfFTvD
- Home
- What is FujiNet?
- The Definition of Done
- Board bring up for FujiNet Platform.IO code
- The Complete Linux CLI Guide
- The Complete macOS CLI Guide
- Development Env for Apps
- FujiNet-Development-Guidelines
- System Quickstarts
- FujiNet Flasher
- Setting up a TNFS Server
- FujiNet Configuration File: fnconfig.ini
- AppKey Registry - SIO Command $DC Open App Key
- CP-M Support
- BBS
- Official Hardware Versions
- Prototype Board Revisions
- FujiNet Development Guidelines
- Atari Programming
- Apple Programming
- C64 Programming
- ADAM Programming
- Testing Plan
- Hacker List
- FujiNet VirtualMachine