CN103235837A - Method and device for processing scanned data - Google Patents

Method and device for processing scanned data Download PDF

Info

Publication number
CN103235837A
CN103235837A CN 201310164515 CN201310164515A CN103235837A CN 103235837 A CN103235837 A CN 103235837A CN 201310164515 CN201310164515 CN 201310164515 CN 201310164515 A CN201310164515 A CN 201310164515A CN 103235837 A CN103235837 A CN 103235837A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
file
scan data
data
scanning device
server
Prior art date
Application number
CN 201310164515
Other languages
Chinese (zh)
Other versions
CN103235837B (en )
Inventor
李鹏涛
Original Assignee
北京京东尚科信息技术有限公司
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

Links

Abstract

The invention provides a method and a device for processing scanned data. Through the method and the device, scanned data processing efficiency of a handheld scanning device can be improved, and special software based on an operation system is not required. In the method, the scanned data is data obtained by scanning bar codes through the handheld scanning device. The method includes that after the scanned data is obtained through scanning, the scanned data is written into a file, then the file is stored under a first catalogue of a storage system in the handheld scanning device; the file under the first catalogue is stored into a memory of the handheld scanning device; and the file in the memory is uploaded to a server.

Description

一种处理扫描数据的方法和装置 A method and apparatus for processing scan data

技术领域 FIELD

[0001 ] 本发明涉及一种处理扫描数据的方法和装置。 [0001] The present invention relates to a method and apparatus for processing scan data.

背景技术 Background technique

[0002] 在物流领域,通常用条形码作为包裹的标识。 [0002] In the field of logistics, usually a bar code as the identification of the parcel. 目前的条形码主要有一维码和二维码,分拣操作员可以使用扫描设备对条形码进行扫描,并可以将扫描到的数据发送到分拣中心本地的缓存服务器,缓存服务器可以将数据上传到中心服务器。 At present there are one-dimensional bar code codes and two-dimensional code, sorting operator can use the device to scan the bar code is scanned, and the scanned data can be sent to a sorting center in the local cache server, the cache server data can be uploaded to a central server. 一个中心服务器可以连接多个缓存服务器,并且可以与电子商务系统连接。 A central server can be connected to a plurality of cache servers, and may be connected to the electronic commerce system.

[0003] 图1是根据现有技术中的一种数据处理系统的基本结构的示意图。 [0003] FIG. 1 is a diagram showing the basic configuration of a data processing system according to the prior art. 如图1所示,物流系统中的数据处理系统I主要包括中心服务器集群15和分拣中心11,分拣中心11中有多个缓存服务器,例如缓存服务器111、112 ;各个缓存服务器以有线或无线的方式连接多个手持扫描设备例如图中示出的手持扫描设备121、122、131、132。 1, the data processing system of the logistics system includes a central server clusters I major sorting centers 15 and 11, a plurality of sorting centers 11, cache server, the cache server 111, for example; each cache server in a wired or wirelessly connected to the plurality of handheld scanning device handheld scanning device shown in FIG 121,122,131,132 example. 分拣中心11的各个缓存服务器与中心服务器集群15连接,后者又与电子商务系统3连接。 Sorting centers each cache server connected to the central server cluster 15 11 3 which in turn is connected to the e-commerce system.

[0004] 随着技术的发展,手持扫描设备也在不断的改进中。 [0004] With the development of technology, the hand-held scanning devices are always being improved. 目前通常使用的手持扫描设备包括个人数字助理PDA等智能设备,一般能够运行WinCE, Android,或者Linux等操作系统,并具有条形码扫描功能。 Currently handheld scanning devices commonly used include personal digital assistant (PDA) and other smart devices, generally able to run WinCE, Android, or Linux operating systems, and has a bar code scanning. 在手持扫描设备应用在图1所示的系统中的情况下,目前一般是采用SQLCE或者SQLite等数据库处理扫描数据。 In hand-held scanning device application in the system shown in FIG. 1, a general use SQLite SQLCE or other database processing scan data.

[0005] 采用数据库处理扫描数据存在的问题主要是:受限于手持扫描设备的处理性能,运行数据库时处理耗时较长,影响条形码数据的处理速度进而降低包裹分拣的效率;手持扫描设备采用的操作系统不同,适用的数据库也不同,需要针对不同的操作系统使用专用的数据库软件,购买软件的开销较大。 [0005] The database processing scan data occurring problem is: the handheld processing performance is limited by the scanning device, the process takes longer time to run the database, affect the processing speed of the bar code data thus reducing the efficiency of sorting parcels; hand-held scanning device different operating systems used for different databases, you need to use a dedicated database software for different operating systems, the cost of purchasing software is large.

发明内容 SUMMARY

