Lines Matching refs:port

138     std::string port;

163 port = std::string(strDSName);
165 newPortInfo.push_back(port);
166 auto it = std::find(serialPortInfo.begin(), serialPortInfo.end(), port);
169 WRITE_LOG(LOG_DEBUG, "%s:new port %s", __FUNCTION__, port.c_str());
196 string port = "/dev/" + string(p->d_name);
197 if (port.find("/dev/ttyUSB") == 0 || port.find("/dev/ttySerial") == 0 || port.find("/dev/cu.") == 0) {
198 newPortInfo.push_back(port);
199 auto it = std::find(serialPortInfo.begin(), serialPortInfo.end(), port);
202 WRITE_LOG(LOG_DEBUG, "new port:%s", port.c_str());
214 // not found in new port list
221 // new scan empty , same as port changed
310 WRITE_LOG(LOG_DEBUG, "%s port read timeout", __FUNCTION__);
313 WRITE_LOG(LOG_WARN, "%s port read something %zd", __FUNCTION__, ret);
349 int cnt = _stprintf_s(apiBuf, sizeof(apiBuf), _T("\\\\.\\%S"), port.c_str());
382 WRITE_LOG(LOG_WARN, "Linux open serial port failed, serialPort:%s, Message : %s",
395 WRITE_LOG(LOG_INFO, "This is not a Idle UART port: %s", uart.serialPort.c_str());
545 for (const auto &port : serialPortInfo) {
546 WRITE_LOG(LOG_INFO, "%s found uart port :%s", __FUNCTION__, port.c_str());
547 // check port have session
549 server.AdminDaemonMap(OP_QUERY, port, hdi);
550 if (hdi == nullptr and connectedPorts.find(port) == connectedPorts.end()) {
551 UpdateUARTDaemonInfo(port, nullptr, STATUS_READY);
554 for (const auto &port : serialPortRemoved) {
555 WRITE_LOG(LOG_INFO, "%s remove uart port :%s", __FUNCTION__, port.c_str());
556 // check port have session
558 server.AdminDaemonMap(OP_QUERY, port, hdi);
560 // we only remove the empty port
561 UpdateUARTDaemonInfo(port, nullptr, STATUS_UNKNOW);
569 // we never use port to connect, we use connect key
592 WRITE_LOG(LOG_DEBUG, "%s connectkey:%s,port:%s", __FUNCTION__, Hdc::MaskString(hSession->connectKey).c_str(),