CN114125042A - Method for reporting digital orders by multi-equipment weighing machine in offline manner - Google Patents
Method for reporting digital orders by multi-equipment weighing machine in offline manner Download PDFInfo
- Publication number
- CN114125042A CN114125042A CN202111385332.2A CN202111385332A CN114125042A CN 114125042 A CN114125042 A CN 114125042A CN 202111385332 A CN202111385332 A CN 202111385332A CN 114125042 A CN114125042 A CN 114125042A
- Authority
- CN
- China
- Prior art keywords
- registration center
- data
- weighing machine
- heartbeat
- offline
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000005303 weighing Methods 0.000 title claims abstract description 22
- 238000012795 verification Methods 0.000 claims description 16
- 238000012545 processing Methods 0.000 claims description 9
- 230000003993 interaction Effects 0.000 claims description 7
- 238000009877 rendering Methods 0.000 claims description 4
- 230000005856 abnormality Effects 0.000 claims description 3
- 238000004891 communication Methods 0.000 claims description 3
- 238000009938 salting Methods 0.000 claims description 3
- 238000012544 monitoring process Methods 0.000 claims description 2
- 230000010355 oscillation Effects 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 235000003166 Opuntia robusta Nutrition 0.000 description 1
- 244000218514 Opuntia robusta Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Medical Treatment And Welfare Office Work (AREA)
Abstract
The invention discloses a method for reporting a digital order by a multi-equipment weighing machine in an off-line manner, wherein the equipment end transmits elements such as deviceCode, trayCode, weight, foodld and the like to a registration center, and the registration center needs to process and store data uniformly so as to ensure that operators can read the data smoothly; the data of the weighing machine can be transmitted to the background under the condition of sudden network disconnection, so that the influence on a user and a restaurant is reduced, and the follow-up flow of the restaurant can be ensured to continue normally.
Description
Technical Field
The invention relates to the technical field of electronic scales, in particular to a method for reporting a digital order by a multi-equipment weighing machine in an off-line manner.
Background
With the progress and development of science and technology, more and more intelligent devices appear on the market. The weighing equipment is used in the current unmanned dining room. Firstly, a user enters a store, can register to complete identity authentication, then takes a dinner plate and selects favorite dishes. The dish is placed on a weighing machine for weighing, the equipment sends related information to the server, and the consumption amount of the dish is calculated. In the whole process, the weighing machine needs to be networked in real time, and the related information of the dishes can be transmitted to the server. Once the conditions such as network breaking and the like occur, the weighing machine cannot complete the task of data transmission only by waiting for manual work to check the network reasons, and then the dining of the user is influenced. When the network is restored, manual intervention is needed. Aiming at the special condition, temporary data needs to be generated, and service personnel in a dining room upload the data to a server in time, so that the influence on the operation of users and restaurants is reduced.
Disclosure of Invention
The invention aims to provide a method for reporting a digital order by a multi-equipment weighing machine in an off-line manner, which generates self-defined ListData according to order elements, solves the problem of smooth switching of data reported by the weighing machine under the condition of network oscillation and achieves the imperceptibility of a user. The invention adds the registration center, the registration center is responsible for detecting the network condition in real time through heartbeat, various off-line data from the equipment end is gathered when the network is abnormal, and the equipment end is informed to report the order information independently when the network is normal. Therefore, the user can not sense the network oscillation. Specifically, the device side transmits the deviceCode, trayCode, weight, foodld and other elements to the registration center, and the registration center needs to process and store data uniformly to ensure that operators can read the data smoothly.
The invention realizes the purpose through the following technical scheme:
a method for reporting a digital order by a multi-equipment weighing machine in an off-line manner comprises the following steps:
step 1, initializing a registration center; synchronizing the time of the equipment and the server side and emptying the content of the offline information digital order table;
step 2, the registration center and the server establish heartbeat;
step 3, the registration center repeats heartbeat circularly; recording the network state of the last 1-5 minutes;
step 4, the equipment end is connected with a registration center to call the network state;
step 5, the equipment side transmits the data to a registration center;
step 6, when the data in the offline information digital order form table exceeds 100, or the heartbeat information still does not respond after exceeding 1-5 minutes, an alarm is sent out, and the offline information digital order form table is manually transmitted to a server through 4G or other networks;
and 7, repeating the process until the device recovers the network communication.
The further scheme is that the registry is responsible for processing and storing offline data of the device side, and the offline data includes deviceCode, trayCode, weight and foodld.
In the step 2, the registration center creates a local heartbeat table, sends heartbeat data once per second, and keeps real-time interaction with the server; after receiving the heartbeat packet, the server analyzes the data and transmits the data back to a registration center SUCCESS, and the registration center updates a local heartbeat table; and when the network abnormality exists, directly returning to the registration center, and storing the FAIL by the registration center.
In the step 3, after receiving the returned verification code, the customer service end generates a verification code layer by using a JavaScript technology, wherein the verification code layer includes reading of the verification code data, rendering of the verification code display and rendering of a verification code input box, the rendered style still uses JavaScript to compile style sheet content, an input event monitoring function is added to the generated verification code element, and the length value of the verification code character string returned in the step 2 is obtained;
in the step 4, the device side firstly acquires the heartbeat packet state, and if the device is in the online state, the device side directly sends the data to the server side; if the equipment is in an off-line state, the data is handed to the registration center for unified processing.
Further, in the step 5, the registry packages code, version, and requestTime into head, and packages deviceCode, trayCode, weight, and foodld into body; then the base64 operation is carried out on the two codes simultaneously to generate head cipher text and body cipher text respectively; and then carrying out salting processing on the KEY agreed in advance and the ciphertext, and finally storing the generated offline information into an offline information digital order table.
The invention has the beneficial effects that:
the invention discloses a method for reporting a digital order by a multi-equipment weighing machine in an off-line manner, which is characterized in that a registration center is added, the registration center is responsible for detecting the network condition in real time through heartbeat, various off-line data from an equipment end is gathered when the network is abnormal, and the equipment end is informed to report order information independently when the network is normal; therefore, the user can not sense the network oscillation. Specifically, the device side transmits the deviceCode, trayCode, weight, foodld and other elements to the registration center, and the registration center needs to process and store data uniformly to ensure that operators can read the data smoothly; the data of the weighing machine can be transmitted to the background under the condition of sudden network disconnection, so that the influence on a user and a restaurant is reduced, and the follow-up flow of the restaurant can be ensured to continue normally.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the embodiments or the drawings needed to be practical in the prior art description, and obviously, the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow chart of the present invention.
Fig. 2 is a flow chart of real-time interaction between the local heartbeat table and the server according to the present invention.
Fig. 3 is a flow chart of the device-side operation interaction of the present invention.
Fig. 4 is a flowchart illustrating the interaction between the device side and the registry according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the examples given herein without any inventive step, are within the scope of the present invention.
In any embodiment, as shown in fig. 1 to 4, a method for reporting a digital order offline by a multi-device weighing machine of the present invention includes:
as shown in fig. 1, the method mainly includes an interaction process between the device side, the registration center, and the offline information digital order form, and the specific method is as follows:
initializing a registration center;
synchronizing the time of the equipment and the server;
emptying the content of the offline information digital order form;
the registry is mainly responsible for processing and storing the offline data of the device side, and the offline data mainly comprises elements such as deviceCode, trayCode, weight, foodld and the like.
The registration center and the server establish heartbeat;
as shown in fig. 2, the registry creates a local heartbeat table, and sends heartbeat data once per second to maintain real-time interaction with the server; after receiving the heartbeat packet, the server analyzes the data and transmits the data back to a registration center SUCCESS, and the registration center updates a local heartbeat table; and when the network abnormality exists, directly returning to the registration center, and storing the FAIL by the registration center.
The registration center repeats heartbeat circularly;
recording the network state of the last 1-5 minutes;
the equipment end is connected with a registration center and calls a network state;
as shown in fig. 3, the device first needs to acquire the status of the heartbeat packet; if the equipment is in an online state, the equipment side directly sends the data to the server side; if the equipment is in an off-line state, the data is handed to the registration center for unified processing.
The device side transmits data to the registry, as shown in fig. 4, the registry encapsulates code, version, and requestTime into head, and encapsulates elements such as deviceCode, trayCode, weight, and foodld into body; then the base64 operation is carried out on the two codes simultaneously to generate head cipher text and body cipher text respectively; and then carrying out salting processing on the KEY agreed in advance and the ciphertext, and finally storing the generated offline information into an offline information digital order table.
When the data in the off-line information digital order table exceeds 100 or the heartbeat information exceeds 5 minutes at most and no response still exists (the specific time can be set according to requirements), an alarm is given out, and the off-line information digital order table is manually transmitted to a server side through a 4G or other networks.
This process is repeated until the device resumes network communication.
The invention adds the registration center, the registration center is responsible for detecting the network condition in real time through heartbeat, various off-line data from the equipment end is gathered when the network is abnormal, and the equipment end is informed to report the order information independently when the network is normal. Therefore, the user can not sense the network oscillation. Specifically, the device side transmits the deviceCode, trayCode, weight, foodld and other elements to the registration center, and the registration center needs to uniformly process and store data. To ensure that operators can read the data smoothly.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims. It should be noted that the various technical features described in the above embodiments can be combined in any suitable manner without contradiction, and the invention is not described in any way for the possible combinations in order to avoid unnecessary repetition. In addition, any combination of the various embodiments of the present invention is also possible, and the same should be considered as the disclosure of the present invention as long as it does not depart from the spirit of the present invention.
Claims (6)
1. A method for reporting a digital order by a multi-equipment weighing machine in an off-line manner is characterized by comprising the following steps:
step 1, initializing a registration center; synchronizing the time of the equipment and the server side and emptying the content of the offline information digital order table;
step 2, the registration center and the server establish heartbeat;
step 3, the registration center repeats heartbeat circularly; recording the network state of the last 1-5 minutes;
step 4, the equipment end is connected with a registration center to call the network state;
step 5, the equipment side transmits the data to a registration center;
step 6, when the data in the offline information digital order form table exceeds 100, or the heartbeat information still does not respond after exceeding 1-5 minutes, an alarm is sent out, and the offline information digital order form table is manually transmitted to a server through 4G or other networks;
and 7, repeating the process until the device recovers the network communication.
2. The method for the multi-device weighing machine to report the digital orders offline as claimed in claim 1, wherein the registration center is responsible for processing and storing offline data of the device side, and the offline data includes deviceCode, trayCode, weight and foodld.
3. The method for the off-line reporting of the digital orders by the multi-device weighing machine according to claim 1, wherein in the step 2, the registration center creates a local heartbeat table, sends heartbeat data once per second, and keeps real-time interaction with the server; after receiving the heartbeat packet, the server analyzes the data and transmits the data back to a registration center SUCCESS, and the registration center updates a local heartbeat table; and when the network abnormality exists, directly returning to the registration center, and storing the FAIL by the registration center.
4. The method for reporting the digital order by the multi-device weighing machine in an off-line manner as claimed in claim 1, wherein in the step 3, after the customer service end receives the returned verification code, a verification code layer is generated by using a JavaScript technique, wherein the verification code layer comprises reading of the verification code data, rendering of verification code display and rendering of a verification code input box, the rendered style still uses JavaScript to write style sheet content, an input event monitoring function is added to the generated verification code element, and the length value of the verification code character string returned in the step 2 is obtained.
5. The method for the off-line reporting of the digital order by the multi-device weighing machine according to claim 1, wherein in the step 4, the device side firstly acquires the heartbeat packet state, and if the device is in the on-line state, the device side directly sends the data to the server side; if the equipment is in an off-line state, the data is handed to the registration center for unified processing.
6. The method for reporting the digital orders by the multi-equipment weighing machine offline as claimed in claim 1, wherein in the step 5, the registry packages code, version and requestTime into head and packages deviceCode, trayCode, weight and foodld into body; then the base64 operation is carried out on the two codes simultaneously to generate head cipher text and body cipher text respectively; and then carrying out salting processing on the KEY agreed in advance and the ciphertext, and finally storing the generated offline information into an offline information digital order table.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111385332.2A CN114125042B (en) | 2021-11-22 | 2021-11-22 | Method for off-line reporting digital order by multi-equipment weighing machine |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111385332.2A CN114125042B (en) | 2021-11-22 | 2021-11-22 | Method for off-line reporting digital order by multi-equipment weighing machine |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114125042A true CN114125042A (en) | 2022-03-01 |
| CN114125042B CN114125042B (en) | 2023-06-13 |
Family
ID=80439291
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111385332.2A Active CN114125042B (en) | 2021-11-22 | 2021-11-22 | Method for off-line reporting digital order by multi-equipment weighing machine |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114125042B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114881745A (en) * | 2022-06-07 | 2022-08-09 | 广东优信无限网络股份有限公司 | Offline ordering system for intelligent restaurant |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130017298A1 (en) * | 2011-07-13 | 2013-01-17 | Hong Wang | Assuring food safety using nano-structure based spectral sensing |
| CN103761776A (en) * | 2014-02-25 | 2014-04-30 | 徐州西尼科自动化控制技术有限公司 | Road toll-by-weight device working condition monitoring and maintaining system and method |
| CN105959349A (en) * | 2016-04-22 | 2016-09-21 | 上海瀚之友信息技术服务有限公司 | Distributed service end operation system and method |
| CN109711827A (en) * | 2018-12-27 | 2019-05-03 | 武汉市天蝎科技有限公司 | A kind of new retail method of payment and payment system of near-eye display device |
| CN113641392A (en) * | 2021-07-16 | 2021-11-12 | 多点生活(成都)科技有限公司 | General offline implementation scheme for store terminal |
-
2021
- 2021-11-22 CN CN202111385332.2A patent/CN114125042B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130017298A1 (en) * | 2011-07-13 | 2013-01-17 | Hong Wang | Assuring food safety using nano-structure based spectral sensing |
| CN103761776A (en) * | 2014-02-25 | 2014-04-30 | 徐州西尼科自动化控制技术有限公司 | Road toll-by-weight device working condition monitoring and maintaining system and method |
| CN105959349A (en) * | 2016-04-22 | 2016-09-21 | 上海瀚之友信息技术服务有限公司 | Distributed service end operation system and method |
| CN109711827A (en) * | 2018-12-27 | 2019-05-03 | 武汉市天蝎科技有限公司 | A kind of new retail method of payment and payment system of near-eye display device |
| CN113641392A (en) * | 2021-07-16 | 2021-11-12 | 多点生活(成都)科技有限公司 | General offline implementation scheme for store terminal |
Non-Patent Citations (2)
| Title |
|---|
| RAMNEEK KALRA; KAMAL KUMAR; SHIVANI BATRA; NAMRATA: "Smart market: A step towards digital India", 2017 INTERNATIONAL CONFERENCE ON COMPUTING AND COMMUNICATION TECHNOLOGIES FOR SMART NATION (IC3TSN) * |
| 高森祺: "基于物联网的散料高精度智能称重系统及故障诊断技术研究", 中国优秀硕士学位论文全文数据库 * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114881745A (en) * | 2022-06-07 | 2022-08-09 | 广东优信无限网络股份有限公司 | Offline ordering system for intelligent restaurant |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114125042B (en) | 2023-06-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108270855B (en) | Method for accessing Internet of things platform to equipment | |
| US5764886A (en) | In-band/out-of-band alert delivery system | |
| CN100419765C (en) | Electronic Communications in Intelligent Electronic Devices | |
| US7162521B2 (en) | Remote power control system | |
| US7873726B2 (en) | Versatile terminal adapter and network for transaction processing | |
| US20130097229A1 (en) | System and method for providing services to devices via a common interface | |
| US20040214588A1 (en) | Communication device and communication method | |
| CN103309790A (en) | Method and device for monitoring mobile terminal | |
| CN105049270A (en) | Information processing method, device and system | |
| CN105721389B (en) | The processing of multi-terminal equipment communicating data and service response method, device | |
| CN114125042A (en) | Method for reporting digital orders by multi-equipment weighing machine in offline manner | |
| CN107835222A (en) | Combustion gas data transmission method and Internet of things system based on compound Internet of Things | |
| US20030037130A1 (en) | Method and system for accessing computer systems in a computer network | |
| CN107809457A (en) | Water data transmission method and Internet of things system based on compound Internet of Things | |
| CN105721274B (en) | Method and device for integrating multiple instant messaging | |
| CN111522672B (en) | Method and system for repeated consumption of fusing data | |
| CN109995782A (en) | A kind of information processing method, equipment, system and computer storage medium | |
| CN101163040B (en) | Method of automatically notifying connection state of supervised equipment to users | |
| CN116319307A (en) | Management method of server and related device | |
| CN107659636A (en) | Thermal data transmission method and Internet of things system based on compound Internet of Things | |
| CN116760741B (en) | Data state monitoring method, device, equipment and medium | |
| GB2350528A (en) | Remote control of devices using electronic mail | |
| KR20010008460A (en) | Method for processing urgent message in push system | |
| CN107770249A (en) | Electric quantity data transmission method and Internet of things system based on compound Internet of Things | |
| CN101316202A (en) | On-line diagnosis method and system of embedded software, embedded software device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |