CN103902949B - Method and device for using ordinary scanning gun based on specific application - Google Patents

Method and device for using ordinary scanning gun based on specific application Download PDF

Info

Publication number
CN103902949B
CN103902949B CN201210590286.4A CN201210590286A CN103902949B CN 103902949 B CN103902949 B CN 103902949B CN 201210590286 A CN201210590286 A CN 201210590286A CN 103902949 B CN103902949 B CN 103902949B
Authority
CN
China
Prior art keywords
serial port
virtual serial
specific
com
data processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210590286.4A
Other languages
Chinese (zh)
Other versions
CN103902949A (en
Inventor
张伟
周强
张祖凯
崔霈文
杨奇
王尚磊
张卉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aisino Corp
Original Assignee
Aisino Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aisino Corp filed Critical Aisino Corp
Priority to CN201210590286.4A priority Critical patent/CN103902949B/en
Publication of CN103902949A publication Critical patent/CN103902949A/en
Application granted granted Critical
Publication of CN103902949B publication Critical patent/CN103902949B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention provides a method for using an ordinary scanning gun based on a specific application. The method includes the steps of establishing two virtual serial ports, namely, the virtual serial port COM 8 and the virtual serial port COM 9, connecting the two virtual serial ports in series, distributing the virtual serial ports to a specific scanning gun data processing module and a switching module respectively, setting a connector for the ordinary scanning gun through the switching module, and debugging the switching module so that the specific scanning gun data processing module can identify data scanned through the ordinary scanning gun to be data identified by the specific application through the switching module. The invention further provides a device for using the ordinary scanning gun based on the specific application. By means of the method and the device, great convenience is brought for using and maintaining scanning gun devices.

Description

The method and apparatus of the use plain scan rifle based on application-specific
Technical field
The present invention relates to scanning device, the method for more particularly, to a kind of use plain scan rifle based on application-specific and dress Put.
Background of invention
In concerning taxes field, because local vehicle purchase tax declaration form using such as the different tax category and national each province and city etc. is with two dimension In the file of code, information format content is different, and the file relative production company such as the declaration form of various places is also otherwise varied. So require to be scanned the selection of rifle when being scanned the file with Quick Response Code such as declaration form.And deposit now Software in have be much all the binding to scanner in design, thus causing must using specific scanner Information can be scanned.When scanner demand is big, it is greatly increased the cost of user.In addition, software is swept to specific Retouch the binding of rifle, also result in user when using once losing or damaging specific scanner it is impossible to timely increase or replace, Will dally over one's work.Simultaneously because can not cause user that great shadow is received on work efficiency using common scanner Ring.Therefore, the present invention always searches for a solution, with reaching, plain scan rifle on the market is used.
Content of the invention
It should be noted that heretofore described application-specific refers to this scanner of the identification scanning number with the binding of specific scanner According to software.
Instant invention overcomes the technological deficiency of above method, by serial data transmission is carried out to scanner and application-specific Research it is proposed that a kind of based on application-specific to plain scan rifle identification and use method.This method is applied to two The association areas such as dimension code scanning, are also applied for other any business scopes with this feature.The present invention proposes one kind and is based on The method of the use plain scan rifle of application-specific:
Create two virtual serial port COM 8 and COM 9;
Two virtual serial ports are connected;
It is respectively specific scanner data processing module and interconnecting module respectively distributes a described virtual serial port;
The interface of plain scan rifle is set using interconnecting module;
Debugging interconnecting module is so that described specific scanner data processing module will scan via described plain scan rifle Data is identified as, by described interconnecting module, the data that described application-specific is identified.
Wherein, debugging interconnecting module is to send identification character to make described specific scanner data by described interconnecting module The virtual serial port that reason module is configured to it is identified.
Wherein, send identification character to make described specific scanner data processing module that it is joined by described interconnecting module The virtual serial port put is identified being specially:To virtual serial port COM 8 send identification string, so and it series connection another Virtual serial port COM 9 is also identified character string, so that specific scanner data processing module identification virtual serial port, it can be recognized Plug specific scanner for described virtual serial port.
Wherein, described virtual serial port is the serial ports not actually existing.
Wherein, described series connection is to allow two serial ports to couple together, if so a serial ports sends out data thereto, another Serial ports also can read described data.
Wherein, described respectively specific scanner data processing module and interconnecting module respectively distribute a described virtual serial port It is specially:
For described specific scanner data processing module, virtual serial port COM 9 is set:Be equivalent to this specific scanner number To obtain the data that plain scan rifle scans out according to processing module from this virtual serial port COM 9;
Another virtual serial port COM 8 is set for described interconnecting module, once so described interconnecting module is from described common The actual interface COM 1 of scanner reads data and just sends toward this virtual serial port COM 8.
The present invention also proposes a kind of device of the use plain scan rifle based on application-specific, and it includes:
Interconnecting module, it is used for arranging the actual interface COM 1 of described plain scan rifle, and described plain scan rifle is swept The data retouched, after described actual interface receives, is converted to the data that specific scanner data processing module can identify;
Virtual serial port module, for creating two virtual serial port COM 8 and COM 9, is respectively used to connect described switching model Block and specific scanner data processing module;
Specific scanner data processing module, it receives the data being derived from a virtual serial port COM 9 to execute specific answering With thus identifying the data of described plain scan rifle scanning.
By the present invention, it is that the operation and maintenance of scanner equipment brings great convenience.
Brief description
Fig. 1 is the method flow diagram of the use plain scan rifle based on application-specific consistent with the embodiment of the present invention;
Fig. 2 is the schematic diagram of device of the use plain scan rifle based on application-specific consistent with the embodiment of the present invention.
Specific embodiment
Fig. 1 is the method flow diagram of the use plain scan rifle based on application-specific consistent with the embodiment of the present invention.
First, carry out the establishment of virtual serial port using virtual serial port module:Enterprising in the machine of PC or other uses Row creates virtual serial port.Virtual serial port is the serial ports not actually existing, but it can be searched in equipment manager, prior It is that it can carry out serial communication and carry out some operation of serial-port, and it the same with actual serial ports can allow software that it is carried out Configuration.
Secondly, two virtual serial ports are connected:Virtual serial port after two are built up is connected, the meaning of series connection Two serial ports are exactly allowed to couple together, if so a serial ports sends out data thereto, another serial ports also can read these numbers According to the data being equivalent to two serial ports communicates.
Then, one of for the serial ports just now connected virtual serial port COM 9 is set to specific scanner data processing module Put:Be equivalent to this specific scanner data processing module to obtain the scanning of plain scan rifle from this virtual serial port COM 9 Data out, but this serial ports is the data that interconnecting module sends in fact;Another is set for interconnecting module empty Intend serial ports COM 8, so read data just toward this virtual serial port COM 8 once interconnecting module from scanner actual interface COM 1 Send, and this virtual serial port COM 8 and virtual serial port COM 8 being connected on specific scanner data processing module communicates.
Then, the interface COM 1 of plain scan rifle is set using interconnecting module, and this interface COM 1 is physical presence Interface, it in succession plain scan rifle equipment come to be scanned operate.
Finally, debug interconnecting module.Interconnecting module sends identification character to make specific scanner data processing module to it The virtual serial port being configured is identified.It is specially and virtual serial port COM 8 is sent with identification string, so another with what it was connected One virtual serial port COM 9 is also identified character string, so that specific scanner data processing module identification virtual serial port, it Just think that virtual serial port has plugged specific scanner.So specific scanner data processing module just can receive plain scan rifle and sweep The data arriving, thus reach the effect of plain scan rifle energy scan data.
Its specifically used embodiment is as follows:
It is scanned operating using plain scan rifle equipment, the data scanning is passed to by actual interface COM 1 Interconnecting module, by the data is activation after transferring to virtual serial port module, described virtual serial port module passes through it to described interconnecting module Two virtual virtual serial port COM 8 and COM 9 are by the data is activation after transferring to specific scanner data processing module.
Thus reach simultaneously using the effect that application-specific is the same with specific scanner.
Fig. 2 is the device of the use plain scan rifle based on application-specific consistent with the embodiment of the present invention(1)Principle Figure, described device includes:
Interconnecting module, it is used for arranging the actual interface of plain scan rifle, and the data of plain scan rifle scanning is passed through After actual interface receives, be converted to the data that specific scanner data processing module can identify;
Virtual serial port module, for creating two virtual serial ports, is respectively used to connect interconnecting module and specific scanner number According to processing module;
Specific scanner data processing module, it receives from a virtual serial port data to execute application-specific, thus The data of identification plain scan rifle scanning.
Embodiment of above is merely to illustrate the present invention, and not limitation of the present invention, the ordinary skill people of this area Member, without departing from the spirit and scope of the present invention, can also make a variety of changes and modification, therefore all equivalent Technical scheme falls within scope of the invention, and the scope of patent protection of the present invention should be defined by the claims.

Claims (2)

1. a kind of based on application-specific using the method for plain scan rifle it is characterised in that comprising the following steps:
Create two virtual serial port COM 8 and COM 9;
Two virtual serial ports are connected;
It is respectively specific scanner data processing module and interconnecting module respectively distributes a described virtual serial port;
The actual interface of plain scan rifle is set using interconnecting module;
Debugging interconnecting module is so that the data that will scan via described plain scan rifle of described specific scanner data processing module The data that described application-specific is identified is identified as by described interconnecting module;
Wherein, debugging interconnecting module is to send identification character to make described specific scanner data processing mould by described interconnecting module The virtual serial port that block is configured to it is identified;
Wherein, send identification character to make described specific scanner data processing module that it is configured by described interconnecting module Virtual serial port is identified being specially:Virtual serial port COM 8 is sent with identification string, so virtual with another of its series connection Serial ports COM 9 is also identified character string, so that specific scanner data processing module identification virtual serial port, it will be considered that institute State virtual serial port and plug specific scanner;
Wherein, described virtual serial port is the serial ports not actually existing;
Wherein, described series connection is to allow two serial ports to couple together, if so a serial ports sends out data thereto, another serial ports Also described data can be read;
Wherein, respectively one described virtual serial port of distribution is concrete for described respectively specific scanner data processing module and interconnecting module For:For described specific scanner data processing module, virtual serial port COM 9 is set:Be equivalent to this specific scanner data processing Module to obtain, from this virtual serial port COM 9, the data that plain scan rifle scans out;
Another virtual serial port COM 8 is set for described interconnecting module, once so described interconnecting module is from described plain scan The actual interface COM 1 of rifle reads data and just sends toward this virtual serial port COM 8.
2. a kind of device of the use plain scan rifle based on application-specific is it is characterised in that include:
Interconnecting module, its actual interface COM 1 for arranging described plain scan rifle, and described plain scan rifle is scanned Data, after described actual interface receives, is converted to the data that specific scanner data processing module can identify;
Virtual serial port module, for creating two virtual serial port COM 8 and COM 9, be respectively used to connect described interconnecting module and Specific scanner data processing module;
Specific scanner data processing module, it receives the data being derived from a virtual serial port COM 9 to execute application-specific, from And identify the data of described plain scan rifle scanning.
CN201210590286.4A 2012-12-30 2012-12-30 Method and device for using ordinary scanning gun based on specific application Active CN103902949B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210590286.4A CN103902949B (en) 2012-12-30 2012-12-30 Method and device for using ordinary scanning gun based on specific application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210590286.4A CN103902949B (en) 2012-12-30 2012-12-30 Method and device for using ordinary scanning gun based on specific application

Publications (2)

Publication Number Publication Date
CN103902949A CN103902949A (en) 2014-07-02
CN103902949B true CN103902949B (en) 2017-02-15

Family

ID=50994262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210590286.4A Active CN103902949B (en) 2012-12-30 2012-12-30 Method and device for using ordinary scanning gun based on specific application

Country Status (1)

Country Link
CN (1) CN103902949B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107909320A (en) * 2017-11-06 2018-04-13 上海高通半导体有限公司 A kind of shelf label device systems of modular warehouse information
CN116956961B (en) * 2023-09-20 2023-11-28 四川省致链数字科技有限公司 Data acquisition system and method for general code scanning gun

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1877656A (en) * 2006-03-27 2006-12-13 深圳创维-Rgb电子有限公司 Real-time monitoring management system for production information of TV
CN101789889A (en) * 2010-01-14 2010-07-28 瑞斯康达科技发展股份有限公司 Method and system for automatic testing communication equipment
CN102508796A (en) * 2011-10-14 2012-06-20 深圳市京华科讯科技有限公司 Serial port redirection method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1877656A (en) * 2006-03-27 2006-12-13 深圳创维-Rgb电子有限公司 Real-time monitoring management system for production information of TV
CN101789889A (en) * 2010-01-14 2010-07-28 瑞斯康达科技发展股份有限公司 Method and system for automatic testing communication equipment
CN102508796A (en) * 2011-10-14 2012-06-20 深圳市京华科讯科技有限公司 Serial port redirection method and system

Also Published As

Publication number Publication date
CN103902949A (en) 2014-07-02

Similar Documents

Publication Publication Date Title
CN206712845U (en) A kind of things-internet gateway equipment, internet of things equipment group network system
CN104618010B (en) Optical network resource information verification method
CN104486192A (en) VLAN (Virtual Local Area Network) isolation method
CN101447915A (en) Method for realizing automatic and smooth switch among different network topology structures and network device thereof
CN102279827A (en) Multifunctional communication transit box
CN103902949B (en) Method and device for using ordinary scanning gun based on specific application
CN107147543A (en) A kind of socket communication means of server towards pc client
CN107888613A (en) A kind of management system framework based on cloud platform
CN108964271A (en) Valve island based on EtherCAT communications protocol
CN206819535U (en) The power wire broadband carrier kilowatt meter reading-out system of combining wireless narrowband carrier relaying
CN103826119A (en) Set top box debugging device and method
CN103856411A (en) Switching system connected with UART interface of router
CN204989857U (en) Remote control device based on pioneer robot
CN103561116A (en) Reconfigurable PXI serial communication card and method for achieving remote reconfiguration through reconfigurable PXI serial communication card
CN206461641U (en) Wireless communication module changeable type industrial gateway
CN107045538B (en) A kind of web terminal exchange management method based on kettle
CN106899082A (en) A kind of protective relaying device remote diagnosis method and system
CN106324555A (en) General virtual electric energy meter for electric energy meter data acquisition terminal test system
CN102609671A (en) Identification code entering system and identification code entering method
CN106341816B (en) A kind of authenticated configuration method applied to business WIFI system
CN109032866A (en) A kind of multimachine test method of more network interface card test same network segment products
CN101783980B (en) Optical transmission device and passive optical network system
CN204349130U (en) Special-purpose computer netting twine switching device
CN104133788B (en) CAN bus data transmission method in active filter system
CN104301447B (en) A kind of software module communication means

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant