CN103235837B - A kind of method and apparatus of processing scan data - Google Patents

A kind of method and apparatus of processing scan data Download PDF

Info

Publication number
CN103235837B
CN103235837B CN201310164515.0A CN201310164515A CN103235837B CN 103235837 B CN103235837 B CN 103235837B CN 201310164515 A CN201310164515 A CN 201310164515A CN 103235837 B CN103235837 B CN 103235837B
Authority
CN
China
Prior art keywords
data
scan
file
hand
server
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
CN201310164515.0A
Other languages
Chinese (zh)
Other versions
CN103235837A (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.)
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Shangke Information Technology Co Ltd
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 Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Shangke Information Technology Co Ltd
Priority to CN201310164515.0A priority Critical patent/CN103235837B/en
Publication of CN103235837A publication Critical patent/CN103235837A/en
Application granted granted Critical
Publication of CN103235837B publication Critical patent/CN103235837B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a kind of method and apparatus of processing scan data, the efficiency of hand-hold scanning device processes scan-data can be improved, and without the need to the special software based on operating system.In the method for processing scan data of the present invention, scan-data is that hand-hold scanning equipment scans the data obtained to bar code, the method comprises: after scanning obtains scan-data, by in scan-data writing in files, under then this file being saved in the first catalogue of the storage system in hand-hold scanning equipment; By the internal memory of the described file under described first catalogue stored in described hand-hold scanning equipment; By the files passe in described internal memory to server.

Description

A kind of method and apparatus of processing scan data
Technical field
The present invention relates to a kind of method and apparatus of processing scan data.
Background technology
In logistics field, usual bar code is as the mark of parcel.Current bar code mainly contains one-dimension code and Quick Response Code, sorting operator can use scanning device to scan bar code, and the data scanned can be sent to the caching server of sortation hubs this locality, caching server can upload the data to central server.A central server can connect multiple caching server, and can be connected with e-commerce system.
Fig. 1 is the schematic diagram of the basic structure according to a kind of data handling system of the prior art.As shown in Figure 1, the data handling system 1 in logistics system mainly comprises central server cluster 15 and sortation hubs 11, has multiple caching server in sortation hubs 11, such as caching server 111,112; Each caching server connects the hand-hold scanning equipment 121,122,131,132 of multiple hand-hold scanning equipment such as shown in figure in a wired or wireless manner.Each caching server of sortation hubs 11 is connected with central server cluster 15, and the latter is connected with e-commerce system 3 again.
Along with the development of technology, hand-hold scanning equipment is also in constantly improving.Current normally used hand-hold scanning equipment comprises the smart machines such as personal digital assistant PDA, generally can run WinCE, Android, or the operating system such as Linux, and has bar code scanning function.When hand-hold scanning equipment is applied in the system shown in Fig. 1, be generally adopt the database processing scan-datas such as SQLCE or SQLite at present.
Adopt database processing scan-data Problems existing mainly: the handling property being limited to hand-hold scanning equipment, processes consuming time longer during runtime database, affect the processing speed of bar code data and then reduce the efficiency of packages; The operating system that hand-hold scanning equipment adopts is different, and the database be suitable for is also different, needs to use special database software for different operating system, and the expense buying software is larger.
Summary of the invention
In view of this, the invention provides a kind of method and apparatus of processing scan data, the efficiency of hand-hold scanning device processes scan-data can be improved, and without the need to the special software based on operating system.
For achieving the above object, according to an aspect of the present invention, a kind of method of processing scan data is provided.
In the method for processing scan data of the present invention, scan-data is that hand-hold scanning equipment scans the data obtained to bar code, the method comprises: after scanning obtains scan-data, by in scan-data writing in files, under then this file being saved in the first catalogue of the storage system in hand-hold scanning equipment; By the internal memory of the described file under described first catalogue stored in described hand-hold scanning equipment; By the files passe in described internal memory to server.
Alternatively, described by before the step in scan-data writing in files, also comprise: scan-data is tested and heavily processes.
Alternatively, described by before the step in scan-data writing in files, also comprise: scan-data is transferred to the server of specifying, the server of being specified by this carries out validity check by the rule preset to described scan-data.
Alternatively, described step in scan-data writing in files to be comprised: under checking current described first catalogue, whether have the file for preserving scan-data opened; If have, then described scan-data is write this file; Otherwise then newly-built one write described scan-data wherein for the file preserving scan-data; And the method also comprises: monitoring is in the described file of open mode, be in this closing of a file open mode reaches preset duration at this file.
Alternatively, described file is named with timestamp.
Alternatively, by the files passe in described internal memory to server step after, also comprise: under the file uploaded being transferred to the second catalogue of the storage system in described hand-hold scanning equipment.
According to a further aspect in the invention, provide a kind of device of processing scan data, this scan-data is that hand-hold scanning equipment scans the data obtained to bar code.
The device of processing scan data of the present invention comprises: written document module, in the scan-data writing in files that obtained by hand-hold scanning device scan; Preserve module, for described file is saved in the storage system in described hand-hold scanning equipment the first catalogue under; Read file module, for by the internal memory of the described file under described first catalogue stored in described hand-hold scanning equipment; Upper transmission module, for by the files passe in described internal memory to server.
Alternatively, also comprise and test molality block, before write operation being carried out to described scan-data in described written document module, described scan-data is tested and heavily processes.
Alternatively, also comprise sending module, before carrying out write operation in described written document module to described scan-data, described scan-data is transferred to the server of specifying, the server of being specified by this carries out validity check by the rule preset to described scan-data.
Alternatively, described written document module also for: whether have the file for preserving scan-data opened under checking current described first catalogue; If have, then described scan-data is write this file; Otherwise then newly-built one write described scan-data wherein for the file preserving scan-data; And described device also comprises monitoring modular, for monitoring the described file being in open mode, be in this closing of a file open mode reaches preset duration at this file.
According to technical scheme of the present invention, hand-hold scanning equipment is after scanning obtains scan-data, write in file, and be sent to caching server after forwarding file to internal memory, the mode of this employing file and memory queue is a kind of operation of lightweight, namely its processor resource consumed is quite low, makes hand-hold scanning equipment can processing scan data comparatively efficiently.And above-mentioned processing mode is one comparatively simply mode, application be that the basic function of each type operating system in hand-hold scanning equipment is as file processing, queue processing etc., easy exploitation, avoid the special software such as SQLCE etc. using operating system, contribute to saving cost, and be convenient to transplant between each operating system.In the technical scheme of this external embodiment of the present invention, under various network failure state, hand-hold scanning equipment can continuous firing, is uploaded by data selection server or keeps in this locality, the interruption of sorting work can not be caused, contribute to the work efficiency improving sortation hubs.
Accompanying drawing explanation
Accompanying drawing is used for understanding the present invention better, does not form inappropriate limitation of the present invention.Wherein:
Fig. 1 is the schematic diagram of the basic structure according to a kind of data handling system of the prior art;
Fig. 2 is the step schematic diagram of the method for processing scan data according to the embodiment of the present invention;
Fig. 3 is the schematic diagram of the basic structure of the device of processing scan data according to the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, one exemplary embodiment of the present invention is explained, comprising the various details of the embodiment of the present invention to help understanding, they should be thought it is only exemplary.Therefore, those of ordinary skill in the art will be appreciated that, can make various change and amendment, and can not deviate from scope and spirit of the present invention to the embodiments described herein.Equally, for clarity and conciseness, the description to known function and structure is eliminated in following description.
The applied environment of the technical scheme of the present embodiment can be the data handling system 1 shown in Fig. 1, and change made by arch-rival's software held in scanning device.In the method for the processing scan data of the embodiment of the present invention, hand-hold scanning equipment after bar code being carried out to scanning and obtaining scan-data, by scan-data writing in files, under then file being saved in a catalogue of storage system.For the file in this catalogue, first dumped in the internal memory (read or write speed of this internal memory is greater than the read or write speed of above-mentioned storage system usually) of hand-hold scanning equipment, then by the files passe in this internal memory to server, such as, caching server in Fig. 1.Explain to a kind of optimal way of the method for the processing scan data in the present embodiment below in conjunction with Fig. 2, Fig. 2 is the step schematic diagram of the method for processing scan data according to the embodiment of the present invention, and the method can be performed by hand-hold scanning equipment.
Step S21: scanning bar code obtains scan-data.Scan-data is the information of related goods, such as Air Way Bill No..
Step S22: carry out data and test heavily.Operating personnel's likely multiple scanning bar code because of carelessness or misoperation of hand-hold scanning equipment, so can arrange testing of this step to weigh link.Test to weigh and can avoid repetition uploading data.Can be specifically the queue of setting up a first in first out in internal memory, the length of queue can adjust, such as, be set to 200 scan-datas.After scanning obtains scan-data, first scan-data enters in this queue, is just compared by scan-data existing in itself and queue when new scan-data enters this queue, if this scan-data existing, exports prompting to make operating personnel learn.
Step S23: scan-data is given caching server and carry out validity check.Hand-hold scanning equipment with can set up between caching server that socket is long to be connected.Here verification can be carried out according to the rule preset.The figure place of such as waybill, user and for example for ecommerce eliminates order again after placing an order, but order has been produced and has been wrapped up and gone out warehouse output before cancellation, the information of now cancelling an order will mail to central server cluster from e-commerce system, according to sequence information, the information of cancelling an order is mail to corresponding caching server according to the sortation hubs that this order is corresponding by central server cluster again, like this, after this bar code superscribed is scanned, scan-data is sent to caching server by hand-hold scanning equipment, caching server just can to hand-hold scanning equipment return corresponding information make operating personnel learn this parcel without the need to sorting.If the data communication between hand-hold scanning equipment and caching server is interrupted, or caching server breaks down, then scan-data can be given central server cluster and carry out validity check.
Step S24: check in the assigned catalogue in the storage system of hand-hold scanning equipment whether have the data file opened.Here data file is used to the file writing scan-data, and can be the file of plain text format, assigned catalogue be the catalogue being used for preserving this data file set up in advance.For the judgement in this step, if result is "Yes", then enter step S26, otherwise enter step S25.
Step S25: set up a data file and open.This data file can be named with timestamp, and namely form can be yymmddhhmmss.txt, and such as current time is 15: 16: 27 on the 27th April in 2012, then the filename of data file is 120427151627.txt.
Step S26: the scan-data obtained in write step S21 in the data file opened.If in newly-built data file first time write scan-data, then timing and monitoring is in the data file of open mode from during write, is in open mode in data file and exceedes default duration such as 30S, then close this data file.This makes it possible to ensure that the priority of scan-data is consistent with the priority that data file is established, and control data file easily and be only written into 1 data file.And if take above-mentioned in the mode of timestamp named data file, then press modification time to after data file ordering, the scan-data be distributed in the data file of sequence is also sorted.
Step S27: current pent file is deposited in internal memory immediately.
Step S28: by the files passe in internal memory to server.Can create a queue in internal memory, the content of a file is as a node, and after file is uploaded to server according to the order of first-in first-out, the node of its correspondence is deleted.Can be transferred in another catalogue by the file after uploading, and from above-mentioned assigned catalogue, delete the file uploaded.
Under caching server is in normal operating conditions, to caching server in step S28 by the files passe in internal memory, and then file or the scan-data extracted from file can be uploaded to central server cluster by caching server, are for further processing to scan-data by the latter.If the data communication between caching server and central server cluster is broken down, then scan-data is temporarily stored in caching server, and pending fault uploads temporary scan-data after recovering automatically.If caching server breaks down or data communication between itself and hand held scanning device is broken down, and is then that scan-data is directly uploaded to central server cluster by the route device of sortation hubs in step S28.If above-mentioned several fault occurs simultaneously, then hand held scanning device can stop step S27, by the data temporary storage of scanning in above-mentioned assigned catalogue.
Fig. 3 is the schematic diagram of the basic structure of the device of processing scan data according to the embodiment of the present invention.This device can be arranged in hand-held sorting arrangement.As shown in Figure 3, the device 30 of processing scan data mainly comprises written document module 31, preserves module 32, reads file module 33, upper transmission module 34.
Written document module 31 is in the scan-data writing in files that obtained by hand-hold scanning device scan; Preserve module 32 for described file is saved in the storage system in described hand-hold scanning equipment the first catalogue under; Read file module 33 for by the internal memory of the described file under described first catalogue stored in described hand-hold scanning equipment; Upper transmission module 34 for by the files passe in described internal memory to server.
The device 30 of processing scan data can also comprise tests molality block (not shown), before carrying out write operation at written document module 31 pairs of scan-datas, tests heavily process scan-data.
The device 30 of processing scan data can also comprise sending module (not shown), before carrying out write operation at written document module 31 pairs of scan-datas, scan-data is transferred to the server of specifying, the server of being specified by this carries out validity check by the rule preset to scan-data.Here the server of specifying can be caching server or central server cluster.
Written document module 31 also can be used for: whether have the file for preserving scan-data opened under checking current described first catalogue; If have, then scan-data is write this file; Otherwise then newly-built one write scan-data wherein for the file preserving scan-data; Like this, the device 30 of processing scan data also can comprise monitoring modular (not shown), for monitoring the file being in open mode, is in this closing of a file open mode reaches preset duration at this file.
According to the technical scheme of the embodiment of the present invention, hand-hold scanning equipment is after scanning obtains scan-data, write in file, and be sent to caching server after forwarding file to internal memory, the mode of this employing file and memory queue is a kind of operation of lightweight, namely its processor resource consumed is quite low, makes hand-hold scanning equipment can processing scan data comparatively efficiently.And above-mentioned processing mode is one comparatively simply mode, application be that the basic function of each type operating system in hand-hold scanning equipment is as file processing, queue processing etc., easy exploitation, avoid the special software such as SQLCE etc. using operating system, contribute to saving cost, and be convenient to transplant between each operating system.In the technical scheme of this external embodiment of the present invention, under various network failure state, hand-hold scanning equipment can continuous firing, is uploaded by data selection server or keeps in this locality, the interruption of sorting work can not be caused, contribute to the work efficiency improving sortation hubs.
Below ultimate principle of the present invention is described in conjunction with specific embodiments, but, it is to be noted, for those of ordinary skill in the art, whole or any step or the parts of method and apparatus of the present invention can be understood, can in the network of any calculation element (comprising processor, storage medium etc.) or calculation element, realized with hardware, firmware, software or their combination, this is that those of ordinary skill in the art use their basic programming skill just can realize when having read explanation of the present invention.
Therefore, object of the present invention can also be realized by an operation program or batch processing on any calculation element.Described calculation element can be known fexible unit.Therefore, object of the present invention also can realize only by the program product of providing package containing the program code realizing described method or device.That is, such program product also forms the present invention, and the storage medium storing such program product also forms the present invention.Obviously, described storage medium can be any storage medium developed in any known storage medium or future.
Also it is pointed out that in apparatus and method of the present invention, obviously, each parts or each step can decompose and/or reconfigure.These decompose and/or reconfigure and should be considered as equivalents of the present invention.Further, the step performing above-mentioned series of processes can order naturally following the instructions perform in chronological order, but does not need necessarily to perform according to time sequencing.Some step can walk abreast or perform independently of one another.
Above-mentioned embodiment, does not form limiting the scope of the invention.It is to be understood that depend on designing requirement and other factors, various amendment, combination, sub-portfolio can be there is and substitute in those skilled in the art.Any amendment done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within scope.

Claims (8)

1. a method for processing scan data, described scan-data is that hand-hold scanning equipment scans the data obtained to bar code, and it is characterized in that, the method comprises:
After scanning obtains scan-data, by scan-data writing in files, under then this file being saved in the first catalogue of the storage system in hand-hold scanning equipment;
By the internal memory of the described file under described first catalogue stored in described hand-hold scanning equipment;
By the files passe in described internal memory to server;
Described step in scan-data writing in files to be comprised: under checking current described first catalogue, whether have the file for preserving scan-data opened; If have, then described scan-data is write this file; Otherwise then newly-built one write described scan-data wherein for the file preserving scan-data;
And the method also comprises: monitoring is in the described file of open mode, be in this closing of a file open mode reaches preset duration at this file.
2. method according to claim 1, is characterized in that, described by before the step in scan-data writing in files, also comprises: test scan-data and heavily process.
3. method according to claim 1 and 2, it is characterized in that, described by before the step in scan-data writing in files, also comprise: scan-data is transferred to the server of specifying, the server of being specified by this carries out validity check by the rule preset to described scan-data.
4. method according to claim 1, is characterized in that, described file is named with timestamp.
5. method according to claim 1, is characterized in that, by the files passe in described internal memory to server step after, also comprise: under the file uploaded being transferred to the second catalogue of the storage system in described hand-hold scanning equipment.
6. a device for processing scan data, described scan-data is that hand-hold scanning equipment scans the data obtained to bar code, and it is characterized in that, this device comprises:
Written document module, in the scan-data writing in files that obtained by hand-hold scanning device scan;
Preserve module, for described file is saved in the storage system in described hand-hold scanning equipment the first catalogue under;
Read file module, for by the internal memory of the described file under described first catalogue stored in described hand-hold scanning equipment;
Upper transmission module, for by the files passe in described internal memory to server;
Described written document module also for: whether have the file for preserving scan-data opened under checking current described first catalogue; If have, then described scan-data is write this file; Otherwise then newly-built one write described scan-data wherein for the file preserving scan-data;
And described device also comprises monitoring modular, for monitoring the described file being in open mode, be in this closing of a file open mode reaches preset duration at this file.
7. device according to claim 6, is characterized in that, also comprises and tests molality block, before carrying out write operation in described written document module to described scan-data, tests heavily process described scan-data.
8. the device according to claim 6 or 7, it is characterized in that, also comprise sending module, before write operation being carried out to described scan-data in described written document module, described scan-data is transferred to the server of specifying, the server of being specified by this carries out validity check by the rule preset to described scan-data.
CN201310164515.0A 2013-05-07 2013-05-07 A kind of method and apparatus of processing scan data Active CN103235837B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310164515.0A CN103235837B (en) 2013-05-07 2013-05-07 A kind of method and apparatus of processing scan data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310164515.0A CN103235837B (en) 2013-05-07 2013-05-07 A kind of method and apparatus of processing scan data