[0006] 有鉴于此,本发明提供一种处理扫描数据的方法和装置,能够提高手持扫描设备处理扫描数据的效率,并且无需基于操作系统的专用软件。 [0006] Accordingly, the present invention provides a method and apparatus for processing scan data, hand held scanning device can improve the efficiency of processing the scan data, and without dedicated software-based operating system.

[0007] 为实现上述目的,根据本发明的一个方面,提供了一种处理扫描数据的方法。 [0007] To achieve the above object, according to one aspect of the invention, there is provided a method for processing scan data.

[0008] 在本发明的处理扫描数据的方法中,扫描数据是手持扫描设备对条形码进行扫描得到的数据,该方法包括:在扫描得到扫描数据之后,将扫描数据写入文件中,然后将该文件保存到手持扫描设备内的存储系统的第一目录下;将所述第一目录下的所述文件存入所述手持扫描设备的内存;将所述内存中的文件上传到服务器。 [0008] In the method of the present invention, the processing the scan data, the scan data is a handheld scanning device for scanning the bar code data obtained, the method comprising: scanning the data obtained after the scan, the scan data written to the file, then save the file directory to the first storage system in the handheld scanning device; the first file in the directory stored in said hand-held scanning device memory; uploading the file to the server memory.

[0009] 可选地,所述将扫描数据写入文件中的步骤之前,还包括:对扫描数据进行验重处理。 Before [0009] Alternatively, the step of writing said scan data file, further comprising: a re-inspection scan data processing.

[0010] 可选地,所述将扫描数据写入文件中的步骤之前,还包括:将扫描数据交由指定的服务器,由该指定的服务器按预设的规则对所述扫描数据进行有效性校验。 Before [0010] Alternatively, the step of writing said scan data file, further comprising: scanning the data referred to the specified server, according to a preset rule validity of the scanning data generated by the designated server check.

[0011] 可选地,所述将扫描数据写入文件中的步骤包括:检查当前所述第一目录下是否有已打开的用于保存扫描数据的文件;若有,则将所述扫描数据写入该文件;否则新建一个用于保存扫描数据的文件然后向其中写入所述扫描数据;并且该方法还包括:监测处于打开状态的所述文件,在该文件处于打开状态达到预设时长的情况下将该文件关闭。 Step [0011] Alternatively, the scan data is written to the file includes: check for holding open the current scan data file of the first directory; if so, then the scan data monitoring the duration is in the open state of the file, the file is open in a predetermined state is reached: and the method further comprises; write to the file; otherwise, create a new file for storing the scan data and said scan data is written thereto in case the file is closed.

[0012] 可选地,所述文件以时间戳命名。 [0012] Alternatively, the file names to time stamp.

[0013] 可选地,将所述内存中的文件上传到服务器的步骤之后,还包括:将上传过的文件转移到所述手持扫描设备内的存储系统的第二目录下。 After [0013] Alternatively, the memory file uploaded to the server step further comprises: transferring the file uploaded to the handheld the second directory in the storage system scanning device.

[0014] 根据本发明的另一方面,提供了一种处理扫描数据的装置,该扫描数据是手持扫描设备对条形码进行扫描得到的数据。 [0014] According to another aspect of the present invention, there is provided an apparatus for processing scan data, the scan data is a handheld scanning device for scanning the bar code data obtained.

[0015] 本发明的处理扫描数据的装置包括:写文件模块,用于将手持扫描设备扫描得到的扫描数据写入文件中;保存模块,用于将所述文件保存到所述手持扫描设备内的存储系统的第一目录下;读文件模块,用于将所述第一目录下的所述文件存入所述手持扫描设备的内存;上传模块,用于将所述内存中的文件上传到服务器。 [0015] The scan data processing apparatus according to the present invention comprises: a file writing module configured to scan data obtained by scanning a handheld scanning device written to the file; storing module, for saving the file into the hand-held scanning device a first storage system directory; read file module, for the first file in the directory stored in said hand-held scanning device memory; upload module, for uploading a file to the memory server.

[0016] 可选地,还包括验重模块,用于在所述写文件模块对所述扫描数据进行写入操作之前,对所述扫描数据进行验重处理。 [0016] Optionally, further comprising a re-inspection means for writing the file to the module prior to the write to the scan data, the scan data re-inspection process.

[0017] 可选地,还包括发送模块,用于在所述写文件模块对所述扫描数据进行写入操作之前,将所述扫描数据交由指定的服务器,由该指定的服务器按预设的规则对所述扫描数据进行有效性校验。 [0017] Optionally, further comprising a transmitting means for writing the file to the module prior to the scan data write operation, the data referred to scan specified server, the server specified by the preset It rules the scan data validity checking.

[0018] 可选地,所述写文件模块还用于:检查当前所述第一目录下是否有已打开的用于保存扫描数据的文件;若有,则将所述扫描数据写入该文件;否则新建一个用于保存扫描数据的文件然后向其中写入所述扫描数据;并且所述装置还包括监测模块,用于监测处于打开状态的所述文件,在该文件处于打开状态达到预设时长的情况下将该文件关闭。 [0018] Alternatively, the write file module is further configured to: check for open scan data stored in the current directory of the first file; if so, then the scan data is written to the file ; otherwise, a new file for storing the scan data and said scan data written thereto; and said apparatus further comprises monitoring means for monitoring the file in the open state, the file is open reaches a preset when the length of the case file is closed.

[0019] 根据本发明的技术方案,手持扫描设备在扫描得到扫描数据之后,将其写到文件中,并将文件转到内存之后发送到缓存服务器,这种采用文件和内存队列的方式是一种轻量级的操作,即其消耗的处理器资源相当低,使得手持扫描设备能够较为高效地处理扫描数据。 [0019] According to the present invention, after the hand-held scanning device scans scanned data, writes it to a file, and then sent to the file server to the cache memory, and this memory queue files by way of a species lightweight operation, i.e., processor resources it consumes relatively low, so that the hand-held scanning device capable of processing scanned data more efficiently. 并且上述的处理方式是一种较为简单的方式,应用的是手持扫描设备中的各类操作系统的基本功能如文件处理、队列处理等,容易开发,避免使用操作系统的专用软件例如SQLCE等,有助于节省成本,而且便于在各个操作系统之间移植。 And the above-described treatment is a relatively simple manner, various types of applications is the basic operating system functions of the handheld scanning device such as a document processing queue processing, easy to develop, to avoid the use of dedicated software operating system like e.g. SQLCE, It contributes to cost savings and ease of migration between the respective operating systems. 此外在本发明实施例的技术方案中,在各种网络故障状态下,手持扫描设备都可以持续工作,将数据选择服务器上传或暂存到本地,不会导致分拣工作的中断,有助于提高分拣中心的工作效率。 Further, in the technical solution of the embodiments of the present invention, a variety of network fault condition, a handheld scanning device can work continuously, the temporarily stored data to select a server or upload locally serviced without disrupting the work of sorting helps improve the efficiency of sorting centers.

附图说明 BRIEF DESCRIPTION

[0020] 附图用于更好地理解本发明,不构成对本发明的不当限定。 [0020] The accompanying drawings for a better understanding of the present invention, without unduly limiting the present invention. 其中: among them:

[0021] 图1是根据现有技术中的一种数据处理系统的基本结构的示意图; [0021] FIG. 1 is a diagram showing the basic configuration of a data processing system according to the prior art;

[0022] 图2是根据本发明实施例的处理扫描数据的方法的步骤示意图; [0022] FIG. 2 is a schematic diagram of the processing steps of a method according to the scan data to an embodiment of the present invention;

[0023] 图3是根据本发明实施例的处理扫描数据的装置的基本结构的示意图。 [0023] FIG. 3 is a diagram showing the basic configuration of a scan data processing apparatus according to an embodiment of the present invention.

具体实施方式 detailed description

[0024] 以下结合附图对本发明的示范性实施例做出说明,其中包括本发明实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。 [0024] DESCRIPTION OF THE DRAWINGS made below of exemplary embodiments of the present invention, including various details of the embodiments to assist in understanding the present invention, they should be regarded as merely exemplary. 因此,本领域普通技术人员应当认识至IJ,可以对这里描述的实施例做出各种改变和修改,而不会背离本发明的范围和精神。 Accordingly, those of ordinary skill in the art to be appreciated IJ, changes may be made to the embodiments and various modifications described herein, without departing from the scope and spirit of the invention. 同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。 Also, for clarity and conciseness, the following description is omitted the description of known functions and Structure.

[0025] 本实施例的技术方案的应用环境可以是图1所示的数据处理系统1,主要对手持扫描设备中的软件作出了改变。 [0025] The technical solution of the present application environments embodiments may be a data processing system 1 shown in FIG. 1, a handheld scanning device mainly software changes made. 在本发明实施例的处理扫描数据的方法中,手持扫描设备在对条形码进行扫描得到扫描数据之后,将扫描数据写入文件中,然后将文件保存到存储系统的一个目录下。 In the method for processing the scan data to an embodiment of the present invention, after the hand-held scanning device to scan the barcode data scanned, the scanned data is written to the file, then save the file to a directory in the storage system. 对于该目录中的文件,先将其转存到手持扫描设备的内存(该内存的读写速度通常大于上述的存储系统的读写速度)中,再将该内存中的文件上传到服务器,例如图1中的缓存服务器。 For the files in the directory, first move it to a handheld scanning device memory (read and write speed of the memory access speed is generally greater than the above-described storage system), and then upload the file to the server memory, e.g. the cache server 1 in FIG. 以下结合图2对本实施例中的处理扫描数据的方法的一种优选方式做出说明,图2是根据本发明实施例的处理扫描数据的方法的步骤示意图,该方法可由手持扫描设备来执行。 FIG 2 in combination with one of the following preferred embodiment of the method for processing the scanned data in the present embodiment made of illustration, Figure 2 is a scan data processing steps of a method according to an embodiment of the present invention, a schematic view of the method performed by a hand held scanning device.

[0026] 步骤S21:扫描条形码得到扫描数据。 [0026] Step S21: scanning the bar code scan data obtained. 扫描数据是有关商品的信息,例如运单号。 Scan data is information about the product, such as tracking number.

[0027] 步骤S22:进行数据验重。 [0027] Step S22: re-test data. 手持扫描设备的操作人员有可能因为疏忽或操作不当而重复扫描条码,所以可以设置本步骤的验重环节。 The operator of the hand-held scanning device is possible because of negligence or improper operation is repeated scanning bar codes, it can be re-set part of the present inspection step. 验重可以避免重复上传数据。 Re-upload to avoid duplication test data. 具体可以是在内存中建立一个先进先出的队列,队列的长度可以调整,例如设置为200条扫描数据。 DETAILED established in memory may be a FIFO queue, the queue length can be adjusted, for example, 200 is set to scan data. 在扫描得到扫描数据之后,扫描数据首先进入该队列中,当新的扫描数据进入该队列时就将其与队列中已有的扫描数据进行比较,若已有该扫描数据则输出提示以使操作人员得知。 After the scan data scanned, the scanned data into the first queue, when a new scan data is placed in the queue which will be compared with existing data in the queue scanning, the scanning has Ruoyi data is output to prompt the operator staff know.

[0028] 步骤S23:将扫描数据交给缓存服务器进行有效性校验。 [0028] Step S23: The scan data to the server cache validity check. 手持扫描设备与缓存服务器之间可以建立socket长连接。 You can establish long socket connection between a handheld scanning device and the cache server. 这里的校验可以按照预设的规则进行。 Check here can be carried out in accordance with preset rules. 例如运单的位数;又如对于电子商务的用户在下单之后又取消了订单,但在取消之前订单已生产并且包裹已出仓库输出,此时取消订单的信息将从电子商务系统发往中心服务器集群,又由中心服务器集群根据订单信息将取消订单的信息按照该订单对应的分拣中心发往相应的缓存服务器,这样,当该包裹上的条码被扫描之后,扫描数据被手持扫描设备发送给缓存服务器,缓存服务器就可以向手持扫描设备返回相应的提示信息使操作人员得知该包裹无需分拣。 For example waybill number of bits; and if the user of e-commerce for the next one and later canceled the order, but the order has been canceled and production before the parcel had a warehouse output, and the cancellation of orders sent to the e-commerce system information from a central server cluster, and the cluster information center server in accordance with the order corresponding to the order sent to the sorting center corresponding cache server according to the order information will be canceled, so that, when the bar code on the package is scanned, the scan data is transmitted to the hand held scanning device cache server, the cache server can return appropriate message to the hand-held scanning device enables the operator to know the parcel you do not need sorting. 如果手持扫描设备与缓存服务器之间的数据通信中断,或者缓存服务器出现故障,则可以将扫描数据交给中心服务器集群进行有效性校验。 If the data communication between a handheld scanning device and the cache server interruption, or cache server fails, you can scan data to the central server cluster validity checking.

[0029] 步骤S24:检查手持扫描设备的存储系统中的指定目录中是否有已打开的数据文件。 Whether the file has been opened specified directory data storage system checks the hand held scanning device in which: [0029] Step S24. 这里的数据文件是用来写入扫描数据的文件,可以是纯文本格式的文件,指定目录是预先建立的用来保存这种数据文件的目录。 Here's the data file is used to write the file scan data can be plain text format file, specify the directory is pre-built catalog of such data files to save. 对于本步骤中的判断,若结果为“是”,则进入步骤S26,否则进入步骤S25。 For the determination of this step, if the result is "YES", the process proceeds to step S26, the otherwise to step S25.

[0030] 步骤S25:建立一个数据文件并打开。 [0030] Step S25: the establishment of a data file and open it. 该数据文件可以用时间戳命名,即形式可以是yymmddhhmmss.txt,例如当前时间是2012年4月27日15点16分27秒,贝U数据文件的文件名是120427151627.txt。 The data file can be named with a time stamp, which may take the form yymmddhhmmss.txt, for example, the current time is 2012, at 15:16:27 on on April 27, the file name is Tony U data files 120427151627.txt.

[0031] 步骤S26:向打开的数据文件中写入步骤S21中得到的扫描数据。 [0031] Step S26: write scan data obtained in step S21 to open the data file. 如果是向新建的数据文件中第一次写入扫描数据,则从写入时开始计时并且监测处于打开状态的数据文件,在数据文件处于打开状态超过预设的时长例如30S,则关闭该数据文件。 If the length of writing new data to the scan data file for the first time, and starts counting from the monitor in the open state when writing a data file, the data file is open exceeds a predetermined 30S e.g., turning off the data file. 这样就能够保证扫描数据的先后与数据文件被建立的先后是一致的,并且方便地控制了数据文件只被写入I个数据文件。 In this way we can guarantee has scanned data with the data file has been created is consistent and easily control the data file is written only I data files. 并且如果采取上述的以时间戳命名数据文件的方式,则按修改时间对数据文件排序之后,分布在排序的数据文件内的扫描数据也被排序。 After the above-described manner and, if taken to stamp data file name, modification time press sort the data file, scanned data in the distributed data files are sorted ordered.

[0032] 步骤S27:将当前被关闭的文件立即存到内存中。 [0032] Step S27: The current file is closed immediately stored into memory. [0033] 步骤S28:将内存中的文件上传到服务器。 [0033] Step S28: to upload files to the server memory. 内存中可以创建一个队列,一个文件的内容作为一个节点,文件按照先入先出的顺序被上传到服务器之后,其对应的节点被删除。 After the memory to create a queue, the contents of a file as a node, the files are first-in first-out order to be uploaded to the server, the corresponding node is deleted. 被上传之后的文件可以转移到另一个目录中,并且从上述的指定目录中删除已上传的文件。 After the file is uploaded can be transferred to another directory and delete files uploaded from the specified directory.

[0034] 在缓存服务器处于正常工作状态下,步骤S28中是将内存中的文件上传到缓存服务器,进而缓存服务器可将文件或从文件中提取的扫描数据上传到中心服务器集群,由后者对扫描数据作进一步处理。 [0034] in a normal operation state, step S28 is to upload a file to the memory cache server, the cache server may further upload a file or a file extracted from the scanned data to a central server cache server cluster, for the latter scan data for further processing. 如果缓存服务器与中心服务器集群之间的数据通信出现故障,则扫描数据被暂存在缓存服务器,待故障恢复后自动上传暂存的扫描数据。 If the data communication between the central server and cache server cluster fails, the scan data is temporarily stored in the cache server, automatically upload the scanned data temporarily stored until recovery. 如果缓存服务器出现故障或者其与手持扫描装置之间的数据通信出现故障,步骤S28中则是将扫描数据通过分拣中心的路由装置直接上传到中心服务器集群。 If the cache server failure occurs, or the data communication between the hand held scanning device which fails, in step S28 sucked scan data is uploaded to a central server via a cluster routing means direct sorting center. 如果上述几种故障同时发生,则手持扫描装置可停止步骤S27,将扫描的数据暂存在上述的指定目录中。 If the above several simultaneous failures, the hand held scanning device may stop step S27, the scanned data is temporarily stored in the above-specified directory.

[0035] 图3是根据本发明实施例的处理扫描数据的装置的基本结构的示意图。 [0035] FIG. 3 is a diagram showing the basic configuration of a scan data processing apparatus according to an embodiment of the present invention. 该装置可以设置在手持分拣设备中。 The sorting means may be provided in a handheld device. 如图3所示,处理扫描数据的装置30主要包括写文件模块31、保存模块32、读文件模块33、上传模块34。 3, the apparatus 30 processes the scan data file including the write module 31, storage module 32, the module 33 reads the file, uploading module 34.

[0036] 写文件模块31用于将手持扫描设备扫描得到的扫描数据写入文件中;保存模块32用于将所述文件保存到所述手持扫描设备内的存储系统的第一目录下;读文件模块33用于将所述第一目录下的所述文件存入所述手持扫描设备的内存;上传模块34用于将所述内存中的文件上传到服务器。 [0036] The file writing module 31 for a handheld scanning device to scan data obtained by scanning written to the file; storing module 32 configured to save the file to the directory of the first storage system within said hand-held scanning device; read file module 33 for converting the files in the first directory is stored in the memory of the handheld scanning device; upload module 34 for uploading files to the server memory.

[0037] 处理扫描数据的装置30还可以包括验重模块(图中未示出),用于在写文件模块31对扫描数据进行写入操作之前,对扫描数据进行验重处理。 [0037] The scan data processing apparatus 30 may further include a re-inspection module (not shown), prior to the writing operation for writing the file data module 31 to scan, the scan data re-inspection process.

[0038] 处理扫描数据的装置30还可以包括发送模块(图中未示出),用于在写文件模块31对扫描数据进行写入操作之前,将扫描数据交由指定的服务器,由该指定的服务器按预设的规则对扫描数据进行有效性校验。 [0038] The scan data processing means 30 may further include a transmitting module (not shown), before writing the file to the scan module 31 the data write operation, the data referred to scan specified server, specified by the the server according to a preset rule to check the validity of scan data. 这里的指定的服务器可以是缓存服务器或者中心服务器集群。 Here the server can be specified cache server or central server cluster.

[0039] 写文件模块31还可用于:检查当前所述第一目录下是否有已打开的用于保存扫描数据的文件;若有,则将扫描数据写入该文件;否则新建一个用于保存扫描数据的文件然后向其中写入扫描数据;这样,处理扫描数据的装置30还可包括监测模块(图中未示出),用于监测处于打开状态的文件,在该文件处于打开状态达到预设时长的情况下将该文件关闭。 [0039] The file writing module 31 further configured to: check for open scan data stored in the current directory of the first file; if so, then the scan data is written to the file; otherwise for holding a new file data is then scanned into the scan data is written therein; Thus, means for processing scan data 30 may also include a monitoring module (not shown) for monitoring the file in the open state, to reach the pre-file is open in the case when the set length of the file is closed.

[0040] 根据本发明实施例的技术方案,手持扫描设备在扫描得到扫描数据之后,将其写到文件中,并将文件转到内存之后发送到缓存服务器,这种采用文件和内存队列的方式是一种轻量级的操作,即其消耗的处理器资源相当低,使得手持扫描设备能够较为高效地处理扫描数据。 [0040] According to the embodiment of the present invention, after the hand-held scanning device scans scanned data, writes it to a file, and then sent to the file server to the cache memory, and this memory queue files by way of is a lightweight operation, i.e., processor resources it consumes relatively low, so that the hand-held scanning device capable of processing scanned data more efficiently. 并且上述的处理方式是一种较为简单的方式,应用的是手持扫描设备中的各类操作系统的基本功能如文件处理、队列处理等,容易开发,避免使用操作系统的专用软件例如SQLCE等,有助于节省成本,而且便于在各个操作系统之间移植。 And the above-described treatment is a relatively simple manner, various types of applications is the basic operating system functions of the handheld scanning device such as a document processing queue processing, easy to develop, to avoid the use of dedicated software operating system like e.g. SQLCE, It contributes to cost savings and ease of migration between the respective operating systems. 此外在本发明实施例的技术方案中,在各种网络故障状态下,手持扫描设备都可以持续工作,将数据选择服务器上传或暂存到本地,不会导致分拣工作的中断,有助于提高分拣中心的工作效率。 Further, in the technical solution of the embodiments of the present invention, a variety of network fault condition, a handheld scanning device can work continuously, the temporarily stored data to select a server or upload locally serviced without disrupting the work of sorting helps improve the efficiency of sorting centers.

[0041] 以上结合具体实施例描述了本发明的基本原理,但是,需要指出的是,对本领域的普通技术人员而言,能够理解本发明的方法和设备的全部或者任何步骤或者部件,可以在任何计算装置(包括处理器、存储介质等)或者计算装置的网络中,以硬件、固件、软件或者它们的组合加以实现,这是本领域普通技术人员在阅读了本发明的说明的情况下运用他们的基本编程技能就能实现的。 [0041] with reference to specific embodiments describe the basic principles of the invention, however, to be noted that those of ordinary skill in the art can understand that all the methods and apparatus of the present invention or any steps or components, may be any computing device (including a processor, a storage medium etc.) or a network computing device, hardware, firmware, software, or a combination thereof be implemented, which those of ordinary skill in the art to use in reading the description of the present invention their basic programming skills will be able to achieve.

[0042] 因此,本发明的目的还可以通过在任何计算装置上运行一个程序或者一组程序来实现。 [0042] Accordingly, an object of the present invention may also be achieved by running a program on any computing device or a set of programs. 所述计算装置可以是公知的通用装置。 The device may be a general purpose computing device known. 因此,本发明的目的也可以仅仅通过提供包含实现所述方法或者装置的程序代码的程序产品来实现。 Accordingly, an object of the present invention may also be provided only by comprising program code means implementing the method or program products. 也就是说,这样的程序产品也构成本发明,并且存储有这样的程序产品的存储介质也构成本发明。 That is, such a program product also forms the present invention, and a storage medium storing such a program product also forms the present invention. 显然,所述存储介质可以是任何公知的存储介质或者将来开发出的任何存储介质。 Obviously, the storage medium may be any known storage medium, or any storage medium developed in the future.

