This commit is contained in:
2026-01-09 13:59:10 +08:00
commit 336a19762a
378 changed files with 99177 additions and 0 deletions

430
Identification/src/main.cpp Normal file
View File

@@ -0,0 +1,430 @@
/*
本程序用于 设备出厂获取 唯一标识符进行 wifi设置和修改
向云端发送访问请求(ICCID号),并显示请求次数
接收云端传传来的标识符,并保存至本地,根据表示符进行wifi设置
第二次启动时,自动检测是否已进行初始化,若是,直接从配置文件中获取唯一标识符
*/
#include <iostream>
#include <mutex>
#include <condition_variable>
#include <nlohmann/json.hpp> //用于解析JSON字符串
#include <chrono>
#include <boost/process.hpp>
#include "NetRequest.hpp"
#include "Netra.hpp"
#include <boost/process.hpp>
#include <signal.h>
using namespace std;
using namespace QCL;
using namespace ntq;
using namespace chrono_literals;
namespace bp = boost::process;
const string filePath = "/home/orangepi/RKApp/InitAuth/conf/.env";
// 请求唯一标识符接口路径
const string UUIDPost = "http://116.147.36.110:8095/device/requestQrcode";
const size_t MAXSIZE = 1024 * 1024;
// 保存ICCID
string ICCID = "";
string UUID; // 保存唯一标识
int PostCount = 0; // 请求次数
mutex fileMutex; // 文件锁
mutex logMutex; // 日志锁
atomic<pid_t> g_Device_pid{0};
// 检测是否已进行初始化
bool checkInit();
// 获取标识符并保存至配置文件中
bool GetSignID();
// 设置wifi热点:名称,密码
void setApNet(const string &name, const string &pwd);
// 读取配置文件,并获取表示符
void ReadUUID();
// 启动设备激活程序,等待用户激活
void startActiveWare();
// 退出信号处理
void forwardSigint(int);
// 获取SIM卡号
string GetSimICCID(const string &tty = "/dev/ttyUSB2");
// 清理日志
void clearLog();
int main()
{
// 自检
if (checkInit())
{ // 已进行初始化
ReadUUID();
setApNet(UUID, UUID);
// 启动激活程序
startActiveWare();
return 0;
}
else
{ // 未进行初始化
if (GetSignID())
{ // 获取标识符成功
setApNet(UUID, UUID);
startActiveWare();
return 0;
}
cerr << "获取标识符失败,请重试" << endl;
return -1;
}
return 0;
}
// 清理日志
void clearLog()
{
lock_guard<mutex> lk(logMutex);
string logpath = "/home/orangepi/RKApp/Identification/src/nohup.out";
size_t length = filesystem::file_size(logpath);
if (length >= MAXSIZE)
{ // 清空日志
ofstream ofs(logpath, ios::trunc);
}
}
// 退出信号处理
void forwardSigint(int)
{
pid_t pgid = g_Device_pid.load();
if (pgid > 0)
{
kill(-pgid, SIGINT);
}
}
// 获取SIM卡号
// 通过串口发送 AT+CCID 指令读取并解析返回的ICCID号
string GetSimICCID(const string &tty)
{
int retry = 0;
while (retry < 5)
{
// 非阻塞打开,避免因 VMIN/VTIME 卡死
int fd = open(tty.c_str(), O_RDWR | O_NOCTTY | O_NDELAY);
if (fd < 0)
{
std::cerr << "无法打开串口: " << tty << std::endl;
return "";
}
// 原始模式配置
struct termios options{};
tcgetattr(fd, &options);
cfsetispeed(&options, B115200);
cfsetospeed(&options, B115200);
options.c_cflag |= (CLOCAL | CREAD);
options.c_lflag &= ~(ICANON | ECHO | ECHOE | ISIG);
options.c_oflag &= ~OPOST;
options.c_iflag &= ~(IXON | IXOFF | IXANY);
options.c_cc[VMIN] = 0;
options.c_cc[VTIME] = 5; // 0.5s
tcsetattr(fd, TCSANOW, &options);
auto send_and_read = [&](const char *cmd) -> std::string
{
// 清空缓冲并发送
tcflush(fd, TCIOFLUSH);
write(fd, cmd, strlen(cmd));
std::string result;
char buf[256] = {0};
// 轮询读取累计约2秒
for (int i = 0; i < 20; ++i)
{
int n = read(fd, buf, sizeof(buf));
if (n > 0)
result.append(buf, n);
usleep(100000);
}
return result;
};
// 先试 AT+QCCID失败再试 AT+CCID
std::string result = send_and_read("AT+QCCID\r\n");
if (result.find("+QCCID") == std::string::npos)
{
std::string r2 = send_and_read("AT+CCID\r\n");
if (!r2.empty())
result += r2;
}
close(fd);
// 打印原始回应便于调试
std::string debug = result;
// 清理换行
debug.erase(std::remove_if(debug.begin(), debug.end(),
[](unsigned char c)
{ return c == '\r' || c == '\n'; }),
debug.end());
// std::cout << "ICCID原始回应: " << debug << std::endl;
// 错误重试
if (result.find("ERROR") != std::string::npos)
{
retry++;
usleep(200000);
continue;
}
// 解析(支持字母数字)
std::smatch m;
// +QCCID 或 +CCID 后取字母数字
std::regex reg(R"(\+(?:Q)?CCID:\s*([0-9A-Za-z]+))");
if (std::regex_search(debug, m, reg))
{
std::string iccid = m[1];
// 去掉尾部OK或非字母数字
while (!iccid.empty() && !std::isalnum(static_cast<unsigned char>(iccid.back())))
iccid.pop_back();
if (iccid.size() >= 2 && iccid.substr(iccid.size() - 2) == "OK")
iccid.erase(iccid.size() - 2);
return iccid;
}
// 兜底19~22位的字母数字如尾部含 D
std::regex reg2(R"(([0-9A-Za-z]{19,22}))");
if (std::regex_search(debug, m, reg2))
{
std::string iccid = m[1];
while (!iccid.empty() && !std::isalnum(static_cast<unsigned char>(iccid.back())))
iccid.pop_back();
if (iccid.size() >= 2 && iccid.substr(iccid.size() - 2) == "OK")
iccid.erase(iccid.size() - 2);
return iccid;
}
// 进一步兜底:手工截取 +QCCID: / +CCID: 后的连续字母数字
auto parse_after = [&](const std::string &s, const std::string &key) -> std::string
{
size_t pos = s.find(key);
if (pos == std::string::npos)
return "";
pos += key.size();
while (pos < s.size() && std::isspace(static_cast<unsigned char>(s[pos])))
pos++;
size_t start = pos;
while (pos < s.size() && std::isalnum(static_cast<unsigned char>(s[pos])))
pos++;
std::string iccid = (pos > start) ? s.substr(start, pos - start) : "";
if (iccid.size() >= 2 && iccid.substr(iccid.size() - 2) == "OK")
iccid.erase(iccid.size() - 2);
return iccid;
};
{
std::string iccid = parse_after(debug, "+QCCID:");
if (iccid.empty())
iccid = parse_after(debug, "+CCID:");
if (!iccid.empty())
return iccid;
}
retry++;
usleep(200000);
}
return "";
}
// 检测是否已进行初始化
bool checkInit()
{
bool isInit = true;
// 上锁,防止竞争
lock_guard<mutex> lk(fileMutex);
// 读取配置文件
ReadFile rf(filePath);
if (rf.Open() == false)
{
cerr << "文件打开失败" << endl;
isInit = false;
}
auto lines = rf.ReadLines();
for (auto &line : lines)
{
if (line.find("UUID:null") != string::npos)
{ // 未初始化
isInit = false;
}
}
rf.Close();
return isInit;
}
// 获取标识符并保存至配置文件中
bool GetSignID()
{
// 获取成功状态
bool getState = true;
bool isRunning = true;
// ICCI获取
ICCID = GetSimICCID();
// cout << "ICCID = " << ICCID << endl;
if (ICCID.empty())
{
cerr << "获取ICCID失败,请检查SIM卡" << endl;
return false;
}
int postCount = 0;
int reTryTimes = 0;
string RequestBody = format(R"({"cardNo":"{}"})", ICCID);
// cout << "RequestBody = " << RequestBody << endl;
while (isRunning)
{
// 发送请求
// cout << "RequestBody = " << RequestBody << endl;
auto res = NetRequest::QuickPostJson(UUIDPost, RequestBody);
int code = res->status;
if (res->status == 200)
{ // 请求成功
++postCount;
auto json = nlohmann::json::parse(res->body);
// cout << "json = " << json << endl;
if (json["code"] == 601)
{
system("clear");
cout << "ICCID:" << ICCID << ",已发送请求次数 " << postCount << "" << endl;
}
else if (json["code"] == 200)
{
auto qrcode = json["data"]["qrcode"];
UUID = qrcode;
// 保存至配置文件中
{
lock_guard<mutex> lk(fileMutex);
ReadFile rf(filePath);
if (!rf.Open())
return false;
auto lines = rf.ReadLines();
for (auto &line : lines)
{
if (line.find("UUID:null") != string::npos)
{
line = format("UUID:{}", qrcode);
cout << line << endl;
}
}
string out;
out.reserve(4096);
for (size_t i = 0; i < lines.size(); ++i)
{
out += lines[i];
if (i + 1 < lines.size())
out += "\n";
}
rf.Close();
WriteFile wf(filePath);
wf.overwriteText(out);
isRunning = false;
}
}
else if (json["code"] == 500)
{
cout << "申请失败,请联系管理员,ICCID = " << ICCID << endl;
}
}
else
{
cerr << "请检查网络连接" << endl;
++reTryTimes;
if (reTryTimes > 5)
{ // 重试五次
getState = false;
isRunning = false;
}
}
// 间隔两秒
this_thread::sleep_for(2s);
}
return getState;
}
// 设置wifi热点:名称,密码
void setApNet(const string &name, const string &pwd)
{
// 清空nohup.out
clearLog();
// 确保无线接口启用
system("sudo rfkill unblock all");
system("sudo ip link set wlan0 up");
// 清理占用与启用接口
system("sudo pkill -f create_ap; sudo pkill -f dnsmasq");
system("sudo ip link set wlan0 up");
// 组装SSID和密码
std::string ssid = name.empty() ? UUID : name;
std::string pass = pwd.empty() ? UUID : pwd;
if (pass.size() < 8)
pass = "12345678";
// 上游接口优先默认路由
char buf[64]{0};
FILE *fp = popen("ip route show default | awk '{print $5}' | head -n1", "r");
std::string upstream = "enP4p65s0";
if (fp && fgets(buf, sizeof(buf), fp))
{
upstream = buf;
if (!upstream.empty() && upstream.back() == '\n')
upstream.pop_back();
}
if (fp)
pclose(fp);
string cmd = format("nohup sudo create_ap --no-virt wlan0 {} {} {} &", upstream,UUID, "12345678");
cout << "cmd = " << cmd << endl;
system(cmd.c_str());
}
// 读取配置文件,并获取标识符符
void ReadUUID()
{
lock_guard<mutex> lk(fileMutex);
ReadFile rf(filePath);
rf.Open();
auto lines = rf.ReadLines();
for (auto &line : lines)
{
if (line.find("UUID:\"") != string::npos)
{
size_t start = sizeof("UUID:\"") - 1;
size_t end = line.find_last_of("\"") - start;
UUID = line.substr(start, end);
}
}
rf.Close();
}
// 启动设备激活程序,等待用户激活
void startActiveWare()
{
string cmd = "/home/orangepi/RKApp/DeviceActivate/bin/init";
try
{
// 启动为前台子进程,父进程等待它退出
bp::child c(cmd);
g_Device_pid = c.id();
signal(SIGINT, forwardSigint);
c.wait(); // 等待子进程结束
}
catch (const std::exception &e)
{
cerr << e.what() << "\n";
}
}