Publications (2)

Publication Number Publication Date
CN103235837A CN103235837A (en) 2013-08-07
CN103235837B true CN103235837B (en) 2016-03-09

Family

ID=48883878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310164515.0A Active CN103235837B (en) 2013-05-07 2013-05-07 A kind of method and apparatus of processing scan data

Country Status (1)

Country Link
CN (1) CN103235837B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103763344A (en) * 2013-12-31 2014-04-30 湖南大唐先一科技有限公司 General data sharing platform based on service bus and message drive mode
CN104484782A (en) * 2014-11-25 2015-04-01 苏州迪云信息科技有限公司 Processing method and device for scanned data
CN106534774A (en) * 2016-10-27 2017-03-22 四川九洲电器集团有限责任公司 Image transmission system
CN107360256A (en) * 2017-08-23 2017-11-17 上海斐讯数据通信技术有限公司 It is a kind of to generate text notes file, the method and system of Dropbox storage text notes
CN108304899A (en) 2018-01-16 2018-07-20 阿里巴巴集团控股有限公司 Information processing method, device and equipment based on scanning DOI

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101556642A (en) * 2008-06-27 2009-10-14 杨进 Hand-hold scanning data comparison equipment method
CN201364583Y (en) * 2009-01-23 2009-12-16 英业达股份有限公司 Barcode scanning device
CN101964046A (en) * 2010-10-28 2011-02-02 四川长虹电器股份有限公司 Barcode scanning and identifying method
CN202694367U (en) * 2012-07-17 2013-01-23 深圳市民德电子科技有限公司 Mobile barcode reader

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030200152A1 (en) * 2002-04-19 2003-10-23 Computer Associates Think, Inc. Wireless shopping system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101556642A (en) * 2008-06-27 2009-10-14 杨进 Hand-hold scanning data comparison equipment method
CN201364583Y (en) * 2009-01-23 2009-12-16 英业达股份有限公司 Barcode scanning device
CN101964046A (en) * 2010-10-28 2011-02-02 四川长虹电器股份有限公司 Barcode scanning and identifying method
CN202694367U (en) * 2012-07-17 2013-01-23 深圳市民德电子科技有限公司 Mobile barcode reader

