Equipment, system and method for collecting and processing information by monitoring POS machine printing pool

文档序号:1420004 发布日期:2020-03-13 浏览:13次 中文

阅读说明:本技术 一种以监听pos机打印池进行采集和处理信息的设备、系统和方法 (Equipment, system and method for collecting and processing information by monitoring POS machine printing pool ) 是由 高鹏 张丹 郭立勋 张博文 于 2019-10-31 设计创作,主要内容包括:本发明涉及通信技术领域、商业数据应用领域,尤其涉及一种零售业销售信息的收集、处理和应用的设备、系统及方法。根据本发明实施例提供的方案,可以通过采集程序采集销售点专用设备打印池内的数据信息,根据采集到的信息确定打印数据,并可以将打印数据切分为每个打印任务对应的打印数据通过信息处理装置上传给所述服务器,供服务器解码为统一格式的数据文件后,提取指定的销售信息。进一步的,采集程序还可以利用销售点专用设备的中央处理器解码简单的打印指令,判断是否跟打,并请求跟打数据完成跟打。通过上述方案,无需修改销售点专用设备系统,无需接触打印线缆,销售信息即可以实现自动采集,且比原有方案成本更低,准确性和完整性高,“即插即用”和“即拔即停”使数据风险的防范得到有效保障。(The invention relates to the technical field of communication and the field of business data application, in particular to equipment, a system and a method for collecting, processing and applying sales information of retail industry. According to the scheme provided by the embodiment of the invention, the data information in the printing pool of the special equipment for the point of sale can be acquired through the acquisition program, the printing data can be determined according to the acquired information, the printing data can be segmented into the printing data corresponding to each printing task, the printing data is uploaded to the server through the information processing device, and the server decodes the printing data into the data file with the uniform format and extracts the specified sales information. Furthermore, the acquisition program can also utilize a central processing unit of the special point-of-sale equipment to decode a simple printing instruction, judge whether to follow the printing, and request the data of following the printing to finish the following printing. Through the scheme, a special point-of-sale equipment system does not need to be modified, a printing cable does not need to be contacted, automatic acquisition of the sales information can be realized, the cost is lower than that of the original scheme, the accuracy and the integrity are high, and the prevention of data risks is effectively guaranteed through 'plug and play' and 'plug and stop' operation.)

1. The invention provides an information processing system, which is characterized by comprising an acquisition program (exe executable program), a special information processing device and a server, wherein the acquisition program is used for acquiring the information;

the collection program is an exe executable program, can be installed and operated in the information processing device or the special equipment for the point of sale, monitors a printing pool of the special equipment for the point of sale and executes a special information collection task.

The information processing device is used for collecting information of print tasks to be generated in a print pool of the special point-of-sale equipment, dividing the information into data corresponding to each print task sent to the printer by the special point-of-sale equipment, and uploading the data to the server; (D can judge whether the knocking-down, the pulling-up and the stopping are needed, and the communication is needed)

And the server is used for decoding the data uploaded by the information processing device into a data file with a uniform format and extracting specified sales information from the data file with the uniform format.

2. The system of claim 1, wherein the server is a cloud server.

3. The acquisition program is characterized by being installed in the information processing device and can be operated by directly inserting the information processing device into the special point-of-sale equipment without configuration or debugging in the special point-of-sale equipment, so that the information processing device can be used in a plug-and-play mode.

In addition, the acquisition program is used for monitoring a printing pool of the special equipment for the point of sale to acquire printing information and uploading the monitored information to the server through the information processing device; meanwhile, a central processing unit of the special point-of-sale device is used for decoding a simple printing instruction, and after a paper cutting instruction is detected, whether the follow-up printing is carried out or not is confirmed by a program, and the follow-up printing data is requested to finish the follow-up printing.

The acquisition program comprises a plurality of detection items, the normal execution of the program is ensured, and the detection items are as follows in sequence: MSID, SN, type, name, uploading state, collecting state, heartbeat state, MQTT state, collecting number, uploading number, water single format, i.e. stop-and-pull, Dongle state. The meaning of each term is as follows:

the MSID: a unique identification code is identified that is monitored for acquisition.

The SN is as follows: at present, the MSID is formed by adding 0 in front of the MSID for compatibility.

The types are as follows: it indicates whether the acquisition (chasing) item is monitored by a network port, a serial port or a printing driver.

The name is as follows: and the name of the acquired network port and serial port or the name of the printing driver is represented.

The uploading state is as follows: indicating that there is a certificate that needs to be used for upload has not been detected.

The collection state is as follows: indicating whether or not acquisition is occurring.

The heartbeat state is as follows: indicating a heartbeat with or without maintaining a connection with the server.

The MQTT state is as follows: the state of the MQTT thread for receiving server messages is illustrated.

The collection number is as follows: indicating how many water sheets were collected.

The uploading number is as follows: the number of water orders uploaded to the server is described.

The water single format is as follows: the format of the sheet is shown as EMF format or ESC format.

The Dongle state: indicating the presence or absence of a Dongle plugged into the point-of-sale device.

4. An information processing apparatus, characterized in that the apparatus comprises an encryption module, a communication module, and a storage module, wherein:

the encryption module is used for connecting the information processing device with the appointed special point-of-sale equipment, the information processing device is required to confirm to the server when the information processing device is connected, whether the special point-of-sale equipment exists in the service list or not is judged, and the acquisition program can normally run after the matching is successful;

the communication module is used for connecting the special point-of-sale equipment with the server, the content of the printed information needs to be transmitted to the server after the printed information is collected by the collection program, and the server further performs information processing and data analysis. The information processing device can be selected for communication, and the built-in communication function of the special equipment for the point of sale can also be selected for communication, but in the actual situation, most servers used in the retail industry are private servers, and as other key information except sales data is stored in the servers, all parties and users of the servers strictly refuse the special equipment for the point of sale of merchants to be directly connected with the servers, so that the potential safety hazard of data is caused, and specified equipment is required to communicate, such as the information processing device.

And the storage module is used for installing and storing the acquisition program and caching and storing the acquired data under the condition that the acquisition program is installed on the information processing device.

5. The apparatus of claim 4, comprising a configurable encryption module, wherein:

when the acquisition program is installed in the information processing device, if the information processing device is disconnected with the special point-of-sale equipment, the program stops running and data acquisition, uploading and follow-up printing are not performed any more;

when the acquisition program is installed in the special point-of-sale equipment, if the information processing device is disconnected with the special point-of-sale equipment or the abnormality of the information processing device is detected, the program does not stop running completely, data acquisition and follow-up printing are normally carried out, uploading to a server is stopped, the acquired content is cached to the local part of the special point-of-sale equipment, and after the information processing device is normally connected with the special point-of-sale equipment, the cached data are sequentially uploaded to the server; or, when the collection program is installed for the first time, it may be set that "when the information processing apparatus is disconnected from the point-of-sale dedicated device", the program is completely stopped, and "stop-and-go" is made.

6. The apparatus of claim 4, comprising a cache storage module, wherein

The cache storage of the collected data only can be realized when the information processing device is used for communication, the information processing device is normally connected with the special equipment of the point of sale, but the printing data which can be successfully uploaded is temporarily stored in the FIFO memory under the condition that the temporary connection between the information processing device and the server network is not smooth, the data can not be lost, and the uploading is carried out after the network access is recovered.

7. The system of claim 1, comprising a processor and a heeling function, wherein:

in a possible implementation, the processor is utilized, may be run by the central processor of the point-of-sale dedicated device, or may alternatively employ the IDF SDK as the processor of the operating system.

The processor can name each segment of data obtained by segmentation according to a set naming rule, store the data in a file form, and upload the data to the server through an information processing device or a point-of-sale special equipment network according to configuration. The server can decode the data file corresponding to each print task to obtain the data file with the uniform format.

The processor may implement data slicing by, but is not limited to, any of the following ways: cutting according to an explicit paper cutting instruction; segmenting according to the idle time length without data transmission; and carrying out segmentation according to the specified data content.

The following printing function is characterized in that the original printing content can be added with the printing content.

The sales data collected from the print pool of the special equipment at the point of sale is uploaded to the server, meanwhile, the paper cutting instruction in the printing signal is detected, whether the system really performs the additional printing or not is determined, and the data of the additional printing content issued in advance is sent to the receipt printer to finish the additional printing.

8. The invention also provides an information processing method, which comprises the following steps:

collecting printing information in a printing pool of the special equipment for the sale point;

determining data sent by the point-of-sale dedicated device to the printer according to the information;

and sending the data to the printer for printing, and after the data is divided into data corresponding to each printing task sent to the printer by the special point-of-sale equipment, uploading the data to a specified server through the information processing device, so that the server can decode the data uploaded by the information processing device into a data file with a uniform format, and extract specified sales information from the data file with the uniform format.

9. A non-transitory computer storage medium storing an executable program for execution by a processor to perform the steps of the method of claim 8.

10. An information processing apparatus comprising a memory, a processor and a computer program stored on the memory, the processor implementing the steps of the method of claim 8 when executing the program.

Technical Field

The invention relates to the technical field of communication and the field of business data application, in particular to equipment, a system and a method for collecting, processing and applying sales information of retail industry.

Background

