Progress and serial equipment communicating method and its device
A technology of device communication and serial port, which is applied in the field of communication, and can solve problems such as serial device idleness, blockage, and inability to use serial device
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0022] This embodiment is a method for the process to communicate with the local serial device, figure 1 It is a flow chart of the method of the present embodiment, which includes the following steps:
[0023] S101. The service process detects the state of the serial port according to the query instruction sent by the client process to detect the state information of the serial port, and sends the state information of the serial port to the client process. There can be multiple client processes.
[0024] S102. If the serial port is on or open, the client process sends a read / write serial port device instruction. There can be multiple client processes.
[0025] S103. The service process receives the instruction for reading / writing the serial port device. Multiple client processes can issue read / write serial device commands to the service process at the same time, and the service process can process the read / write serial device commands in the order in which they are received...
Embodiment 2
[0033] The present embodiment is the application instance of embodiment one scheme: client process 1 and client process 2 visit the GSM mobile phone that is connected with computer, and client process 1 will read the phone number of mobile phone and client process 2 will send ringtone to mobile phone;
[0034] 1, start client process 1 and client process 2; Create a service process, be responsible for proxy client process to carry out read / write operation to mobile phone, described service process creates receiving and sending thread 1 and receiving and sending thread 2;
[0035] 2. The client process 1 sends query serial port status information to the service process, the receiving and sending thread 1 detects the status of the serial port, and sends the result to the client process 1 through the receiving and sending thread 1, and the client process 1 finds that the serial port is not open, then sends a message to the service The process sends an instruction to open the seria...
Embodiment 3
[0039] Embodiment one and embodiment two are the method that client process communicates with local serial device, and this embodiment is the method that client process communicates with remote serial device, such as figure 2 The flow chart of the method. The method of the present embodiment comprises the following steps:
[0040] S201. The service process detects the state of the serial port according to the query instruction for detecting state information of the serial port sent by the client process through the network, and sends the state information of the serial port to the client process through the network. There may be multiple client processes, which respectively send instructions for detecting the state of the serial port through the network.
[0041] S202. If the serial port is in an open state, the client process sends a read / write serial port device instruction to a remote service process through the network, and there may be multiple client processes.
[004...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com