[0043] 还需要指出的是,在本发明的装置和方法中,显然,各部件或各步骤是可以分解和/或重新组合的。 [0043] also to be noted that, in the apparatus and method of the present invention, obviously, the parts or steps may be decomposed and / or recombined. 这些分解和/或重新组合应视为本发明的等效方案。 These decomposition and / or recombination of the present invention should be considered equivalents. 并且,执行上述系列处理的步骤可以自然地按照说明的顺序按时间顺序执行,但是并不需要一定按照时间顺序执行。 Further, the above-described series of processing steps can naturally be performed chronologically in order of description but need not necessarily be performed chronologically. 某些步骤可以并行或彼此独立地执行。 Some steps may be performed in parallel or independently of one another. [0044] 上述具体实施方式,并不构成对本发明保护范围的限制。 [0044] The specific embodiments do not limit the scope of the present invention. 本领域技术人员应该明白的是,取决于设计要求和其他因素,可以发生各种各样的修改、组合、子组合和替代。 Those skilled in the art would understand that, depending on design requirements and other factors that can occur various modifications, combinations, sub-combinations and alternatives. 任何在本发明的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明保护范围之内。 Any modifications within the spirit and principle of the present invention, equivalent substitutions and improvements should be included within the scope of the present invention.

Claims (10)

  1. 1.一种处理扫描数据的方法,所述扫描数据是手持扫描设备对条形码进行扫描得到的数据,其特征在于,该方法包括: 在扫描得到扫描数据之后,将扫描数据写入文件中,然后将该文件保存到手持扫描设备内的存储系统的第一目录下; 将所述第一目录下的所述文件存入所述手持扫描设备的内存; 将所述内存中的文件上传到服务器。 1. A method for processing scan data, the scan data is a handheld scanning device for scanning the bar code data obtained, characterized in that, the method comprising: scanning the data obtained after the scan, the scan data is written to a file, and then save the file directory to the first storage system in the handheld scanning device; the first file in the directory stored in said hand-held scanning device memory; uploading the file to the server memory.
  2. 2.根据权利要求1所述的方法,其特征在于,所述将扫描数据写入文件中的步骤之前,还包括:对扫描数据进行验重处理。 2. The method according to claim 1, characterized in that, prior to the step of writing said scan data file, further comprising: a re-inspection scan data processing.
  3. 3.根据权利要求1或2所述的方法,其特征在于,所述将扫描数据写入文件中的步骤之前,还包括:将扫描数据交由指定的服务器,由该指定的服务器按预设的规则对所述扫描数据进行有效性校验。 3. The method of claim 1 or claim 2, characterized in that, prior to the step of writing said scan data file, further comprising: scanning the data handed over to the server specified by the server according to a preset specified It rules the scan data validity checking.
  4. 4.根据权利要求1所述的方法,其特征在于, 所述将扫描数据写入文件中的步骤包括:检查当前所述第一目录下是否有已打开的用于保存扫描数据的文件;若有,则将所述扫描数据写入该文件;否则新建一个用于保存扫描数据的文件然后向其中写入所述扫描数据; 并且该方法还包括:监测处于打开状态的所述文件,在该文件处于打开状态达到预设时长的情况下将该文件关闭。 4. The method according to claim 1, wherein said scan data file in the writing step comprises: checking whether there is already open for saving the current scan data file of the first directory; if there, the scanned data is then written to the file; otherwise, create a new file for storing the scan data and said scan data written thereto; and the method further comprises: monitoring a file is in the opened state, the file is in an open state longer reaches the preset case the file is closed.
  5. 5.根据权利要求4所述的方法,其特征在于,所述文件以时间戳命名。 The method according to claim 4, wherein said time stamp file name.
  6. 6.根据权利要求1所述的方法,其特征在于,将所述内存中的文件上传到服务器的步骤之后,还包括:将上传过的文件转移到所述手持扫描设备内的存储系统的第二目录下。 After 6. The method according to claim 1, wherein said memory upload files to a server step further comprises: the uploaded file is transferred to the first storage system within said hand-held scanning device the next two directories.
  7. 7.—种处理扫描数据的装置,所述扫描数据是手持扫描设备对条形码进行扫描得到的数据,其特征在于,该装置包括: 写文件模块,用于将手持扫描设备扫描得到的扫描数据写入文件中; 保存模块,用于将所述文件保存到所述手持扫描设备内的存储系统的第一目录下; 读文件模块,用于将所述第一目录下的所述文件存入所述手持扫描设备的内存; 上传模块,用于将所述内存中的文件上传到服务器。 7.- kinds of scan data processing means, said scan data is a handheld scanning device for scanning the bar code data obtained, wherein, the apparatus comprising: file writing means for handheld scanning device to scan data obtained by scanning the write the file; storing module, for saving the file to the directory at a first storage system held within a scanning device; read file module, for converting the files in the first directory into the said hand-held scanning device memory; upload module, the memory for uploading files to a server.
  8. 8.根据权利要求7所述的装置,其特征在于,还包括验重模块,用于在所述写文件模块对所述扫描数据进行写入操作之前,对所述扫描数据进行验重处理。 8. The apparatus according to claim 7, characterized by further comprising a re-inspection means for writing the file to the module prior to the write to the scan data, the scan data re-inspection process.
  9. 9.根据权利要求7或8所述的装置,其特征在于,还包括发送模块,用于在所述写文件模块对所述扫描数据进行写入操作之前,将所述扫描数据交由指定的服务器,由该指定的服务器按预设的规则对所述扫描数据进行有效性校验。 9. The apparatus of claim 7 or claim 8, wherein further comprising a transmitting means for writing the file to the module prior to the scan data write operation, the data referred to scan specified server, checking the validity of the scan data by the specified server according to a preset rule.
  10. 10.根据权利要求7所述的装置,其特征在于, 所述写文件模块还用于:检查当前所述第一目录下是否有已打开的用于保存扫描数据的文件;若有,则将所述扫描数据写入该文件;否则新建一个用于保存扫描数据的文件然后向其中写入所述扫描数据; 并且所述装置还包括监测模块,用于监测处于打开状态的所述文件,在该文件处于打开状态达到预设时长的情况下将该文件关闭。 10. The apparatus according to claim 7, wherein said write file module is further configured to: check for open scan data stored in the current directory of the first file; if so, then said scan data is written to the file; otherwise, create a new file for storing the scan data and said scan data written thereto; and said apparatus further comprises monitoring means for monitoring the file is open in the file is in an open state longer reaches the preset case the file is closed.