In the retail consumption scenario, the customer completes the entire transaction closed loop by printing a receipt (commonly known as a "receipt") as a proof of the consumption, which is also an important legal basis for the customer's subsequent interest guarantee, which is confirmed by the merchant through his POS machine (point-of-sale device). At the same time, the receipt contains key elements of the sales information, such as: merchant information, transaction time, receipt number, tax number, equipment number, operator, membership information, name, quantity, unit price, total, applicable tax and tax rate, total, payment method, discount, credit, amount due, actual amount due, rounding adjustment, change, and the like. Such information is not only used by customers and merchants, but also desired to be acquired in a timely and accurate manner by other third parties, such as managers and tax authorities of businesses.

At present, the third party mainly obtains the sales information of the merchant in three forms, including autonomous reporting by the merchant, modification of the special equipment for the point of sale and hardware monitoring and printing circuit.

In the autonomous reporting mode of the merchant, due to manual errors and artificial false reporting, the integrity and accuracy of the sales information cannot be guaranteed; the mode of achieving the acquisition purpose by modifying the special point-of-sale equipment has the disadvantages of large quantity of system suppliers of the special point-of-sale equipment and uneven system complexity, so that the labor cost and the time cost are high when the system is modified, and the right and responsibility conflict is easy to occur when the system is modified.

The invention also uses hardware equipment to monitor the printing circuit to collect information, which is widely adopted in the industry. Briefly, the method of connecting a print cable to a dedicated device in series is to monitor and collect an electrical signal in the print cable continuously in real time, convert the electrical signal into digital information, and upload the digital information to a dedicated server through a wired or wireless network (Wi-Fi or telecom operator data network). But also does not completely solve the market demand, because of the subtle problems exposed by the natural properties of hardware, such as the inability to achieve 100% acquisition accuracy, cost not controlled to the extent that all markets can accept, and certain equipment maintenance difficulty.

Disclosure of Invention

The invention creates a brand-new retail sales data acquisition mode, only connects a special information processing system with a special sales point device under the conditions of not contacting a printing circuit between a special sales point device (POS machine) and a receipt printer and not modifying a special sales point system or a port, acquires sales information by monitoring a printing pool of the POS machine, and prints specific information after the original printing content.

The invention provides an information processing system, which comprises an acquisition program (exe executable program), a special information processing device and a server, wherein:

the collection program is an exe executable program, can be installed and operated in the information processing device or the special equipment for the point of sale, monitors a printing pool of the special equipment for the point of sale and executes a special information collection task.

The information processing device is used for collecting information of print tasks to be generated in a print pool of the special point-of-sale equipment, dividing the information into data corresponding to each print task sent to the printer by the special point-of-sale equipment, and uploading the data to the server; (D can judge whether the knocking-down, the pulling-up and the stopping are needed, and the communication is needed)

And the server is used for decoding the data uploaded by the information processing device into a data file with a uniform format and extracting specified sales information from the data file with the uniform format.

In general, the server is a cloud server.

The invention provides an acquisition program, which monitors a printing pool of special equipment at a point of sale to obtain printing information and uploads the monitored information to a server through an information processing device; meanwhile, a central processing unit of the special point-of-sale device is used for decoding a simple printing instruction, and after a paper cutting instruction is detected, whether the follow-up printing is carried out or not is confirmed by a program, and the follow-up printing data is requested to finish the follow-up printing.

The acquisition program has the advantages that the acquisition program can be installed in the information processing device and can be operated by directly inserting the special equipment for the point of sale, configuration or debugging in the special equipment for the point of sale is not needed, and plug and play of the information processing device is realized.

The acquisition program comprises a plurality of detection items, the normal execution of the program is ensured, and the detection items are as follows in sequence: MSID, SN, type, name, uploading state, collecting state, heartbeat state, MQTT state, collecting number, uploading number, water single format, i.e. stop-and-pull, Dongle state. The meaning of each term is as follows:

the MSID: a unique identification code is identified that is monitored for acquisition.

The SN is as follows: at present, the MSID is formed by adding 0 in front of the MSID for compatibility.

The types are as follows: it indicates whether the acquisition (chasing) item is monitored by a network port, a serial port or a printing driver.

The name is as follows: and the name of the acquired network port and serial port or the name of the printing driver is represented.

The uploading state is as follows: indicating that there is a certificate that needs to be used for upload has not been detected.

The collection state is as follows: indicating whether or not acquisition is occurring.

The heartbeat state is as follows: indicating a heartbeat with or without maintaining a connection with the server.

The MQTT state is as follows: the state of the MQTT thread for receiving server messages is illustrated.

The collection number is as follows: indicating how many water sheets were collected.

The uploading number is as follows: the number of water orders uploaded to the server is described.

The water single format is as follows: the format of the sheet is shown as EMF format or ESC format.

The Dongle state: indicating the presence or absence of a Dongle plugged into the point-of-sale device.

The invention provides an information processing device, which comprises an encryption module, a communication module and a storage module, wherein:

