CN112291351A - Transmission processing method and device of ordering information and computer readable storage medium - Google Patents

Transmission processing method and device of ordering information and computer readable storage medium Download PDF

Info

Publication number
CN112291351A
CN112291351A CN202011193945.1A CN202011193945A CN112291351A CN 112291351 A CN112291351 A CN 112291351A CN 202011193945 A CN202011193945 A CN 202011193945A CN 112291351 A CN112291351 A CN 112291351A
Authority
CN
China
Prior art keywords
ordering
information
upper computer
ordering information
equipment
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.)
Pending
Application number
CN202011193945.1A
Other languages
Chinese (zh)
Inventor
陈金旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Zhiyuan Robot Technology Co Ltd
Original Assignee
Guangdong Zhiyuan Robot Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Zhiyuan Robot Technology Co Ltd filed Critical Guangdong Zhiyuan Robot Technology Co Ltd
Priority to CN202011193945.1A priority Critical patent/CN112291351A/en
Publication of CN112291351A publication Critical patent/CN112291351A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/12Hotels or restaurants
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a transmission processing method and device of ordering information and a computer readable storage medium. The method comprises the following steps: receiving ordering information transmitted by a plurality of ordering devices; storing the received ordering information into a storage area according to a receiving sequence; and under the condition of allowing information transmission, transmitting the ordering information to the upper computer according to the receiving sequence from first to last. The ordering information is stored in the storage area according to the receiving sequence, the ordering information is transmitted to the upper computer according to the sequence of receiving the ordering information under the condition that the information transmission is allowed, the ordering information received in the storage area at first is transmitted to the upper computer, each piece of ordering information sent by ordering equipment is guaranteed to be correctly received and processed by the upper computer, then the next piece of ordering information can be executed, the order and the accuracy of the information are guaranteed, and the problem that the information is disordered and cannot work normally when a plurality of pieces of equipment simultaneously place orders is solved.

Description

Transmission processing method and device of ordering information and computer readable storage medium
Technical Field
The present application relates to the field of automatic communication, and in particular, to a transmission processing method and apparatus of ordering information, a computer-readable storage medium, and an ordering system.
Background
At present, Programmable Logic Controllers (PLC) are all in the role of Socket Server in Socket Client and android meal ordering screens. When one PLC is in butt joint with three Android ordering screens, 3 Socket Client ports are created to process messages sent by the three Android screens respectively, because the PLC is single-process equipment, when the 3 equipment simultaneously orders, received messages can be disordered to cause that the work cannot be normally finished.
The above information disclosed in this background section is only for enhancement of understanding of the background of the technology described herein and, therefore, certain information may be included in the background that does not form the prior art that is already known in this country to a person of ordinary skill in the art.
Disclosure of Invention
The application mainly aims to provide a transmission processing method and device of ordering information, a computer readable storage medium and an ordering system, so as to solve the problem that in the prior art, when a plurality of devices simultaneously order, messages are disordered and cannot work normally.
According to an aspect of the embodiments of the present invention, there is provided a transmission processing method of ordering information, the method including the steps of: receiving ordering information transmitted by a plurality of ordering devices, wherein the ordering devices comprise first ordering devices and/or second ordering devices, the first ordering devices are ordering devices serving as service terminals, and the second ordering devices are ordering devices serving as client terminals; storing the received ordering information into a storage area according to a receiving sequence; and under the condition of allowing information transmission, transmitting the ordering information to an upper computer according to a receiving sequence from first to last.
Optionally, each of the plurality of ordering devices has a switch program; the method further comprises the following steps: and changing the first ordering device into the second ordering device or changing the second ordering device into the first ordering device by changing the on or off state of a switch program.
Optionally, the method further comprises: determining whether to allow information transmission, the determining whether to allow information transmission comprising: determining whether reply information corresponding to each ordering information sent to an upper computer is received; and under the condition that the reply information corresponding to each ordering information sent to the upper computer is determined to be received, determining that information transmission is allowed.
Optionally, the determining whether to allow information transmission further includes: and under the condition that the reply information corresponding to any one of the ordering information sent to the upper computer is determined not to be received, determining that information transmission is forbidden.
Optionally, after transmitting the ordering information to the upper computer, the method further includes: and receiving reply information of the upper computer, and sending the reply information to the corresponding ordering equipment according to the type of the reply information.
Optionally, transmitting the ordering information to an upper computer, including: and transmitting the ordering information to the upper computer through a router.
Optionally, the ordering device comprises an ordering screen, and the upper computer comprises a PLC device.
According to another aspect of the embodiments of the present invention, there is also provided a transmission processing method of meal ordering information, including the following steps: sending ordering information to first ordering equipment serving as a server, wherein the first ordering equipment is used for storing the received ordering information into a storage area according to a receiving sequence, transmitting the ordering information into an upper computer according to the receiving sequence from first to last under the condition of allowing information transmission, receiving reply information of the upper computer, and sending the reply information to the corresponding ordering equipment according to the type of the reply information; and receiving reply information corresponding to the ordering information transmitted by the first ordering equipment.
According to another aspect of the embodiments of the present invention, there is also provided a transmission processing apparatus for meal ordering information, including: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing any of the transmission processing methods of the ordering information.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium including a stored program, wherein the program executes any one of the transmission processing methods of the ordering information.
According to another aspect of the embodiment of the present invention, a food ordering system is further provided, and the food ordering system includes a first food ordering apparatus, a second food ordering apparatus and an upper computer, where the first food ordering apparatus is a food ordering apparatus serving as a server, the second food ordering apparatus is a food ordering apparatus serving as a client, and the first food ordering apparatus is configured to execute any one of the transmission processing methods of food ordering information, and/or the second food ordering apparatus is configured to execute the transmission processing method of food ordering information.
In the embodiment of the invention, firstly, the ordering information transmitted by a plurality of ordering devices is received, the ordering information is the ordering information transmitted by a first ordering device serving as a server side or the ordering information transmitted by a second ordering device serving as a client side, then the ordering information is stored and is stored into a storage area according to the receiving sequence, and then the ordering information is transmitted to an upper computer according to the receiving sequence from the first to the last under the condition that the information transmission is allowed. The ordering information is stored in the storage area according to the receiving sequence, and is transmitted to the upper computer according to the sequence of receiving the ordering information under the condition that the information transmission is allowed, so that the ordering information received in the storage area first can be transmitted to the upper computer, each piece of ordering information sent by ordering equipment can be guaranteed to be correctly received and processed by the upper computer, the next piece of ordering information can be executed, the order and the accuracy of the information are guaranteed, and the problem that the information is disordered and cannot work normally when a plurality of pieces of equipment simultaneously place orders is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
fig. 1 is a flowchart illustrating a transmission processing method of ordering information according to an embodiment of the present application;
fig. 2 is a flowchart illustrating another transmission processing method of ordering information according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a transmission processing device for ordering information according to an embodiment of the present application;
FIG. 4 shows a block diagram of an ordering system;
fig. 5 shows a block diagram of the ordering system.
Wherein the figures include the following reference numerals:
10. a first receiving unit; 20. a storage unit; 30. and a transmission unit.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all 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 application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It will be understood that when an element such as a layer, film, region, or substrate is referred to as being "on" another element, it can be directly on the other element or intervening elements may also be present. Also, in the specification and claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element or "connected" to the other element through a third element.
As mentioned in the background art, in the prior art, when a plurality of devices simultaneously order, messages are disordered and cannot normally work, in order to solve the above problems, in an exemplary embodiment of the present application, a transmission processing method and apparatus of ordering information, a computer readable storage medium, and an ordering system are provided.
According to the embodiment of the application, a transmission processing method of ordering information is provided. Fig. 1 is a flowchart of a transmission processing method of ordering information according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
step S101, receiving ordering information transmitted by a plurality of ordering devices, wherein the ordering devices comprise first ordering devices and/or second ordering devices, the first ordering devices are ordering devices serving as service ends, and the second ordering devices are ordering devices serving as client ends;
step S102, storing the received ordering information into a storage area according to a receiving sequence;
and step S103, transmitting the ordering information to an upper computer according to a receiving sequence from first to last under the condition that the information transmission is allowed.
In the method, firstly, the ordering information transmitted by a plurality of ordering devices is received, the ordering information is the ordering information transmitted by a first ordering device serving as a server side or the ordering information transmitted by a second ordering device serving as a client side, then the ordering information is stored and is stored into a storage area according to a receiving sequence, and then the ordering information is transmitted to an upper computer according to the receiving sequence from the first to the last under the condition that the information transmission is allowed. The ordering information is stored in the storage area according to the receiving sequence, and is transmitted to the upper computer according to the sequence of receiving the ordering information under the condition that the information transmission is allowed, so that the ordering information received in the storage area first can be transmitted to the upper computer, each piece of ordering information sent by ordering equipment can be guaranteed to be correctly received and processed by the upper computer, the next piece of ordering information can be executed, the order and the accuracy of the information are guaranteed, and the problem that the information is disordered and cannot work normally when a plurality of pieces of equipment simultaneously place orders is solved.
It should be noted that, the software flow/module corresponding to the transmission processing method of the food ordering information is mainly applied to the first food ordering device, and based on this, when receiving the food ordering information transmitted from the second food ordering device, it is equivalent to receiving external information, and when receiving the food ordering information transmitted from the first food ordering device, it is equivalent to receiving internal information. Also, the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions, and while a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than here.
In practical application, one ordering device may be used as a first ordering device of a server, a plurality of ordering devices may also be used as the first ordering device of the server, and a second ordering device may be another ordering device of a plurality of ordering devices except the first ordering device.
In one embodiment of the application, each of the plurality of ordering devices has a switch program; the method further comprises the following steps: and changing the first ordering device into the second ordering device or changing the second ordering device into the first ordering device by changing the on or off state of a switch program. In this embodiment, switching of the ordering device between the first ordering device and the second ordering device can be realized through the switch program of the ordering device, specifically, the switch program of the ordering device is changed from an on state to an off state, so that the ordering device is changed from the first ordering device to the second ordering device, the switch program of the ordering device is changed from the off state to the on state, so that the ordering device is changed from the second ordering device to the first ordering device, and thus when the switch program of the ordering device is in the on state, the first ordering device is capable of receiving ordering information of the second ordering device, and then subsequent operations are sequentially executed. The on-off program of the ordering device can ensure that the ordering information receives the ordering information in the on state of the on-off program of the ordering device, and further ensure that the ordering device can orderly process the ordering information.
In yet another embodiment of the present application, the method further includes: determining whether to allow information transmission, the determining whether to allow information transmission comprising: determining whether reply information corresponding to each ordering information sent to the upper computer is received; and under the condition that the reply information corresponding to each piece of ordering information sent to the upper computer is determined to be received, determining that information transmission is allowed. In this embodiment, when each ordering information upper computer has replied, it is determined that information transmission is allowed, and it is further ensured that each ordering information can be received and processed by the upper computer, and the ordering of the information is further ensured.
In another embodiment of the present application, the determining whether to allow information transmission further includes: and under the condition that the reply information corresponding to any one of the ordering information sent to the upper computer is determined not to be received, determining that information transmission is forbidden. In the embodiment, when the ordering information sent to the upper computer is determined but the upper computer does not reply, the transmission of the information is prohibited, so that the ordering of the information is further ensured, and further the disorder of the information is avoided.
In another embodiment of the present application, after the meal ordering information is transmitted to the upper computer, the method further includes: and receiving reply information of the upper computer, and sending the reply information to the corresponding ordering equipment according to the type of the reply information. In the embodiment, the ordering information can be more accurately sent to the appointed ordering equipment according to the type of the reply message of the upper computer, and the accuracy rate of sending the ordering information is further ensured.
In a specific embodiment of this application, with above-mentioned information transmission to the host computer of ordering, include: and transmitting the ordering information to the upper computer through a router. In this embodiment, the ordering information is transmitted through the router, so that the ordering information received firstly can be further sent to the upper computer, and the upper computer can be further ensured to receive a plurality of ordering information according to the receiving sequence, thereby further ensuring the ordering of the information.
In another specific embodiment of this application, above-mentioned ordering equipment includes the screen of ordering, and above-mentioned host computer includes PLC equipment. In this embodiment, the user can more directly perceivedly know the information of food and drink through the screen of ordering, can be more convenient order, can more directly perceivedly show the information of ordering simultaneously, can handle the information of ordering more high-efficiently and accurately through PLC.
According to the embodiment of the application, a transmission processing method of ordering information is provided. Fig. 2 is a flowchart of a transmission processing method of ordering information according to an embodiment of the present application. As shown in fig. 2, the method comprises the steps of:
step S201, sending ordering information to first ordering equipment, wherein the first ordering equipment is used as a server side, and is used for storing the received ordering information into a storage area according to a receiving sequence, transmitting the ordering information into an upper computer according to the receiving sequence from first to last under the condition that information transmission is allowed, receiving reply information of the upper computer, and sending the reply information to the corresponding ordering equipment according to the type of the reply information;
step S202, receiving a reply message corresponding to the ordering message sent from the first ordering device.
In the method, firstly, the ordering information is sent to a first ordering device, the first ordering device is used as a server side ordering device, the first ordering device is used for storing the received ordering information into a storage area according to a receiving sequence, under the condition that information transmission is allowed, the ordering information is transmitted to an upper computer according to the receiving sequence from first to last, the reply information of the upper computer is received, the reply information is sent to the corresponding ordering device according to the type of the reply information, and then the reply information corresponding to the ordering information sent by the first ordering device is received. According to the method, after the first ordering device receives ordering information, the ordering information is stored in the storage area according to the receiving sequence, the ordering information is transmitted to the upper computer according to the receiving sequence of the ordering information under the condition that the information transmission is allowed, so that the ordering information received first in the storage area can be transmitted to the upper computer, each piece of ordering information sent by the ordering device can be guaranteed to be correctly received and processed by the upper computer, the next piece of ordering information can be executed, the order and the accuracy of the information are guaranteed, and the problem that the information is disordered and cannot normally work when a plurality of devices simultaneously place orders is solved.
In addition, the software flow/module corresponding to the method for transmitting and processing food ordering information of the present embodiment may be specifically applied to the second food ordering device.
In one embodiment of the application, each of the plurality of ordering devices has a switch program; the method further comprises the following steps: the first ordering equipment is changed into second ordering equipment by changing the on or off state of a switch program, and the second ordering equipment is used as user side ordering equipment, or the second ordering equipment is changed into the first ordering equipment. In this embodiment, switching of the ordering device between the first ordering device and the second ordering device can be realized through the switch program of the ordering device, specifically, the switch program of the ordering device is changed from an on state to an off state, so that the ordering device is changed from the first ordering device to the second ordering device, the switch program of the ordering device is changed from the off state to the on state, so that the ordering device is changed from the second ordering device to the first ordering device, and thus when the switch program of the ordering device is in the off state, the second ordering device is the second ordering device, and can send ordering information to the first ordering device, and then subsequent operations are sequentially executed. The switching program of the ordering device can ensure that the ordering information is sent in the closed state of the switching program of the ordering device, and further ensure that the ordering device can orderly process the ordering information.
In another specific embodiment of this application, above-mentioned first equipment of ordering includes the screen of ordering, and above-mentioned host computer includes PLC equipment. In this embodiment, the user can more directly perceivedly know the information of food and drink through the screen of ordering, can be more convenient order, can more directly perceivedly show the information of ordering simultaneously, can handle the information of ordering more high-efficiently and accurately through PLC.
The application also provides a transmission processing device of the ordering information, which comprises one or more processors, a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs comprise a transmission processing method for executing any one of the ordering information.
The transmission processing device of the ordering information comprises a processor which executes any one of the transmission processing methods of the ordering information, and specifically, the processor receives the ordering information transmitted by a plurality of ordering devices, stores the ordering information into a storage area according to a receiving sequence, and transmits the ordering information to an upper computer according to the receiving sequence from first to last under the condition that the information transmission is allowed. The ordering information is stored in the storage area according to the receiving sequence, the ordering information is transmitted to the upper computer according to the sequence of receiving the ordering information under the condition that the information transmission is allowed, the ordering information is transmitted to the upper computer, the ordering information received in the storage area firstly can be transmitted to the upper computer, each ordering information sent by the ordering equipment can be guaranteed to be correctly received and processed by the upper computer, then the next ordering information can be executed, the order and the accuracy of the information are guaranteed, and the problem that the information is disordered and cannot normally work when a plurality of devices simultaneously place orders is solved.
The application also provides a computer-readable storage medium, wherein the storage medium comprises a stored program, and the program executes any one of the transmission processing methods of the ordering information.
The computer-readable storage medium stores a program for executing any one of the transmission processing methods for ordering information, and the method corresponding to the program can transmit the ordering information received first in the storage area to the upper computer, can ensure that each piece of ordering information sent by ordering equipment is correctly received and processed by the upper computer, can further execute the next piece of ordering information, ensures the order and accuracy of messages, and further solves the problem that the messages are disordered and cannot normally work when a plurality of pieces of equipment simultaneously place orders.
The embodiment of the present application further provides a transmission processing device of ordering information, and it should be noted that the transmission processing device of ordering information of the embodiment of the present application can be used to execute the transmission processing method for ordering information provided by the embodiment of the present application. The transmission processing device of the ordering information provided by the embodiment of the present application is described below.
Fig. 3 is a schematic diagram of an apparatus for transmitting and processing order information according to an embodiment of the present application, and as shown in fig. 3, the apparatus includes:
the first receiving unit 10 is configured to receive ordering information transmitted by a plurality of ordering devices, where the ordering devices include a first ordering device and/or a second ordering device, the first ordering device is an ordering device serving as a server, and the second ordering device is an ordering device serving as a client;
a storage unit 20, configured to store the received ordering information in a storage area according to a receiving sequence;
and the transmission unit 30 is used for transmitting the ordering information to the upper computer according to the receiving sequence from first to last under the condition that the information transmission is allowed.
In the device, a first receiving unit receives ordering information transmitted by a plurality of ordering devices, the ordering information is ordering information transmitted by a first ordering device serving as a server side or ordering information transmitted by a second ordering device serving as a client side, a storage unit stores the ordering information and stores the ordering information into a storage area according to a receiving sequence, and a transmission unit transmits the ordering information to an upper computer according to the receiving sequence from first to last under the condition that the transmission of information is allowed. The device stores the ordering information in the storage area according to the receiving sequence, under the condition that information transmission is allowed, the ordering information is transmitted to the upper computer according to the sequence of receiving the ordering information, so that the ordering information received in the storage area firstly can be transmitted to the upper computer, each ordering information sent by the ordering equipment can be guaranteed to be correctly received and processed by the upper computer, then the next ordering information can be executed, the order and the accuracy of the information are guaranteed, and the problem that the information is disordered and cannot normally work when a plurality of devices simultaneously place orders is solved.
In practical application, one ordering device may be used as a first ordering device of a server, a plurality of ordering devices may also be used as the first ordering device of the server, and a second ordering device may be another ordering device of a plurality of ordering devices except the first ordering device.
In one embodiment of the application, each of the plurality of ordering devices has a switch program; the device also comprises a changing unit, wherein the changing unit changes the first ordering equipment into the second ordering equipment or changes the second ordering equipment into the first ordering equipment by changing the on or off state of a switch program. In this embodiment, switching of the ordering device between the first ordering device and the second ordering device can be realized through the switch program of the ordering device, specifically, the switch program of the ordering device is changed from an on state to an off state, so that the ordering device is changed from the first ordering device to the second ordering device, the switch program of the ordering device is changed from the off state to the on state, so that the ordering device is changed from the second ordering device to the first ordering device, and thus when the switch program of the ordering device is in the on state, the first ordering device is capable of receiving ordering information of the second ordering device, and then subsequent operations are sequentially executed. The on-off program of the ordering device can ensure that the ordering information receives the ordering information in the on state of the on-off program of the ordering device, and further ensure that the ordering device can orderly process the ordering information.
In another embodiment of the present application, the apparatus further includes a determining unit, where the determining unit is configured to determine whether to allow information transmission, and the determining unit includes a first determining module and a second determining module, and the first determining module is configured to determine whether to receive reply information corresponding to each piece of ordering information sent to the upper computer; the second determining module is used for determining that information transmission is allowed under the condition that the reply information corresponding to each piece of ordering information sent to the upper computer is determined to be received. In this embodiment, when each ordering information upper computer has replied, it is determined that information transmission is allowed, and it is further ensured that each ordering information can be received and processed by the upper computer, and the ordering of the information is further ensured.
In another embodiment of the application, the determining unit further includes a third determining module, and the third determining module is configured to determine that information transmission is prohibited when determining that the reply information corresponding to any one of the ordering information sent to the upper computer is not received. In the embodiment, when the ordering information sent to the upper computer is determined but the upper computer does not reply, the transmission of the information is prohibited, so that the ordering of the information is further ensured, and further the disorder of the information is avoided.
In another embodiment of the application, the device further includes a second receiving unit, and the second receiving unit is configured to receive reply information of the upper computer after transmitting the ordering information to the upper computer, and send the reply information to the corresponding ordering device according to a type of the reply information. In the embodiment, the ordering information can be more accurately sent to the appointed ordering equipment according to the type of the reply message of the upper computer, and the accuracy rate of sending the ordering information is further ensured.
In a specific embodiment of the present application, the transmission unit includes a transmission module, and the transmission module transmits the ordering information to the upper computer through the router. In this embodiment, the ordering information is transmitted through the router, so that the ordering information received firstly can be further sent to the upper computer, and the upper computer can be further ensured to receive a plurality of ordering information according to the receiving sequence, thereby further ensuring the ordering of the information.
In another specific embodiment of this application, above-mentioned ordering equipment includes the screen of ordering, and above-mentioned host computer includes PLC equipment. In this embodiment, the user can more directly perceivedly know the information of food and drink through the screen of ordering, can be more convenient order, can more directly perceivedly show the information of ordering simultaneously, can handle the information of ordering more high-efficiently and accurately through PLC.
The application also provides an ordering system, which comprises first ordering equipment, second ordering equipment and an upper computer, wherein the first ordering equipment is ordering equipment serving as a server side, and the second ordering equipment is ordering equipment serving as a client side; the first ordering device is used for executing any one of the above transmission processing methods of the ordering information, and/or the second ordering device is used for executing the above transmission processing method of the ordering information.
In the system, the first ordering device executing any one of the above transmission processing methods for ordering information is included, so that each piece of ordering information sent by the ordering device can be correctly received and processed by the upper computer, the next piece of ordering information can be executed, the order and the accuracy of the message are ensured, and the problem that the message is disordered and cannot work normally when a plurality of devices simultaneously place an order is solved.
In order to make the technical solutions of the present application more clearly understood by those skilled in the art, the technical solutions and technical effects of the present application will be described below with reference to specific embodiments.
Examples
Fig. 4 is a partial structure diagram of the food ordering system, and as shown in fig. 4, the system includes a PLC, a router, and a food ordering device, the PLC and the router are connected by a network cable, and the food ordering device and the router are connected by wireless.
Fig. 5 is a partial communication structure diagram of the ordering system, as shown in fig. 5, a first ordering device serving as a server receives ordering information sent by a plurality of ordering devices, determines whether reply information corresponding to each ordering information sent to an upper computer is received, prohibits information transmission if not, permits information transmission if yes, transmits the ordering information to an upper PLC according to a receiving sequence from first to last, the PLC processes the received ordering information to obtain corresponding reply information, sends the reply information to the server, and then sends the reply information to the corresponding ordering device, the ordering device updates the state, and the ordering screen displays the result.
Specifically, the ordering system realizes ordering process including:
the original ordering screen programs of all the ordering devices are converted into the roles of the client from the roles of the server;
and developing a single-threaded Socket Server (corresponding to a Server) specially processing the message queue on a ordering screen program of ordering equipment. Ensuring that the next command is sent after the command sent to the PLC is received and replied by the PLC each time;
a switch of a Socket Server is established on the ordering screen as a gateway for processing, receiving and sending ordering information by a single-line program;
all the client sides and the PLC of the ordering screen are connected with a fixed IP address of the Socket Server in a unified mode, and the IP address is 192.168.119.2;
setting a local area network IP gateway of the 4G router as 192.168.119.1;
fixing the IP address of the ordering device with the switch of the current Socket Server opened as 192.168.119.2, and opening the switch of the Socket Server of the ordering device;
after receiving a food ordering instruction of a user, a client of the food ordering equipment generates food ordering information and sends the food ordering information to a Socket Server in the food ordering equipment;
the Socket Server receives a plurality of ordering information and stores the ordering information into the storage area according to the receiving sequence;
the Socket Server determines whether the ordering information which is sent to the PLC but not replied exists, and waits for the reply of the PLC and forbids information transmission if the ordering information which is sent to the PLC but not replied exists;
if no ordering information is sent to the PLC but not replied, the Socket Server sends the ordering information received first in the storage area to the PLC;
and the Socket Server receives the reply information of the PLC and sends the reply information to the corresponding ordering equipment according to the type of the message.
In the scheme, the ordering information is stored in the storage area according to the receiving sequence, the ordering information is transmitted to the upper computer according to the sequence of receiving the ordering information under the condition that the information transmission is allowed, so that the ordering information received in the storage area at first can be transmitted to the upper computer, each ordering information sent by the ordering equipment can be guaranteed to be correctly received and processed by the upper computer, then the next ordering information can be executed, the order and the accuracy of the information are guaranteed, and the problem that the information is disordered and cannot normally work when a plurality of devices simultaneously place orders is solved.
The transmission processing device of the ordering information comprises a processor and a memory, the first receiving unit, the storage unit, the transmission unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the messages can work normally and accurately when a plurality of devices simultaneously make an order by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium, on which a program is stored, and when the program is executed by a processor, the method for transmitting and processing the ordering information is implemented.
The embodiment of the invention provides a processor, which is used for running a program, wherein the transmission processing method of the ordering information is executed when the program runs.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein when the processor executes the program, at least the following steps are realized:
step S101, receiving ordering information transmitted by a plurality of ordering devices, wherein the ordering devices comprise first ordering devices and/or second ordering devices, the first ordering devices are ordering devices serving as service ends, and the second ordering devices are ordering devices serving as client ends;
step S102, storing the received ordering information into a storage area according to a receiving sequence;
step S103, under the condition of allowing information transmission, transmitting the ordering information to an upper computer according to the receiving sequence from first to last, or,
step S201, sending ordering information to first ordering equipment, wherein the first ordering equipment is used as a server side, and is used for storing the received ordering information into a storage area according to a receiving sequence, transmitting the ordering information into an upper computer according to the receiving sequence from first to last under the condition that information transmission is allowed, receiving reply information of the upper computer, and sending the reply information to the corresponding ordering equipment according to the type of the reply information;
step S202, receiving a reply message corresponding to the ordering message sent from the first ordering device.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program of initializing at least the following method steps when executed on a data processing device:
step S101, receiving ordering information transmitted by a plurality of ordering devices, wherein the ordering devices comprise first ordering devices and/or second ordering devices, the first ordering devices are ordering devices serving as service ends, and the second ordering devices are ordering devices serving as client ends;
step S102, storing the received ordering information into a storage area according to a receiving sequence;
step S103, under the condition of allowing information transmission, transmitting the ordering information to an upper computer according to the receiving sequence from first to last, or,
step S201, sending ordering information to first ordering equipment, wherein the first ordering equipment is used as a server side, and is used for storing the received ordering information into a storage area according to a receiving sequence, transmitting the ordering information into an upper computer according to the receiving sequence from first to last under the condition that information transmission is allowed, receiving reply information of the upper computer, and sending the reply information to the corresponding ordering equipment according to the type of the reply information;
step S202, receiving a reply message corresponding to the ordering message sent from the first ordering device.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
From the above description, it can be seen that the above-described embodiments of the present application achieve the following technical effects:
1) the transmission processing method of the ordering information comprises the steps of firstly, receiving ordering information transmitted by a plurality of ordering devices, wherein the ordering information is ordering information sent by a first ordering device serving as a server side or ordering information sent by a second ordering device serving as a user side, then storing the ordering information, storing the ordering information into a storage area according to a receiving sequence, and then transmitting the ordering information into an upper computer according to the receiving sequence from the first to the last under the condition that information transmission is allowed. The ordering information is stored in the storage area according to the receiving sequence, and is transmitted to the upper computer according to the sequence of receiving the ordering information under the condition that the information transmission is allowed, so that the ordering information received in the storage area first can be transmitted to the upper computer, each piece of ordering information sent by ordering equipment can be guaranteed to be correctly received and processed by the upper computer, the next piece of ordering information can be executed, the order and the accuracy of the information are guaranteed, and the problem that the information is disordered and cannot work normally when a plurality of pieces of equipment simultaneously place orders is solved.
2) The transmission processing method of the ordering information comprises the steps of firstly, sending the ordering information to a first ordering device, wherein the first ordering device is used as a server side, the first ordering device is used for storing the received ordering information into a storage area according to a receiving sequence, under the condition that information transmission is allowed, the ordering information is transmitted to an upper computer according to the receiving sequence from first to last, the reply information of the upper computer is received, the reply information is sent to the corresponding ordering device according to the type of the reply information, and then the reply information corresponding to the ordering information sent by the first ordering device is received. According to the method, after the first ordering device receives ordering information, the ordering information is stored in the storage area according to the receiving sequence, the ordering information is transmitted to the upper computer according to the receiving sequence of the ordering information under the condition that the information transmission is allowed, so that the ordering information received first in the storage area can be transmitted to the upper computer, each piece of ordering information sent by the ordering device can be guaranteed to be correctly received and processed by the upper computer, the next piece of ordering information can be executed, the order and the accuracy of the information are guaranteed, and the problem that the information is disordered and cannot normally work when a plurality of devices simultaneously place orders is solved.
3) The transmission processing device of the ordering information comprises a processor, wherein the processor executes any one of the transmission processing methods of the ordering information, specifically, the processor receives the ordering information transmitted by a plurality of ordering devices, stores the ordering information into a storage area according to a receiving sequence, and transmits the ordering information to an upper computer according to the receiving sequence from first to last under the condition that the information transmission is allowed. The ordering information is stored in the storage area according to the receiving sequence, the ordering information is transmitted to the upper computer according to the sequence of receiving the ordering information under the condition that the information transmission is allowed, the ordering information is transmitted to the upper computer, the ordering information received in the storage area firstly can be transmitted to the upper computer, each ordering information sent by the ordering equipment can be guaranteed to be correctly received and processed by the upper computer, then the next ordering information can be executed, the order and the accuracy of the information are guaranteed, and the problem that the information is disordered and cannot normally work when a plurality of devices simultaneously place orders is solved.
4) The computer-readable storage medium stores a program for executing any one of the transmission processing methods for ordering information, the method corresponding to the program can transmit the ordering information received firstly in the storage area to an upper computer, each piece of ordering information sent by ordering equipment can be guaranteed to be correctly received and processed by the upper computer, then the next piece of ordering information can be executed, the order and the accuracy of the information are guaranteed, and the problem that the information is disordered and cannot normally work when a plurality of pieces of equipment simultaneously place orders is solved.
5) The ordering system comprises the first ordering device for executing any one of the above ordering information transmission processing methods, so that each piece of ordering information sent by the ordering device can be correctly received and processed by the upper computer, the next piece of ordering information can be executed, the order and the accuracy of the information are guaranteed, and the problem that the information cannot normally work due to chaos when a plurality of devices simultaneously place orders is solved.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (11)

