RFID data collection method and device
Through HTTP local connection protocol and SSE service, indirect control and data interaction between the service system and RFID device is realized, solving the problems of low security in RFID data acquisition and large amount of data in the prior art, improving the security of data transmission and storage, and reducing development costs.
Patent Information
- Application Number
- CN202510040497.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-10
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2045-01-10
AI Technical Summary
In the existing RFID data acquisition methods, directly connecting to the RFID reading device leads to a huge amount of data and low security, which brings challenges to the operation of the service system and data security.
Through the HTTP local connection protocol, indirect control and data interaction between the business system and the RFID device is realized, SSE service is used to push messages, filter and encapsulate data, and poll them through asynchronous push threads to select the method of push messages.
It effectively improves the security of data transmission and storage, reduces development costs, simplifies system integration processes, and improves production efficiency and customer satisfaction.
Smart Images

Figure CN119449887B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data collection, and in particular to an RFID data collection method and device. Background Art
[0002] With the rapid progress of chip design, antenna technology and wireless communication technology, the reading range of RFID tags has been significantly expanded, and the recognition accuracy has been greatly improved. At the same time, it has promoted the emergence of low-power, high-security RFID chips, providing solid support for diversified application scenarios. RFID technology, with its unique automatic identification and tracking capabilities, is accelerating the intelligent transformation and upgrading of industries such as manufacturing, retail, and logistics, showing broad development prospects.
[0003] The reader is one of the two important components of the RFID system (tag and reader). The reader and the RFID tag must use a spatial channel to send commands from the reader to the RFID tag, and the RFID tag responds to the command from the reader, thus achieving RFID.
[0004] Most business systems need to be directly connected to RFID reading devices to control the RFID reading devices to read RFID tag information. Direct connection results in a huge amount of raw RFID data reported from the hardware, but only a small part of it is meaningful and non-repetitive data for users, and such a large amount of data upload is relatively low in security, which not only brings a large load to the operation of the business system, but also brings challenges to the data security of the business system. In view of the widespread application of RFID technology in key business areas, security and privacy protection have become issues that cannot be ignored.
[0005] Therefore, it is necessary to provide a new RFID data collection method and device to overcome the above-mentioned defects. Summary of the invention
[0006] The purpose of the present invention is to provide a novel RFID data collection method and device, which can effectively improve the security of data transmission and storage, reduce development costs, and improve production efficiency.
[0007] In order to achieve the above object, the present invention provides an RFID data collection method, comprising:
[0008] The RFID reading client connects to the RFID device through the local HTTP service. The RFID reading client receives the RFID tag information sent back by the RFID device through the callback interface and caches the RFID tag information.
[0009] The business system uses the HTTP interface to obtain RFID tag information through the local access address and calls the SSE service. The HTTP interface is used to control the opening or closing of the SSE service message push. The SSE service filters and encapsulates the cached RFID tag information through the device code and polls the SSE service through the asynchronous push thread to select the push method for the message push.
[0010] The business system reads the RFID tag array of the RFID reader client and performs data checks and verifies the data according to different business requirements.
[0011] The present invention also provides an RFID data collection device, which comprises:
[0012] RFID reading client, deploy HTTP module and SSE server, used to read RFID tag information of RFID device through HTTP interface and connect and communicate with business system;
[0013] The business system deploys the SSE client and connects with the RFID reading client to retrieve the data of the RFID tag information read by the RFID reading client and perform data verification;
[0014] The RFID device is connected to the RFID reading client to read the RFID tag information.
[0015] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the RFID data collection method are implemented.
[0016] The present invention also provides a computer terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the RFID data collection method when executing the computer program.
[0017] Compared with the related technologies, the main difference of the present invention is that there is no need to directly operate the RFID device, but remote control and data exchange of the device can be achieved through the web page interface. This operation mode is a pure stand-alone operation, which effectively avoids the security risks in the device data transmission process; and adopts the widely used HTTP technology. In view of the fact that most of the current business systems are developed based on web pages, the present invention adopts the web page HTTP interface to greatly reduce the R&D cost of the business system docking with RFID devices, realizes efficient and secure system upgrades and integration, and improves the security of data transmission and storage. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. The drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work, among which:
[0019] Figure 1 It is a flow chart of the RFID data collection method of the present invention;
[0020] Figure 2 It is an interactive thread diagram of the RFID data collection method of the present invention. DETAILED DESCRIPTION
[0021] The technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0022] The present invention designs an RFID data collection method and device, which realizes indirect control and data interaction between the business system and offline RFID devices through the HTTP local connection protocol. This method does not require the business system to directly connect to the RFID hardware, effectively isolates technical differences and potential security risks, ensures the efficiency and security of data interaction, and provides a more stable technical support for the application of RFID technology in various industries.
[0023] See also Figure 1 and Figure 2 , Figure 1 is a flow chart of the method of the present invention, Figure 2 The specific thread diagram of the method of the present invention includes:
[0024] S1. The RFID reading client connects to the RFID device through the local HTTP service. The RFID reading client receives the RFID tag information returned by the RFID device through the callback interface and caches the RFID tag information.
[0025] The specific operations corresponding to the above steps are as follows:
[0026] Start the client:
[0027] The offline operator starts the RFID reading client;
[0028] After the RFID reader client is opened, a local HTTP service will be started and the RFID device will be connected through the serial port or network port using the SDK supported by the RFID device;
[0029] Open the web page of the ERP / WM / MES business system that requires RFID binding and warehousing and other business operations.
[0030] Get the device connection status:
[0031] The business system uses the HTTP interface to connect to the HTTP service provided by the RFID reading client through the Http: / / localhost local access address to obtain the connection status and reading status of the RFID device;
[0032] If the device is disconnected, it will automatically connect to the device. You can also manually connect / disconnect the device through the HTTP interface.
[0033] Returns the device connection and startup status, and the business system determines and controls business operations.
[0034] Enable device to read tags:
[0035] When the RFID reading client returns the normal device connection status through the interface, the HTTP interface is used to call the device opening interface of the RFID reading client to control the device to open / close the reading of RFID tags;
[0036] After the RFID device reads the tag, the RFID reading client receives the RFID information (device number, TID, EPC, power, antenna number) read by the RFID device through the callback interface, removes duplicates from the RFID tag information, and determines whether the current RFID already exists in the client cache. If it does, it is discarded. If not, the RFID is stored in the internal cache queue of the RFID reading client.
[0037] The cache queue data is processed again through asynchronous threads, the data is grouped and stored according to the device code, the redundant internal information is removed, and only the EPC / TID is stored in array form to reduce the storage volume and facilitate transmission. The business system can obtain tag information according to the specified device.
[0038] S2. The business system uses the HTTP interface to obtain RFID tag information through the local access address and calls the SSE service. The HTTP interface is used to control the opening or closing of the SSE service message push. The SSE service filters and encapsulates the cached RFID tag information through the device code, and polls the SSE service through the asynchronous push thread to select the push method for the message push.
[0039] The specific operations corresponding to the above steps are as follows:
[0040] Establishing SSE connection:
[0041] The business system actively uses the SSE client to connect to the SSE server provided by the RFID reader client through the local address on the business processing page. The SSE client can pass the device code to specify the read and write data;
[0042] The business system controls the RFID reading client to turn on / off message push through the HTTP interface. If message push is turned on, the SSE client will continuously receive the RFID information pushed by the SSE server. If it is turned off, the push is canceled and the RFID reading record of the current device is cleared.
[0043] Filter the data according to the device code of the SSE client, obtain the tag array cached by the RFID reading client, encapsulate the data according to the string, and separate each tag with a comma to minimize the transmission volume and improve the transmission and parsing efficiency;
[0044] The asynchronous push thread polls the RFID reading client that is currently connected to the SSE server at the configured time. If the push is enabled, messages are pushed to online clients. If not, the next poll is entered to determine whether the client has a device code. If so, the cached data is obtained according to the device code and pushed to the current client.
[0045] S3. The business system reads the RFID tag array of the RFID reader client and performs data inspection and data verification according to different business requirements.
[0046] The specific operations corresponding to the above steps are as follows:
[0047] Receive tag data:
[0048] If the RFID device reads the tag and establishes an SSE connection, the SSE client will continuously receive the RFID tag data pushed by the SSE server;
[0049] The business system separates the data from the SSE client by commas to obtain an array of all tags read by the current RFID device;
[0050] The business system performs data check on the read tag array.
[0051] Data checks include:
[0052] Tag content length check;
[0053] Check the number of tags (binding operations can only be performed on a single tag);
[0054] The manufacturer of the tag (TID distinguishes the manufacturer);
[0055] Tag type (encrypted / non-encrypted) (TID distinguishes tag types);
[0056] Tag (EPC) data length (EPC lengths vary for different tag models);
[0057] Label encoding rules (EPC confirmation label rules);
[0058] After the inspection is completed, the data will be displayed according to different business needs and handed over to the on-site operators to check the data with the actual items:
[0059] Single operation: For example, for item operations such as binding / rebinding / issuing / destruction, the SSE client will only obtain one tag. If the number of tags exceeds the limit, it is determined that cross-reading or misreading has occurred and needs to be read again.
[0060] Batch operations: For example, operations such as warehousing / warehouse delivery / inventory counting require you to determine whether the read tags belong to the RFID tags purchased by this business system and whether they comply with the current item tag coding rules. Due to the widespread application of RFID, many products have begun to use RFID for management, and it is necessary to filter out tags that do not belong to this business.
[0061] Stop reading:
[0062] Clear the RFID reading client tag cache data;
[0063] Stop the RFID device from reading the tag and proceed to the next business process.
[0064] Compared with the related art, the present invention can bring the following beneficial effects: the present invention utilizes the HTTP local connection protocol to realize indirect control and data interaction between the business system and the RFID reader / writer, simplifies the system integration process, and reduces the technical threshold and cost.
[0065] In response to the security and privacy protection issues that may be encountered during the application of RFID technology, solutions such as the HTTP local connection protocol are designed to effectively isolate the direct interaction between the business system and the RFID device, reduce the risk of data leakage and illegal access, and ensure the security of data transmission and storage.
[0066] Most business systems (WMS, ERP, MES) now use web technology. This method can be used to connect to RFID devices without the need for the system to access the SDK and API of the RFID device. The reader can be directly controlled using HTTP web technology, greatly reducing development costs.
[0067] The RFID data acquisition system of the present invention includes: an RFID reading client, which deploys an HTTP module and an SSE server, and is used to read the RFID tag information of the RFID device through an HTTP interface and connect and communicate with the business system;
[0068] The business system deploys the SSE client and connects with the RFID reading client to retrieve the data of the RFID tag information read by the RFID reading client and perform data verification;
[0069] The RFID device is connected to the RFID reading client to read the RFID tag information.
[0070] Compared with related technologies, the convenient integration method of the present invention allows enterprises to quickly complete RFID device docking, complete data collection and system interaction, and promote enterprises to use RFID technology to upgrade and optimize existing systems, achieve refined management, optimize operational processes, and improve production efficiency and customer satisfaction.
[0071] Another aspect of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned RFID data collection method are implemented.
[0072] As an extension of another aspect of the present invention, a computer terminal is also provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above RFID data collection method when executing the computer program.
[0073] When the processor executes the computer program, the functions of each module / unit in the above-mentioned device embodiments are realized. Exemplarily, the computer program can be divided into one or more modules / units, and the one or more modules / units are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units can be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device.
[0074] The computer terminal may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. It may include, but is not limited to, a processor and a memory. It may include more or fewer components, or a combination of certain components, or different components, for example, it may also include input and output devices, network access devices, buses, etc.
[0075] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0076] The memory may be an internal storage unit, such as a hard disk or a memory. The memory may also be an external storage device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. Further, the memory may include both an internal storage unit and an external storage device. The memory is used to store the computer program and other programs and data. The memory may also be used to temporarily store data that has been output or is to be output.
[0077] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0078] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0079] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0080] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0081] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0082] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0083] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.
[0084] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A RFID data collection method, characterized in that: include: The RFID reading client connects to the RFID device through the local HTTP service. The RFID reading client receives the RFID tag information sent back by the RFID device through the callback interface and caches the RFID tag information. The business system uses the HTTP interface to obtain RFID tag information through the local access address and calls the SSE service. The HTTP interface is used to control the opening or closing of the SSE service message push. The SSE service filters and encapsulates the cached RFID tag information through the device code and polls the SSE service through the asynchronous push thread to select the push method for the message push. The business system reads the RFID tag array of the RFID reader client and performs data checks and verification according to different business requirements.
2. The RFID data collection method according to claim 1, characterized in that: The RFID reading client connects to the RFID device via the local HTTP service including: The offline operator starts the RFID reading client, which starts a local HTTP service and connects to the RFID device through the serial port or network port using the SDK supported by the RFID device; at the same time, the business system that needs to be bound to RFID is opened.
3. The RFID data collection method according to claim 2, characterized in that: The RFID reading client receives the RFID tag information returned by the RFID device through the callback interface, and caches the RFID tag information, including: The RFID reading client controls the RFID device to turn on or off reading RFID tags through HTTP interface calls; After the RFID device reads the RFID tag, the RFID reading client receives the RFID information read by the RFID device through the callback interface, then deduplicates the RFID tag information and determines whether the current RFID already exists in the client cache. If so, it is discarded. If not, the RFID tag information is stored in the cache queue of the RFID reading client. The cache queue data is processed again through an asynchronous thread, the data is grouped and stored according to the RFID device code, redundant information is removed, and EPC and TID are retained and stored in array form.
4. The RFID data collection method according to claim 3, characterized in that: The business system uses the HTTP interface to obtain RFID tag information through the local access address and calls the SSE service. The message push of the SSE service is controlled to be turned on or off through the HTTP interface, including: The SSE client deployed by the business system connects to the SSE server deployed by the RFID reader client through the local address. The SSE client specifies the read and write data by passing the device code. The business system controls the RFID reading client to turn on or off message push through the HTTP interface. If message push is turned on, the SSE client will continuously receive the RFID information pushed by the SSE server. If it is turned off, the push is canceled and the RFID information read by the current device is cleared. The SSE client filters the data according to the device code, obtains the tag array cached by the client, encapsulates the data according to the string, and the asynchronous push thread polls the clients that are currently connected to the SSE server at the configured time. If the push is enabled, the message is pushed to the online client. If not enabled, the next polling is entered to determine whether the client has the device code. If so, the cached data is obtained according to the device code and pushed to the current client.
5. The RFID data collection method according to claim 4, characterized in that: The business system reads the RFID tag array of the client and performs data checking. Data verification according to different business requirements includes: The RFID device reads the RFID tag information and establishes an SSE connection. The SSE client will continuously receive the RFID tag data pushed by the SSE server. The business system separates the received data from the SSE client by commas to obtain an array of all RFID tags read by the current RFID device; The business system performs a data check on the read RFID tag array, displays the data according to different business needs, and the data is verified by on-site operators.
6. A device using the RFID data collection method according to any one of claims 1 to 5, characterized in that: include: RFID reading client, deploy HTTP module and SSE server, used to read RFID tag information of RFID device through HTTP interface and connect and communicate with business system; The business system deploys the SSE client and connects with the RFID reading client to retrieve the data of the RFID tag information read by the RFID reading client and perform data verification; The RFID device is connected to the RFID reading client to read the RFID tag information.
7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the RFID data collection method according to any one of claims 1 to 5 are implemented.
8. A computer terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the RFID data collection method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
A remote office procedure of wireless radio frequency identification reader
CN101217441A
Multi-functional middleware recognizing system based on Web technology
CN103095810A