the encryption module is used for connecting the information processing device with the appointed special point-of-sale equipment, the information processing device is required to confirm to the server when the information processing device is connected, whether the special point-of-sale equipment exists in the service list or not is judged, and the acquisition program can normally run after the matching is successful;

when the acquisition program is installed in the information processing device, if the information processing device is disconnected with the special point-of-sale equipment, the program stops running and data acquisition, uploading and follow-up printing are not performed any more;

when the acquisition program is installed in the special point-of-sale equipment, if the information processing device is disconnected with the special point-of-sale equipment or the abnormality of the information processing device is detected, the program does not stop running completely, data acquisition and follow-up printing are normally carried out, uploading to a server is stopped, the acquired content is cached to the local part of the special point-of-sale equipment, and after the information processing device is normally connected with the special point-of-sale equipment, the cached data are sequentially uploaded to the server; or, when the collection program is installed for the first time, it may be set that "when the information processing apparatus is disconnected from the point-of-sale dedicated device", the program is completely stopped, and "stop-and-go" is made.

The communication module is used for connecting the special point-of-sale equipment with the server, the content of the printed information needs to be transmitted to the server after the printed information is collected by the collection program, and the server further performs information processing and data analysis. The information processing device can be selected for communication, and the built-in communication function of the special equipment for the point of sale can also be selected for communication, but in the actual situation, most servers used in the retail industry are private servers, and as other key information except sales data is stored in the servers, all parties and users of the servers strictly refuse the special equipment for the point of sale of merchants to be directly connected with the servers, so that the potential safety hazard of data is caused, and specified equipment is required to communicate, such as the information processing device.

And the storage module is used for installing and storing the acquisition program and caching and storing the acquired data under the condition that the acquisition program is installed on the information processing device. The cache storage of the collected data only can be realized when the information processing device is used for communication, the information processing device is normally connected with the special equipment for the sale point, and the printing data which can be successfully uploaded is temporarily stored in the FIFO memory under the condition that the temporary connection between the information processing device and the server network is not smooth, so that the data can not be lost, and the printing data is uploaded after the network access is recovered.

The invention also provides an information processing method, which comprises the following steps:

collecting printing information in a printing pool of the special equipment for the sale point;

determining data sent by the point-of-sale dedicated device to the printer according to the information;

and sending the data to the printer for printing, and after the data is divided into data corresponding to each printing task sent to the printer by the special point-of-sale equipment, uploading the data to a specified server through the information processing device, so that the server can decode the data uploaded by the information processing device into a data file with a uniform format, and extract specified sales information from the data file with the uniform format.

The present invention also provides a non-volatile computer storage medium having stored thereon an executable program for execution by a processor to perform the steps of implementing the method as described above.

According to the scheme provided by the embodiment of the invention, the data information in the printing pool of the special point-of-sale equipment can be acquired through the acquisition program, the printing data can be determined according to the acquired information, the printing data can be segmented into the printing data corresponding to each printing task, the printing data is uploaded to the server through the information processing device, and the server can extract the specified sales information after decoding the printing data into the data file with the uniform format. Furthermore, the acquisition program can also utilize a central processing unit of the special point-of-sale equipment to decode a simple printing instruction, judge whether to follow printing and request to follow printing data to finish the following printing. Through the scheme, the sales information can be automatically acquired without modifying a special sales point equipment system and contacting a printed cable, and the method has the advantages of lower cost, high accuracy and integrity compared with the original scheme, and effectively ensures the prevention of data risks by 'plug and play' and 'plug and stop'.

Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

Fig. 1 is a schematic structural diagram of an information processing system according to an embodiment of the present invention and a basic structure of an existing point of sale;

fig. 2 is a schematic structural diagram of an information processing apparatus according to a second embodiment of the present invention;

FIG. 3 is a flowchart illustrating steps of an information processing method according to a third embodiment of the present invention;

fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present invention;

FIG. 5 is a flowchart illustrating steps of an information processing method according to a fifth embodiment of the present invention;

fig. 6 is a schematic structural diagram of an information processing apparatus according to a sixth embodiment of the present invention;

FIG. 7 is a schematic diagram of the connection of the present invention.

Detailed Description

In the scheme provided by the embodiment of the invention, the acquisition of the sales information can be realized based on monitoring the printing pool of the special equipment for the point of sale. The method comprises the steps of monitoring information in a printing pool of the special equipment for the point of sale through a specific executable acquisition program, segmenting digital information obtained through conversion into data corresponding to each printing task, uploading the data to a specified server through an information processing device, and uploading the data to the server in a wired mode or a wireless fidelity (Wi-Fi) mode.

In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

It should be noted that, the "plurality" or "a plurality" mentioned herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., A and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种剩余电流式电气火灾智能监测的分析方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!