1. A transmission processing method of ordering information is characterized by comprising the following steps:
receiving ordering information transmitted by a plurality of ordering devices, wherein the ordering devices comprise first ordering devices and/or second ordering devices, the first ordering devices are ordering devices serving as service terminals, and the second ordering devices are ordering devices serving as client terminals;
storing the received ordering information into a storage area according to a receiving sequence;
and under the condition of allowing information transmission, transmitting the ordering information to an upper computer according to a receiving sequence from first to last.
2. The method of claim 1, wherein each of the plurality of ordering devices has a switch program; the method further comprises the following steps:
and changing the first ordering device into the second ordering device or changing the second ordering device into the first ordering device by changing the on or off state of a switch program.
3. The method of claim 1, further comprising: it is determined whether the transmission of information is allowed,
the determining whether to allow information transmission includes:
determining whether reply information corresponding to each ordering information sent to an upper computer is received;
and under the condition that the reply information corresponding to each ordering information sent to the upper computer is determined to be received, determining that information transmission is allowed.
4. The method of claim 3, wherein the determining whether to allow information transmission further comprises:
and under the condition that the reply information corresponding to any one of the ordering information sent to the upper computer is determined not to be received, determining that information transmission is forbidden.
5. The method of any of claims 1-4, wherein after transmitting the ordering information to an upper computer, the method further comprises:
and receiving reply information of the upper computer, and sending the reply information to the corresponding ordering equipment according to the type of the reply information.
6. The method of any one of claims 1 to 4, wherein transmitting the ordering information to an upper computer comprises:
and transmitting the ordering information to the upper computer through a router.
7. The method of any one of claims 1 to 4, wherein the ordering device comprises an ordering screen and the host computer comprises a PLC device.
8. A transmission processing method of ordering information is characterized by comprising the following steps:
sending ordering information to first ordering equipment serving as a server, wherein the first ordering equipment is used for storing the received ordering information into a storage area according to a receiving sequence, transmitting the ordering information into an upper computer according to the receiving sequence from first to last under the condition of allowing information transmission, receiving reply information of the upper computer, and sending the reply information to the corresponding ordering equipment according to the type of the reply information;
and receiving reply information corresponding to the ordering information transmitted by the first ordering equipment.
9. A transmission processing apparatus of ordering information, comprising: one or more processors, memory, and one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the transmission processing method of ordering information of any of claims 1 to 7.
10. A computer-readable storage medium characterized in that the storage medium includes a stored program, wherein the program executes the transmission processing method of the ordering information according to any one of claims 1 to 7.
11. A food ordering system is characterized by comprising first food ordering equipment, second food ordering equipment and an upper computer, wherein the first food ordering equipment is food ordering equipment serving as a server side, and the second food ordering equipment is food ordering equipment serving as a client side; the first ordering device is used for executing the transmission processing method of ordering information in any one of claims 1 to 7, and/or the second ordering device is used for executing the transmission processing method of ordering information in claim 8.
CN202011193945.1A 2020-10-30 2020-10-30 Transmission processing method and device of ordering information and computer readable storage medium Pending CN112291351A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011193945.1A CN112291351A (en) 2020-10-30 2020-10-30 Transmission processing method and device of ordering information and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011193945.1A CN112291351A (en) 2020-10-30 2020-10-30 Transmission processing method and device of ordering information and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112291351A true CN112291351A (en) 2021-01-29

