Progress and serial equipment communicating method and its device
A device communication, serial port technology, applied in the field of communication, can solve the problem of inability to use serial port devices, serial port devices idle, blocking and other problems
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0022] Present embodiment is the method for process and local serial device communication, and Fig. 1 is the method flowchart of present embodiment, and it comprises 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 from the clien...
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] Embodiments 1 and 2 are methods for communicating between a client process and a local serial device. This embodiment is a method for communicating between a client process and a remote serial device, as shown in the flow chart of the method shown in FIG. 2 . 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...
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