Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Serial port data interactive mode based on PC and device

An interactive mode and serial data technology, which is applied in the field of computer communication, can solve the problems of manual configuration, lack of versatility, and inability to modify instructions, and achieve the effect of reducing development costs and development time

Inactive Publication Date: 2009-11-11
XIAMEN STELCOM INFORMATION & TECH
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When exchanging data between the existing PC and the device, using the debugging assistant can only simply send commands and reply commands, one by one and one back, and the commands need to be manually configured
There is also a program that is specially customized for the terminal, such as the driver program provided with the mobile phone, which specifically operates the mechanism inside the mobile phone, but this method is not universal and cannot be modified

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Serial port data interactive mode based on PC and device
  • Serial port data interactive mode based on PC and device
  • Serial port data interactive mode based on PC and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0023] Example 1. Data loading

[0024] When the front desk operation 51 of the PC5 issues a load contact instruction, the instruction sending processing module 10 reads the configuration instruction file 30, generates the sending instruction 12 of the device according to the configuration, and stores the sending instruction 12 of the device in the instruction sending stack 11. When there is a sending command 12 in the command sending stack 11, the sending command 12 is sent to the device 4 at the time.

[0025] For example, load the phone book: contact "Zhang San", device 1360000000, address. After reading the configuration file, generate the command AT+WPAR+00001+UNICODE+255+Zhang San (UNICODE) 1360000000 address (UNICODE)

Embodiment 2

[0026] Example 2. Data reading

[0027] When the front desk operation 51 of the PC5 issues a read contact instruction, the instruction sending processing module 10 generates the sending instruction 12 of the device according to the configuration by reading the configuration instruction file 30, and stores the sending instruction 12 of the device in the instruction sending stack 11. When there is a command in the command sending stack 11, the command is selected to send the command to the device 4 and wait for a reply. After the device 4 responds, it sends the reply device command 22 to the command receiving stack 21.

[0028] For example, load the phone book: contact "Zhang San", device 1360000000, address. After reading the configuration file, generate the command AT+WPAR+00001+UNICODE+255+Zhang San (UNICODE) 1360000000 address (UNICODE)

Embodiment 3

[0029] Example 3. Data analysis

[0030] When the front desk operation 51 of PC5 issues other instructions, the instruction sending processing module 10 reads the configuration instruction file 30, generates the sending instruction 12 of the device according to the configuration, and stores the sending instruction 12 of the device in the instruction sending stack 11. When the instruction is sent When there is an instruction in the stack 11, it will choose the opportunity to send the instruction to the device 4 and wait for the reply. After the device 4 responds, it sends the reply device instruction 22 to the instruction receiving stack 21. The instruction receiving processing module 20 retrieves the instruction receiving stack 21. If the instruction receives the stack When there is an instruction in 21, read the configuration instruction file 30 and analyze the instruction data according to the configuration. If there is a corresponding instruction response action configured, the...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the computer communication field, in particular to a serial port communication data interactive mode based on PC and device. The PC interacts with the device by instruction, thus achieving the aim of operating device data conveniently, effectively and fast and loading and analyzing the device data commonly, so that the mode is also known as 'instruction operation mechanism'. The serial port data interactive mode based on PC and device includes: an instruction is automatically generated according to a configuration instruction file and is sent to the device after receiving PC foreground operation instruction, the interactive mode of the instruction is analyzed automatically according to the configuration instruction file after the device responds and the device data is received; and meanwhile, log can be printed, display data can be sent and real-time data can be monitored during communication. The invention adopts common instruction operation mechanism and configuration method to automatically load and analyze the device data. The program is not modified or expanded while the instruction changes continuously, one-step development or less maintenance is needed, and development cost and development time are reduced.

Description

Technical field [0001] The present invention relates to the field of computer communication, in particular to a data interaction method based on the serial communication between a PC and a device. The PC interacts with the device through instructions to conveniently, effectively and quickly achieve the purpose of operating device data, and to load and parse the device universally Data, also known as "instruction operation mechanism". Background technique [0002] At present, there are many types of device data and continuous expansion. Therefore, the instructions for the interaction between the PC and the device are necessarily diverse and the types continue to expand, so that the PC program is constantly changing to adapt to the changing instruction types. There are many uncertain factors, which increase the development and Maintenance costs. In the data interaction between the existing PC and the device, the debugging assistant can only send instructions and reply instructions,...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F13/10G06F13/38
Inventor 聂书贵
Owner XIAMEN STELCOM INFORMATION & TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products