Family

ID=74352668

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011193945.1A Pending CN112291351A (en) 2020-10-30 2020-10-30 Transmission processing method and device of ordering information and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112291351A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109697536A (en) * 2017-10-20 2019-04-30 南京龙贞自控科技发展有限公司 A kind of meal delivery robot method for scheduling task
CN110766358A (en) * 2019-09-27 2020-02-07 恒大智慧科技有限公司 Takeaway meal taking method for smart community, computer equipment and readable storage medium
CN111815388A (en) * 2020-02-21 2020-10-23 北京三快在线科技有限公司 Order processing method, device, server and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109697536A (en) * 2017-10-20 2019-04-30 南京龙贞自控科技发展有限公司 A kind of meal delivery robot method for scheduling task
CN110766358A (en) * 2019-09-27 2020-02-07 恒大智慧科技有限公司 Takeaway meal taking method for smart community, computer equipment and readable storage medium
CN111815388A (en) * 2020-02-21 2020-10-23 北京三快在线科技有限公司 Order processing method, device, server and storage medium

Similar Documents

Publication Publication Date Title
EP3605323B1 (en) Method for generating network slice template and for applying network slice template, and apparatus
CN110995554A (en) Method and device for configuring and accessing intelligent household electrical appliance network and storage medium
CN102571996B (en) IP (Internet Protocol) address assignment method, IP address assignment device and network system
CN110351378A (en) A kind of control method and system of internet of things equipment
CN105144110A (en) Automatic configuration of external services based upon network activity
CN103781055A (en) Data downloading method and associated device
CN110324808A (en) Switching method, device and the mobile terminal of configuration file
EP3702915B1 (en) Data processing method and device, storage medium, processor, and system
CN104092763B (en) A kind of application program installation kit method for pushing and device
CN109600769B (en) Communication method and device
CN108022126A (en) Definite method, apparatus, server and the storage medium of prize drawing qualification
US20230254383A1 (en) Operations control of network services
CN110312266B (en) Method and device for realizing WIFI communication by multiple systems of terminal
CN111669322B (en) Relay bridging method and gateway
CN114285695B (en) Communication method, device, apparatus, system and storage medium
CN105100150A (en) Cloud desktop migration method and apparatus, and distributed cloud desktop system
CN110933015B (en) Data transmission method, device and system
CN110505614B (en) Communication method and device of ZigBee binding switch
CN102185881A (en) Household digital equipment wireless multi-protocol space sharing storage manager and method
CN103813014A (en) Information processing method and electronic devices
CN112291351A (en) Transmission processing method and device of ordering information and computer readable storage medium
CN104184823A (en) Automatic task scheduling method and system
CN106385516A (en) Business transfer setting method, device and terminal
CN105978970A (en) method and device for selecting control mode
CN105634931A (en) Messaging service processing method and instant messaging server

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210129