View File

@@ -0,0 +1,11 @@
all:init
Lib=/home/orangepi/RKApp/Identification/NetraLib/src/Netra.cpp /home/orangepi/RKApp/Identification/NetraLib/src/NetRequest.cpp
Dir=-I/home/orangepi/RKApp/Identification/NetraLib/include
init:main.cpp
g++ -g -o init main.cpp $(Lib) $(Dir)
mv init ../bin/
clean:
rm -rf ../bin/init

View File

@@ -0,0 +1,443 @@
Config dir: /tmp/create_ap.wlan0.conf.PomKvPbx
PID: 89397
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.PomKvPbx/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.dqY0BJzo
PID: 90669
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.dqY0BJzo/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: STA ee:f9:8a:d0:2d:d0 IEEE 802.11: associated
wlan0: AP-STA-CONNECTED ee:f9:8a:d0:2d:d0
wlan0: STA ee:f9:8a:d0:2d:d0 RADIUS: starting accounting session D778B931DF91C4C1
wlan0: STA ee:f9:8a:d0:2d:d0 WPA: pairwise key handshake completed (WPA)
wlan0: EAPOL-4WAY-HS-COMPLETED ee:f9:8a:d0:2d:d0
wlan0: STA ee:f9:8a:d0:2d:d0 WPA: group key handshake completed (WPA)
wlan0: interface state ENABLED->DISABLED
wlan0: AP-STA-DISCONNECTED ee:f9:8a:d0:2d:d0
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.HgAfJdWj
PID: 92972
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.HgAfJdWj/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.jCYEIC2l
PID: 94521
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.jCYEIC2l/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.O6tZHvv9
PID: 95747
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.O6tZHvv9/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.zomkqZoi
PID: 6073
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.zomkqZoi/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.oFxCOtsK
PID: 7719
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.oFxCOtsK/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.WQ07ItUO
PID: 20344
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.WQ07ItUO/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.HjgpbEwh
PID: 21610
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.HjgpbEwh/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.OfnM3JfA
PID: 22626
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.OfnM3JfA/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.JJbBuSPG
PID: 24441
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.JJbBuSPG/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.pX7yKGQl
PID: 26376
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.pX7yKGQl/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.MOBfnqKy
PID: 5262
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.MOBfnqKy/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: STA 3e:70:82:f1:3b:46 IEEE 802.11: associated
wlan0: AP-STA-CONNECTED 3e:70:82:f1:3b:46
wlan0: STA 3e:70:82:f1:3b:46 RADIUS: starting accounting session 6ED5FB11496C62F7
wlan0: STA 3e:70:82:f1:3b:46 WPA: pairwise key handshake completed (WPA)
wlan0: EAPOL-4WAY-HS-COMPLETED 3e:70:82:f1:3b:46
wlan0: STA 3e:70:82:f1:3b:46 WPA: group key handshake completed (WPA)
wlan0: interface state ENABLED->DISABLED
wlan0: AP-STA-DISCONNECTED 3e:70:82:f1:3b:46
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.1vgFWxb7
PID: 6614
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.1vgFWxb7/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: STA 3e:70:82:f1:3b:46 IEEE 802.11: associated
wlan0: AP-STA-CONNECTED 3e:70:82:f1:3b:46
wlan0: STA 3e:70:82:f1:3b:46 RADIUS: starting accounting session EA15353438E0990C
wlan0: STA 3e:70:82:f1:3b:46 WPA: pairwise key handshake completed (WPA)
wlan0: EAPOL-4WAY-HS-COMPLETED 3e:70:82:f1:3b:46
wlan0: STA 3e:70:82:f1:3b:46 WPA: group key handshake completed (WPA)
Config dir: /tmp/create_ap.wlan0.conf.KVBNKa7h
PID: 6760
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.KVBNKa7h/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: STA c6:61:e4:cc:21:b6 IEEE 802.11: associated
wlan0: AP-STA-CONNECTED c6:61:e4:cc:21:b6
wlan0: STA c6:61:e4:cc:21:b6 RADIUS: starting accounting session EC1EC617036F6AC5
wlan0: STA c6:61:e4:cc:21:b6 WPA: pairwise key handshake completed (WPA)
wlan0: EAPOL-4WAY-HS-COMPLETED c6:61:e4:cc:21:b6
wlan0: STA c6:61:e4:cc:21:b6 WPA: group key handshake completed (WPA)
wlan0: interface state ENABLED->DISABLED
wlan0: AP-STA-DISCONNECTED c6:61:e4:cc:21:b6
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.Uu1rJV2Z
PID: 9121
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.Uu1rJV2Z/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.eUBvTiPu
PID: 9947
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.eUBvTiPu/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.LUlSarOz
PID: 12353
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.LUlSarOz/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
Config dir: /tmp/create_ap.wlan0.conf.HeWk4qA5
PID: 5723
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.HeWk4qA5/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.tn5owY5o
PID: 7312
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.tn5owY5o/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.8fdSXmBE
PID: 8097
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.8fdSXmBE/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.8q0qXfI7
PID: 9326
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.8q0qXfI7/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.1ZLpQdtL
PID: 10483
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.1ZLpQdtL/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
Config dir: /tmp/create_ap.wlan0.conf.UBRL5Fzb
PID: 6526
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.UBRL5Fzb/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.Ul8H7ztq
PID: 7742
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.Ul8H7ztq/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.BYHPjB4H
PID: 10687
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.BYHPjB4H/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.bvmUeKpD
PID: 13214
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.bvmUeKpD/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.1vuA1WnF
PID: 14910
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.1vuA1WnF/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.9qIbqKcW
PID: 17106
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.9qIbqKcW/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.0Nc6Mgxj
PID: 18744
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.0Nc6Mgxj/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.ILCs6w3z
PID: 21113
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.ILCs6w3z/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.RSMAHJNS
PID: 22667
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.RSMAHJNS/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.5uEDtcBq
PID: 27948
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.5uEDtcBq/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done
Config dir: /tmp/create_ap.wlan0.conf.9MJc5DPx
PID: 11810
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.9MJc5DPx/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: interface state ENABLED->DISABLED
Doing cleanup.. wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
done
Config dir: /tmp/create_ap.wlan0.conf.vvvO6zLU
PID: 15680
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.vvvO6zLU/hostapd_ctrl
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: STA 8a:66:28:b0:d8:34 IEEE 802.11: associated
wlan0: AP-STA-POSSIBLE-PSK-MISMATCH 8a:66:28:b0:d8:34
wlan0: AP-STA-POSSIBLE-PSK-MISMATCH 8a:66:28:b0:d8:34
wlan0: AP-STA-POSSIBLE-PSK-MISMATCH 8a:66:28:b0:d8:34
wlan0: AP-STA-POSSIBLE-PSK-MISMATCH 8a:66:28:b0:d8:34
wlan0: STA 8a:66:28:b0:d8:34 IEEE 802.11: disassociated
wlan0: STA 8a:66:28:b0:d8:34 IEEE 802.11: disassociated
wlan0: STA 8a:66:28:b0:d8:34 IEEE 802.11: associated
wlan0: AP-STA-CONNECTED 8a:66:28:b0:d8:34
wlan0: STA 8a:66:28:b0:d8:34 RADIUS: starting accounting session AF0169DAA09704E0
wlan0: STA 8a:66:28:b0:d8:34 WPA: pairwise key handshake completed (WPA)
wlan0: EAPOL-4WAY-HS-COMPLETED 8a:66:28:b0:d8:34
wlan0: STA 8a:66:28:b0:d8:34 WPA: group key handshake completed (WPA)
wlan0: interface state ENABLED->DISABLED
wlan0: AP-STA-DISCONNECTED 8a:66:28:b0:d8:34
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Doing cleanup.. done