CN114495365A - Intelligent meal taking cabinet and control method thereof - Google Patents

Intelligent meal taking cabinet and control method thereof Download PDF

Info

Publication number
CN114495365A
CN114495365A CN202210142570.9A CN202210142570A CN114495365A CN 114495365 A CN114495365 A CN 114495365A CN 202210142570 A CN202210142570 A CN 202210142570A CN 114495365 A CN114495365 A CN 114495365A
Authority
CN
China
Prior art keywords
lock control
cabinet
control board
bus
lock
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
CN202210142570.9A
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.)
Shenzhen Wancheng Wulian Technology Co ltd
Original Assignee
Shenzhen Wancheng Wulian 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 Shenzhen Wancheng Wulian Technology Co ltd filed Critical Shenzhen Wancheng Wulian Technology Co ltd
Priority to CN202210142570.9A priority Critical patent/CN114495365A/en
Publication of CN114495365A publication Critical patent/CN114495365A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F17/00Coin-freed apparatus for hiring articles; Coin-freed facilities or services
    • G07F17/0064Coin-freed apparatus for hiring articles; Coin-freed facilities or services for processing of food articles
    • G07F17/0078Food articles which need to be processed for dispensing in a hot or cooked condition, e.g. popcorn, nuts
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/403Bus networks with centralised control, e.g. polling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Landscapes

  • Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Food Science & Technology (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides an intelligent meal taking cabinet which comprises a main control board, a lock control board, a unit cabinet and a power supply, wherein the main control board is connected with the lock control board; the main control board is in signal connection with the lock control boards of a first number through a CAN bus; the lock control plate is electrically connected with the power supply; the lock control plates are used for controlling the unit cabinets to be unlocked and are in signal connection with a second number of the unit cabinets. The intelligent meal cabinet taking control system solves the problems that a mainboard is easy to burn out, logic control is complex and the system is unstable in the existing intelligent meal cabinet taking cabinet, and through a multi-master-slave structure of a CAN bus, a first number of lock control boards CAN be in signal connection with a master control board, and then the lock control boards are in signal connection with a second number of unit cabinets, so that the number of the lock control boards is reduced, the risk of burning out of the mainboard is reduced, the complexity degree of logic control is reduced, and the stability of the intelligent meal cabinet taking control system is improved.

Description

Intelligent meal taking cabinet and control method thereof
Technical Field
The invention belongs to the field of Internet of things, and particularly relates to an intelligent food taking cabinet and a control method of the intelligent food taking cabinet.
Background
The intelligent food taking cabinet is a cabinet for storing food and consists of a plurality of unit cabinets. The user adopts a code scanning mode to open the door to store food in the unit cabinet, and the equipment simultaneously pushes the related information of the stored food to the food purchaser. The buyer passes through the two-dimensional code or input identifying code of scanning equipment propelling movement, and the unit cabinet that corresponds is opened automatically to the equipment after the equipment verification, and the buyer takes out food. Meanwhile, the stored food can be heated and insulated, and the unit cabinet can be sterilized after being taken, so that the cleanness and sanitation in the cabinet are ensured. The existing intelligent meal taking cabinet is controlled in a mode that one host machine is provided with a plurality of slave machines, a two-wire wiring mode is generally adopted, the wiring mode is a bus type topological structure, at most 32 nodes can be connected on the same bus, each lock control board controls one unit cabinet, and the problems of mainboard burnout, tedious logic control and unstable system are easy to occur.
Disclosure of Invention
The invention provides an intelligent meal taking cabinet, which aims to solve the problems that a mainboard is easy to burn out, logic control is complicated and a system is unstable in the existing intelligent meal taking cabinet.
The invention is realized in this way, and provides an intelligent meal taking cabinet, which comprises: the device comprises a main control board, a lock control board, a unit cabinet and a power supply;
the main control board is in signal connection with the lock control boards of a first number through a CAN bus;
the lock control plate is electrically connected with the power supply;
the lock control plates are used for controlling the unit cabinets to be unlocked and are in signal connection with a second number of the unit cabinets.
Optionally, each lock control plate is directly electrically connected with the power supply, so that the lock control plates of the first number are connected in parallel to get electricity.
Optionally, a first number of CAN controllers are arranged on the CAN bus, and each CAN controller is in signal connection with one lock control plate.
Optionally, each lock control panel is provided with a node identifier, and the CAN controller sends the signal of the lock control panel to the main control panel through the node identifier.
Optionally, each of the unit cabinets is provided with a sub-node identifier, and the CAN controller sends a signal of the unit cabinet to the main control board through the sub-node identifier.
Optionally, the unit cabinet includes a lighting module, a disinfection module, a heating module and an electric control lock, and the lighting module, the disinfection module, the heating module and the electric control lock are in signal connection with the lock control board.
In a second aspect, an embodiment of the present invention provides a control method for an intelligent meal taking cabinet, where the intelligent meal taking cabinet includes: the device comprises a main control board, a lock control board, a unit cabinet and a power supply; the main control board is in signal connection with the lock control boards of a first number through a CAN bus; the lock control plate is electrically connected with the power supply; the lock control plates are used for controlling the unit cabinets to be unlocked and are in signal connection with a second number of unit cabinets; the control method comprises the following steps:
when the CAN bus is detected to be idle, the lock control board sends a signal to the main control board;
and when the plurality of lock control boards simultaneously send signals to the main control board, arbitration is carried out through an arbitration strategy preset in the CAN bus.
Optionally, a first number of CAN controllers are arranged on the CAN bus, and each CAN controller is in signal connection with one lock control plate, and the method further includes:
detecting the idle state of the CAN bus in real time through the CAN controller, and when the CAN bus is detected to be idle, sending a signal to the main control board through the CAN controller by the lock control board;
when a plurality of CAN controllers simultaneously send signals to the main control board, arbitration is carried out through an arbitration strategy preset in the CAN bus.
Optionally, the method further includes:
and through the error state detected by the CAN controller in real time, when the CAN bus error is detected, a first error instruction is sent to the CAN bus so as to close the CAN bus.
Optionally, the method further comprises:
the current CAN controller detects the error state of the CAN controller and the error states of other CAN controllers in real time, and if the CAN controller or other CAN controllers have errors before detection, the current CAN controller is controlled to be locked or other CAN controllers are informed to be locked.
The invention has the following beneficial effects: the invention comprises the following steps: the device comprises a main control board, a lock control board, a unit cabinet and a power supply; the main control board is in signal connection with the lock control boards of a first number through a CAN bus; the lock control plate is electrically connected with the power supply; the lock control plates are used for controlling the unit cabinets to be unlocked and are in signal connection with a second number of the unit cabinets. The intelligent meal cabinet taking control system solves the problems that a mainboard is easy to burn out, logic control is complex and the system is unstable in the existing intelligent meal cabinet taking cabinet, and through a multi-master-slave structure of a CAN bus, a first number of lock control boards CAN be in signal connection with a master control board, and then the lock control boards are in signal connection with a second number of unit cabinets, so that the number of the lock control boards is reduced, the risk of burning out of the mainboard is reduced, the complexity degree of logic control is reduced, and the stability of the intelligent meal cabinet taking control system is improved.
Drawings
FIG. 1 is a schematic structural diagram of an intelligent meal taking cabinet according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a control method for an intelligent meal taking cabinet according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The terms "vertical," "horizontal," "left," "right," and the like as used herein are for illustrative purposes only and do not represent the only embodiments.
The existing flashlight system can illuminate a designated place in the using process, the function is single, a user can only estimate the distance between the user and the illumination place in a visual inspection mode, the estimated distance is inaccurate, the flashlight is generally used in the outdoor environment at night, the illumination range is extremely limited, and if the user estimates the distance between the user and the illumination place to have large deviation, the safety problem easily occurs in the outdoor walking process at night. According to the invention, the distance measurement component is added in the flashlight, so that the flashlight has the function of distance measurement, and the distance measurement and calculation function of the distance measurement component enables a user to accurately know the distance between the user and an illumination place, so that the safety of outdoor walking at night is improved.
Example one
Referring to fig. 1, fig. 1 is a schematic structural diagram of an intelligent meal taking cabinet according to an embodiment of the present invention, and as shown in fig. 1, an embodiment of the present invention provides an intelligent meal taking cabinet, including: the device comprises a main control board, a lock control board, a unit cabinet and a power supply; the main control board is in signal connection with the lock control boards of a first number through a CAN bus; the lock control plate is electrically connected with the power supply; the lock control plates are used for controlling the unit cabinets to be unlocked and are in signal connection with a second number of the unit cabinets.
In the embodiment of the present invention, the main control board may be a board card having signal processing capability, such as a control chip, a microprocessor, a programmable gate array, and the like. In the embodiment of the present invention, the type and model of the main control board are not limited. The main control board is a core accessory of the intelligent food taking cabinet, controls the electrical part of the intelligent food taking cabinet, and sends or receives related information.
The lock control board can be a board card with signal processing capability, such as a control chip, a microprocessor, a programmable gate array and the like for controlling the unit cabinet. The lock control board is communicated with the main control board and controls unlocking, lighting, heating and sterilizing of the intelligent meal cabinet unit cabinet.
And the master control board is in signal connection with the first number of lock control boards through the CAN bus to form a first master-slave structure, and each lock control board is equivalent to a node of the first master-slave structure. CAN is a serial communication protocol standardized by ISO (International standardization), a CAN bus is a multi-master bus, and any node CAN actively send information to other nodes on a network at any time without primary and secondary communication, so that free communication CAN be realized among the nodes.
And the lock plate is in signal connection with a second number of unit cabinets through a CAN bus to form a second master-slave structure, and each unit cabinet is equivalent to a sub-node of the second master-slave structure.
The first number and the second number can be the same or different, and can be determined according to the size and the layout of the intelligent meal taking cabinet. For example, for a cabinet with 21 units, the second number may be 7, and the first number may be 3, i.e. 3 lock control boards are controlled by 1 main control board, and 7 unit cabinets are controlled by 1 lock control board.
Therefore, the number of the lock control plates controlled by the main control plate is reduced, and compared with the existing 1 unit cabinet controlled by 1 lock control plate, the number of the lock control plates controlled by the main control plate is reduced from 21 to 3. Therefore, the number of the lock control plates is reduced, the risk of burning out the main plate is reduced, the complexity of logic control is reduced, and the stability of the intelligent cabinet taking control system is improved.
It should be noted that, in the existing intelligent food cabinet, each unit cabinet is controlled by a lock control plate, an RS485 communication protocol is adopted, and an RS485 polling mode is adopted, so that the utilization rate of an RS485 bus is low. The RS485 bus is only specified by a physical layer and has no data link layer, the data transmission error rate is high, a single node fails, the whole bus is broken down, the software development difficulty is high, and the system cost is high. Specifically, RS485 is a single master-slave structure, only one host can exist on one bus, communication is initiated by the host, the lower node cannot transmit the command when the host does not issue the command, the response is answered after the command is issued, and the host queries the next node after receiving the response. This is to prevent a plurality of nodes from transmitting data to the bus, which causes data confusion. Meanwhile, the protocol only specifies a physical layer and does not have a data link layer, so the protocol cannot identify errors unless some short circuits and other physical errors exist. Thus, once a node is broken, data will be sent to the bus continuously, resulting in the whole bus going down. And the protocol only has an electrical protocol, and research and development engineers need to develop a link layer and an application layer by themselves, so that the development difficulty is high.
Therefore, the invention adopts the CAN bus to carry out the structure optimization design on the intelligent food taking cabinet, so that the invention comprises the following steps: the device comprises a main control board, a lock control board, a unit cabinet and a power supply; the main control board is in signal connection with the lock control boards of a first number through a CAN bus; the lock control plate is electrically connected with the power supply; the lock control plates are used for controlling the unit cabinets to be unlocked and are in signal connection with a second number of the unit cabinets. The intelligent meal cabinet taking control system solves the problems that a mainboard is easy to burn out, logic control is complex and the system is unstable in the existing intelligent meal cabinet taking cabinet, and through a multi-master-slave structure of a CAN bus, a first number of lock control boards CAN be in signal connection with a master control board, and then the lock control boards are in signal connection with a second number of unit cabinets, so that the number of the lock control boards is reduced, the risk of burning out the mainboard is reduced, the complexity degree of logic control is reduced, the stability of the intelligent meal cabinet taking control system is improved, meanwhile, the number of the lock control boards is reduced, and the cost of the intelligent meal cabinet taking cabinet is reduced.
Optionally, each lock control plate is directly electrically connected with the power supply, so that the lock control plates of a first number are connected in parallel to get electricity.
In the embodiment of the invention, the lock control plates with the first number are connected in parallel to obtain electricity, so that the lock control plates can be protected, and the lock control plates are prevented from being broken down due to current change.
It should be noted that, in the existing intelligent meal cabinet, the power supplies of the lock control plates are connected in series, and the passing currents on the lock control plates connected in sequence are in a decreasing mode, which results in the largest passing current of the lock control plate corresponding to the first unit cabinet, so that the lock control plate connected at the forefront is most prone to failure due to overlarge current when working for a long time. When one of the lock control panels is out of order, it is possible to cause communication abnormality in a series of lock control panels connected to the lock control panel.
In the embodiment of the invention, each lock control plate controls unlocking, lighting, heating and disinfection of 7 unit cabinets. The power supplies of all the lock control plates are connected in parallel, the lock control plates are directly connected to all the lock control plates from the main power supply respectively, and the power supply of the intelligent food cabinet can be safer and more stable by adopting a shunting mode.
Optionally, a first number of CAN controllers are arranged on the CAN bus, and each CAN controller is in signal connection with one lock control plate.
In the embodiment of the invention, each node in the CAN bus is provided with a CAN controller, and a plurality of nodes transmit the signals. The CAN bus is a multi-master bus, and any node CAN actively send information to other nodes on the network at any time without primary and secondary, so that free communication CAN be realized among the nodes. And the master control board is in signal connection with the first number of lock control boards through the CAN bus to form a first master-slave structure, and each lock control board is equivalent to a node of the first master-slave structure.
Each lock control board is communicated with the main board through a CAN controller, and the CAN controller CAN detect any error of the bus, automatically convert the error state, and timely close the bus so as to protect the bus.
If the CAN controller detects other nodes or the CAN controller itself has errors, an error frame is sent to the bus to prompt other nodes that the data is wrong. Therefore, once one node program of the CAN bus is run away, the CAN controller CAN be automatically locked to protect the bus. In addition, the bottom mechanism of the CAN communication protocol is realized by a CAN controller chip and an interface chip thereof, and research and development engineers only need to know an application layer facing a client, so that the development difficulty of the system is greatly reduced, and the development period is shortened.
Optionally, each lock control plate is provided with a node identifier, and the CAN controller sends the signal of the lock control plate to the main control plate through the node identifier.
In the embodiment of the invention, each lock control board is provided with a node identifier for the identification of the main board and the CAN controller. The node identification CAN be an ID number of the node, specifically, each node corresponds to one lock control board, each lock control board corresponds to one CAN controller, and when a plurality of nodes transmit, arbitration is automatically performed according to the transmitted ID numbers, so that no disorder of bus data CAN be realized. When one node finishes sending, the other node can detect that the bus is idle and send the bus immediately, so that inquiry of a host is omitted, the bus utilization rate is improved, and the rapidity is enhanced. The node sending signal is forwarded through the CAN controller, in the forwarding process, the CAN controller CAN detect whether other nodes are also sending, and if other nodes are also sending, the CAN controller and other CAN controllers carry out arbitration through respective ID numbers, so that which node sends first is determined. The arbitration mode may be according to the sequence of the ID numbers, or may be performed by the amount of data sent, for example, if lock control board a is to send a control request of unit cabinet a1, and lock control board B is to send control requests of unit cabinet B1 and unit cabinet B2, the data of lock control board B will be sent first, thereby improving the control efficiency.
Optionally, each of the unit cabinets is provided with a sub-node identifier, and the CAN controller sends a signal of the unit cabinet to the main control board through the sub-node identifier.
In the embodiment of the invention, each unit cabinet is provided with a sub-node identifier for identifying the main board, the CAN controller and the lock control board. The child node identifiers may be ID numbers of child nodes, specifically, each child node corresponds to one unit cabinet, and each corresponding unit cabinet corresponds to one lock control board, or it is stated that each unit cabinet corresponds to one node identifier, it CAN be understood that each node identifier is a parent node identifier corresponding to a child node identifier, and each lock control board corresponds to one CAN controller. When a plurality of child nodes send data, the ID numbers of the child nodes are used for automatically queuing, and the data are packaged into the data under the ID number of the same node for sending, so that the bus data are not disordered.
Optionally, the unit cabinet includes a lighting module, a disinfection module, a heating module and an electric control lock, and the lighting module, the disinfection module, the heating module and the electric control lock are in signal connection with the lock control board.
In the embodiment of the invention, the lighting module provides a lighting function in the unit cabinet, the disinfection module provides a disinfection function in the unit cabinet, the heating module provides a heating function in the unit cabinet, and the electric control lock provides an unlocking function in the unit cabinet. The lighting module, the disinfection module, the heating module and the electric control lock are respectively in signal connection with the lock control plate, so that the modules can be independently controlled and communicated.
Example two
Referring to fig. 2, fig. 2 is a schematic flow chart of a control method for an intelligent meal fetching cabinet according to an embodiment of the present invention, and as shown in fig. 2, the intelligent meal fetching cabinet includes: the device comprises a main control board, a lock control board, a unit cabinet and a power supply; the main control board is in signal connection with the lock control boards of a first number through a CAN bus; the lock control plate is electrically connected with the power supply; the lock control plates are used for controlling the unit cabinets to be unlocked and are in signal connection with a second number of unit cabinets; the embodiment of the invention provides a control method of an intelligent food taking cabinet, which comprises the following steps:
201. and when the CAN bus is detected to be idle, the lock control board sends a signal to the main control board.
In the embodiment of the present invention, the main control board may be a board card having signal processing capability, such as a control chip, a microprocessor, a programmable gate array, and the like. In the embodiment of the present invention, the type and model of the main control board are not limited. The main control board is a core accessory of the intelligent food taking cabinet, controls the electrical part of the intelligent food taking cabinet, and sends or receives related information.
The lock control board can be a board card with signal processing capability, such as a control chip, a microprocessor, a programmable gate array and the like for controlling the unit cabinet. The lock control board is communicated with the main control board and controls unlocking, lighting, heating and sterilizing of the intelligent meal cabinet unit cabinet.
And the master control board is in signal connection with the first number of lock control boards through the CAN bus to form a first master-slave structure, and each lock control board is equivalent to a node of the first master-slave structure. CAN is a serial communication protocol standardized by ISO (International standardization), a CAN bus is a multi-master bus, and any node CAN actively send information to other nodes on a network at any time without primary and secondary communication, so that free communication CAN be realized among the nodes.
And the lock plate is in signal connection with a second number of unit cabinets through a CAN bus to form a second master-slave structure, and each unit cabinet is equivalent to a sub-node of the second master-slave structure.
The first number and the second number can be the same or different, and can be determined according to the size and the layout of the intelligent meal taking cabinet. For example, for a cabinet with 21 units, the second number may be 7, and the first number may be 3, i.e. 3 lock control boards are controlled by 1 main control board, and 7 unit cabinets are controlled by 1 lock control board.
Therefore, the number of the lock control plates controlled by the main control plate is reduced, and compared with the existing 1 unit cabinet controlled by 1 lock control plate, the number of the lock control plates controlled by the main control plate is reduced from 21 to 3. Therefore, the number of the lock control plates is reduced, the risk of burning out the main plate is reduced, the complexity of logic control is reduced, and the stability of the intelligent cabinet taking control system is improved.
It should be noted that, in the existing intelligent food fetching cabinet, each unit cabinet is controlled by one lock control panel, an RS485 communication protocol is adopted, and an RS485 polling mode is adopted, so that the utilization rate of an RS485 bus is low. The RS485 bus is only standardized by a physical layer and has no data link layer regulation, the data transmission error rate is high, a single node fails, the whole bus is broken down, the software development difficulty is high, and the system cost is high. Specifically, RS485 is a single master-slave structure, only one host can exist on one bus, communication is initiated by the host, the lower node cannot transmit the command when the host does not issue the command, the response is answered after the command is issued, and the host queries the next node after receiving the response. This is to prevent a plurality of nodes from transmitting data to the bus, which causes data confusion. Meanwhile, the protocol only specifies a physical layer and does not have a data link layer, so the protocol cannot identify errors unless some short circuits and other physical errors exist. Thus, once a node is broken, data will be sent to the bus continuously, resulting in the whole bus going down. And the protocol only has an electrical protocol, and research and development engineers need to develop a link layer and an application layer by themselves, so that the development difficulty is high.
Therefore, the invention adopts the CAN bus to carry out the structure optimization design on the intelligent food taking cabinet, so that the invention comprises the following steps: the device comprises a main control board, a lock control board, a unit cabinet and a power supply; the main control board is in signal connection with the lock control boards of a first number through a CAN bus; the lock control plate is electrically connected with the power supply; the lock control plates are used for controlling the unit cabinets to be unlocked and are in signal connection with a second number of the unit cabinets. The intelligent meal cabinet taking control system solves the problems that a mainboard is easy to burn out, logic control is complex and the system is unstable in the existing intelligent meal cabinet taking cabinet, and through a multi-master-slave structure of a CAN bus, a first number of lock control boards CAN be in signal connection with a master control board, and then the lock control boards are in signal connection with a second number of unit cabinets, so that the number of the lock control boards is reduced, the risk of burning out the mainboard is reduced, the complexity degree of logic control is reduced, the stability of the intelligent meal cabinet taking control system is improved, meanwhile, the number of the lock control boards is reduced, and the cost of the intelligent meal cabinet taking cabinet is reduced.
Optionally, each lock control plate is directly electrically connected with the power supply, so that the lock control plates of the first number are connected in parallel to get electricity.
In the embodiment of the invention, the lock control plates with the first number are connected in parallel to obtain electricity, so that the lock control plates can be protected, and the lock control plates are prevented from being broken down due to current change.
It should be noted that, in the existing intelligent meal cabinet, the power supplies of the lock control plates are connected in series, and the passing currents on the lock control plates connected in sequence are in a decreasing mode, which results in the largest passing current of the lock control plate corresponding to the first unit cabinet, so that the lock control plate connected at the forefront is most prone to failure due to overlarge current when working for a long time. When one of the lock control panels is out of order, it is possible to cause communication abnormality in a series of lock control panels connected to the lock control panel.
In the embodiment of the invention, each lock control plate controls unlocking, lighting, heating and disinfection of 7 unit cabinets. The power supplies of all the lock control plates are connected in parallel, the lock control plates are directly connected to the main power supply respectively, and the intelligent food taking cabinet is safer and more stable in power supply due to the adoption of a shunting mode.
Optionally, a first number of CAN controllers are arranged on the CAN bus, and each CAN controller is in signal connection with one lock control plate.
In the embodiment of the invention, each node in the CAN bus is provided with a CAN controller, and a plurality of nodes transmit. The CAN bus is a multi-master bus, and any node CAN actively send information to other nodes on the network at any time without primary and secondary, so that free communication CAN be realized among the nodes. And the master control board is in signal connection with the first number of lock control boards through the CAN bus to form a first master-slave structure, and each lock control board is equivalent to a node of the first master-slave structure.
Each lock control board is communicated with the main board through a CAN controller, and the CAN controller CAN detect any error of the bus, automatically convert the error state, and timely close the bus so as to protect the bus.
If the CAN controller detects other node errors or the CAN controller itself errors, an error frame is sent to the bus to prompt other nodes that the data is wrong. Therefore, once one node program of the CAN bus is run away, the CAN controller CAN be automatically locked to protect the bus. In addition, the bottom mechanism of the CAN communication protocol is realized by the CAN controller chip and the interface chip thereof, and research and development engineers only need to know the application layer facing to the client, thereby greatly reducing the development difficulty of the system and shortening the development period.
Optionally, each lock control panel is provided with a node identifier, and the CAN controller sends the signal of the lock control panel to the main control panel through the node identifier.
In the embodiment of the invention, each lock control board is provided with a node identifier for the identification of the main board and the CAN controller. The node identification CAN be an ID number of the node, specifically, each node corresponds to one lock control board, each lock control board corresponds to one CAN controller, and when the node needs to send data and the CAN controller detects that a CAN bus is idle, the CAN controller sends the data to the main control board.
202. And when the plurality of lock control boards simultaneously send signals to the main control board, arbitration is carried out through an arbitration strategy preset in the CAN bus.
In the embodiment of the invention, when a plurality of nodes send data, the arbitration is automatically carried out by the ID number sent, so that the bus data is not disordered. When one node finishes sending, the other node can detect that the bus is idle and send the bus immediately, so that inquiry of a host is omitted, the bus utilization rate is improved, and the rapidity is enhanced.
When a plurality of CAN controllers simultaneously send signals to the main control board, arbitration is carried out through an arbitration strategy preset in the CAN bus. The node sending signal is forwarded through the CAN controller, in the forwarding process, the CAN controller CAN detect whether other nodes are also sending, and if other nodes are also sending, the CAN controller and other CAN controllers carry out arbitration through respective ID numbers, so that which node sends first is determined. The arbitration mode may be according to the sequence of the ID numbers, or may be performed by the amount of data sent, for example, if lock control board a is to send a control request of unit cabinet a1, and lock control board B is to send control requests of unit cabinet B1 and unit cabinet B2, the data of lock control board B will be sent first, thereby improving the control efficiency.
Optionally, the method further includes: and through the error state detected by the CAN controller in real time, when the CAN bus error is detected, a first error instruction is sent to the CAN bus so as to close the CAN bus.
Optionally, the method further comprises: the current CAN controller detects the error state of the CAN controller and the error states of other CAN controllers in real time, and if the CAN controller or other CAN controllers have errors before detection, the current CAN controller is controlled to be locked or other CAN controllers are informed to be locked.
In the embodiment of the invention, the method comprises the following steps: the device comprises a main control board, a lock control board, a unit cabinet and a power supply; the main control board is in signal connection with the lock control boards of a first number through a CAN bus; the lock control plate is electrically connected with the power supply; the lock control plates are used for controlling the unit cabinets to be unlocked and are in signal connection with a second number of the unit cabinets. When the CAN bus is detected to be idle, the lock control board sends a signal to the main control board; and when the plurality of lock control boards simultaneously send signals to the main control board, arbitration is carried out through an arbitration strategy preset in the CAN bus. The intelligent meal cabinet taking control system solves the problems that a mainboard is easy to burn out, logic control is complex and the system is unstable in the existing intelligent meal cabinet taking cabinet, and through a multi-master-slave structure of a CAN bus, a first number of lock control boards CAN be in signal connection with a master control board, and then the lock control boards are in signal connection with a second number of unit cabinets, so that the number of the lock control boards is reduced, the risk of burning out of the mainboard is reduced, the complexity degree of logic control is reduced, and the stability of the intelligent meal cabinet taking control system is improved.
Embodiments of the present invention further provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the control methods of an intelligent cabinet as described in the above method embodiments.
Embodiments of the present invention also provide an electronic device, which includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to execute part or all of the steps of any one of the control methods of the intelligent meal taking cabinet as described in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that the acts and modules illustrated are not necessarily required to practice the invention.
In the foregoing embodiments, 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 apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric 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 network 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 may be implemented in the form of hardware, or may be implemented in the form of a software program module.
The integrated units, if implemented in the form of software program modules and sold or used as stand-alone products, may be stored in a computer readable memory. 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 memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory comprises: 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.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above embodiments of the present invention are described in detail, and the principle and the implementation of the present invention are explained by applying specific embodiments, and the above description of the embodiments is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. The utility model provides a dining cabinet is got to intelligence which characterized in that includes: the device comprises a main control board, a lock control board, a unit cabinet and a power supply;
the main control board is in signal connection with the lock control boards of a first number through a CAN bus;
the lock control plate is electrically connected with the power supply;
the lock control plates are used for controlling the unit cabinets to be unlocked and are in signal connection with a second number of the unit cabinets.
2. The intelligent cabinet as claimed in claim 1, wherein each of the lock control plates is electrically connected to the power supply directly, so that a first number of the lock control plates are connected in parallel to obtain electricity.
3. The intelligent cabinet as recited in claim 2, wherein a first number of CAN controllers are provided on said CAN bus, each of said CAN controllers being in signal communication with one of said lock control panels.
4. The intelligent cabinet as claimed in claim 3, wherein each said lock control panel is provided with a node identifier, and said CAN controller sends the signal of said lock control panel to said main control panel through said node identifier.
5. The intelligent cabinet as claimed in claim 4, wherein each of the unit cabinets is provided with a sub-node identifier, and the CAN controller sends the signal of the unit cabinet to the main control board through the sub-node identifier.
6. The intelligent food fetching cabinet as defined in claim 5, wherein the unit cabinet comprises a lighting module, a sterilizing module, a heating module and an electrically controlled lock, and the lighting module, the sterilizing module, the heating module and the electrically controlled lock are in signal connection with the lock control board.
7. A control method of an intelligent meal taking cabinet is characterized in that the intelligent meal taking cabinet comprises the following steps: the device comprises a main control board, a lock control board, a unit cabinet and a power supply; the main control board is in signal connection with the lock control boards of a first number through a CAN bus; the lock control plate is electrically connected with the power supply; the lock control plates are used for controlling the unit cabinets to be unlocked and are in signal connection with a second number of the unit cabinets; the control method comprises the following steps:
when the CAN bus is detected to be idle, the lock control board sends a signal to the main control board;
and when the plurality of lock control boards simultaneously send signals to the main control board, arbitration is carried out through an arbitration strategy preset in the CAN bus.
8. The method as claimed in claim 7, wherein a first number of CAN controllers are provided on the CAN bus, each of the CAN controllers being in signal connection with one of the lock control boards, the method further comprising:
detecting the idle state of the CAN bus in real time through the CAN controller, and when the CAN bus is detected to be idle, sending a signal to the main control board through the CAN controller by the lock control board;
when a plurality of CAN controllers simultaneously send signals to the main control board, arbitration is carried out through an arbitration strategy preset in the CAN bus.
9. The method for controlling an intelligent cabinet as claimed in claim 8, wherein the method further comprises:
and through the error state detected by the CAN controller in real time, when the CAN bus error is detected, a first error instruction is sent to the CAN bus so as to close the CAN bus.
10. The control method of the intelligent meal taking cabinet as claimed in claim 8, wherein the method further comprises:
the current CAN controller detects the error state of the current CAN controller and the error states of other CAN controllers in real time, and if the current CAN controller or other CAN controllers are detected to have errors, the current CAN controller is controlled to be locked or other CAN controllers are informed to be locked.
CN202210142570.9A 2022-02-16 2022-02-16 Intelligent meal taking cabinet and control method thereof Pending CN114495365A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210142570.9A CN114495365A (en) 2022-02-16 2022-02-16 Intelligent meal taking cabinet and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210142570.9A CN114495365A (en) 2022-02-16 2022-02-16 Intelligent meal taking cabinet and control method thereof

Publications (1)

Publication Number Publication Date
CN114495365A true CN114495365A (en) 2022-05-13

Family

ID=81481290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210142570.9A Pending CN114495365A (en) 2022-02-16 2022-02-16 Intelligent meal taking cabinet and control method thereof

Country Status (1)

Country Link
CN (1) CN114495365A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101783759A (en) * 2010-01-19 2010-07-21 浙江吉利汽车研究院有限公司 Bus error recovery processing method
CN205195728U (en) * 2015-11-10 2016-04-27 北京波士顿动力电池有限公司 Controller area network inboard communication circuit
CN106444713A (en) * 2016-10-20 2017-02-22 北京精密机电控制设备研究所 Multi-intelligent stand-alone servo control system based on dual redundant CAN bus communication
CN106789504A (en) * 2016-12-14 2017-05-31 新开普电子股份有限公司 Terminal called gathers front-end system
CN206726362U (en) * 2017-05-16 2017-12-08 深圳市万为物联科技有限公司 Integrated intelligent convenience service cabinet based on wechat platform
CN210670118U (en) * 2020-01-17 2020-06-02 烟台三环科技有限公司 Gun cabinet control management system based on CAN communication protocol
CN210954663U (en) * 2019-09-19 2020-07-07 广州市通泰电子实业有限公司 Cluster type lock control system
CN111915811A (en) * 2020-08-04 2020-11-10 递易(上海)智能科技有限公司 Method and equipment for controlling cabinet access by multiple hosts
CN112242028A (en) * 2020-09-02 2021-01-19 河南云易电子科技有限公司 Intelligent meal lifting cabinet and meal distribution system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101783759A (en) * 2010-01-19 2010-07-21 浙江吉利汽车研究院有限公司 Bus error recovery processing method
CN205195728U (en) * 2015-11-10 2016-04-27 北京波士顿动力电池有限公司 Controller area network inboard communication circuit
CN106444713A (en) * 2016-10-20 2017-02-22 北京精密机电控制设备研究所 Multi-intelligent stand-alone servo control system based on dual redundant CAN bus communication
CN106789504A (en) * 2016-12-14 2017-05-31 新开普电子股份有限公司 Terminal called gathers front-end system
CN206726362U (en) * 2017-05-16 2017-12-08 深圳市万为物联科技有限公司 Integrated intelligent convenience service cabinet based on wechat platform
CN210954663U (en) * 2019-09-19 2020-07-07 广州市通泰电子实业有限公司 Cluster type lock control system
CN210670118U (en) * 2020-01-17 2020-06-02 烟台三环科技有限公司 Gun cabinet control management system based on CAN communication protocol
CN111915811A (en) * 2020-08-04 2020-11-10 递易(上海)智能科技有限公司 Method and equipment for controlling cabinet access by multiple hosts
CN112242028A (en) * 2020-09-02 2021-01-19 河南云易电子科技有限公司 Intelligent meal lifting cabinet and meal distribution system

Similar Documents

Publication Publication Date Title
CN107181659B (en) Intelligent cabinet communication method and system based on RS485 bus
CN1881120B (en) Communication master station startup period control method
CN100413274C (en) Advanced switching peer-to-peer protocol
CN101277214B (en) Method and system for managing blade type server
CN103200078B (en) gateway, communication network and data processing method
CN115587065A (en) Master-slave machine control method, master-slave machine control system and blood cabinet
CN105022322B (en) Intelligent medicine-chest storage device
CN106603662A (en) Realizing method of comprehensive intelligent platform with homogenous Internet-of-things and Internet
CN103135732B (en) Server cabinet system
CN109857614A (en) A kind of disaster tolerance device and method of rack server
CN105549696B (en) Rack-mounted server system with case management function
CN206403474U (en) A kind of intelligent medicine-chest
CN101494564B (en) Apparatus for monitoring power supply and method for implementing veneer thermal backup
CN105739656A (en) Cabinet with automatic reset function and automatic reset method thereof
CN103186440B (en) Detect subcard method, apparatus and system in place
CN104238517B (en) Communication method of PROFIBUS-DPV1 communication master station
CN106201971A (en) A kind of railway signal safety computer platform based on bus synchronous verification
CN103677112A (en) Rack-mounted server system and operation method thereof
CN114495365A (en) Intelligent meal taking cabinet and control method thereof
CN102508469B (en) Intelligent management system for safety tools and appliances
CN108415866A (en) Intelligent platform management controller
CN115189985B (en) Modbus multi-master-station data planning and forwarding device
CN106250291A (en) The managing device of a kind of whole machine cabinet server and whole machine cabinet server
CN109395418A (en) Bus master-slave equipment determines method and system and its medium and bus apparatus
CN204965148U (en) Distributing type sensor network system based on NFC technique

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20220513

RJ01 Rejection of invention patent application after publication