CN 201310164515 2013-05-07 2013-05-07 A method and apparatus for processing scan data CN103235837B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310164515 CN103235837B (en) 2013-05-07 2013-05-07 A method and apparatus for processing scan data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310164515 CN103235837B (en) 2013-05-07 2013-05-07 A method and apparatus for processing scan data

Publications (2)

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

Family

ID=48883878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310164515 CN103235837B (en) 2013-05-07 2013-05-07 A method and apparatus for processing scan data

Country Status (1)

Country Link
CN (1) CN103235837B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484782A (en) * 2014-11-25 2015-04-01 苏州迪云信息科技有限公司 Processing method and device for scanned data

Citations (5)

* 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
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

Patent Citations (5)

* 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
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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484782A (en) * 2014-11-25 2015-04-01 苏州迪云信息科技有限公司 Processing method and device for scanned data

Also Published As

Publication number Publication date Type
CN103235837B (en) 2016-03-09 grant

Similar Documents

Publication Publication Date Title
US8959067B1 (en) Data storage inventory indexing
US20040249854A1 (en) Common common object
US20130086001A1 (en) Automatic file version verification within electronic mail
US20080027920A1 (en) Data processing over very large databases
US20080177755A1 (en) Creation and persistence of action metadata
US20120158669A1 (en) Data retention component and framework
Ayers A second generation computer forensic analysis system
US20130036098A1 (en) Successive data fingerprinting for copy accuracy assurance
US20140372376A1 (en) Systems and methods for synchronization event building and/or collapsing by a synchronization component of a cloud-based platform
US20100153363A1 (en) Stream data processing method and system
US20090077261A1 (en) Method and system for file transfer over a messaging infrastructure
US20090159508A1 (en) Relational scheme assignment
US20060004838A1 (en) Sharing large objects in distributed systems
US8873829B1 (en) Method and system for capturing and utilizing item attributes
US20060265455A1 (en) Automatic recovery from failures of messages within a data interchange
US20120205432A1 (en) Safety net for bar-coded documents
US20100100870A1 (en) Configuration deployment management
US20130007847A1 (en) Communication Protocol for a Containment-Aware Discovery Service
US20140297604A1 (en) Techniques for reconciling metadata and data in a cloud storage system without service interruption
CN1670726A (en) A method for inspecting garbage files in cluster file system
US20100241651A1 (en) Processing of files for electronic content management
US20140123115A1 (en) Hybrid local/remote infrastructure for data processing with lightweight setup, powerful debuggability, controllability, integration, and productivity features
US20070124156A1 (en) Representing business transactions
CN103647803A (en) A method for a mobile terminal to subscribe content and an apparatus
US20080301284A1 (en) Systems and methods for capture of electronic evidence

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model