Also Published As

Publication number Publication date
CN103235837A (en) 2013-08-07

Similar Documents

Publication Publication Date Title
CN103235837B (en) A kind of method and apparatus of processing scan data
CN107450941B (en) Automatic packaging method, device, storage medium and computer equipment
US9230372B2 (en) System and method for generating a transporting instruction using an environmental sensor
CN108881477B (en) Distributed file acquisition monitoring method
KR102005200B1 (en) A transportable network-connected data storage device having an updateable electronic display
CN202183122U (en) Product warehousing system for logistics management
CN106681930A (en) Distributed automatic application operation abnormity detecting method and system
CN103618776A (en) Method and device for downloading advertisement materials based on CDN
CN102346881A (en) Warehouse entry system and method based on wireless network
CN110278143A (en) E-mail data processing method, device, computer equipment and storage medium
CN102043714A (en) Automatic testing system of embedded software
CN110493302A (en) A kind of document transmission method, equipment and computer readable storage medium
US9646016B2 (en) Methods circuits apparatuses systems and associated computer executable code for data deduplication
CN103473169A (en) Log file collection method and device
CN101283542B (en) Device management system using log management object and method for generating and controlling logging data therein
CN105224420B (en) A kind of analysis method and system of automatic parsing terminal abnormal
CN104598382A (en) Test control method and device
CN108476151A (en) For capturing and being shown in local control network network(LCN)In grouping and other message system and method
CN104750814B (en) The automatic storage method of polynary heterogeneous data flow based on multisensor
KR100999573B1 (en) The Laundry Classification System by Using RFID
CN104484782A (en) Processing method and device for scanned data
CN105959200A (en) E-mail sending method and E-mail transmitting device
CN110362548A (en) Log extracting method and relevant device
CN103501251A (en) Method and device for processing data packet under offline condition
CN107797927A (en) Using automated testing method, device, equipment and readable storage medium storing program for executing

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