CN112669521B - Vending machine initialization method, vending machine and readable storage medium - Google Patents

Vending machine initialization method, vending machine and readable storage medium Download PDF

Info

Publication number
CN112669521B
CN112669521B CN202011463900.1A CN202011463900A CN112669521B CN 112669521 B CN112669521 B CN 112669521B CN 202011463900 A CN202011463900 A CN 202011463900A CN 112669521 B CN112669521 B CN 112669521B
Authority
CN
China
Prior art keywords
vending machine
initialization
intermediate layer
hardware
parameters
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.)
Active
Application number
CN202011463900.1A
Other languages
Chinese (zh)
Other versions
CN112669521A (en
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 Zhilai Science and Technology Co Ltd
Original Assignee
Shenzhen Zhilai Science and 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 Zhilai Science and Technology Co Ltd filed Critical Shenzhen Zhilai Science and Technology Co Ltd
Priority to CN202011463900.1A priority Critical patent/CN112669521B/en
Publication of CN112669521A publication Critical patent/CN112669521A/en
Application granted granted Critical
Publication of CN112669521B publication Critical patent/CN112669521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an initialization method of a vending machine, which comprises the following steps: acquiring intermediate layer parameters corresponding to an intermediate layer of the vending machine, wherein the intermediate layer parameters comprise a station number, a password and an equipment nameplate number of the vending machine; generating message information according to the intermediate layer parameters, and sending the message information to a server, wherein the server acquires a configuration file corresponding to the vending machine according to the message information; and receiving the configuration file fed back by the server, and initializing the application in the vending machine according to the configuration file. The invention also discloses a vending machine and a readable storage medium. The invention simplifies the initialization process of the vending machine.

Description

Vending machine initialization method, vending machine and readable storage medium
Technical Field
The invention relates to the technical field of vending machines, in particular to an initialization method of a vending machine, the vending machine and a readable storage medium.
Background
The vending machine is a common automatic device for commercial automation, is not limited by time and place, can save manpower and facilitate transactions, and is a brand new commercial retail form, namely a micro supermarket with 24-hour business. However, the conventional vending machine corresponds to a piece of application software, and when the application software needs to be initialized, a configuration file needs to be manually input, so that the initialization process of the vending machine is complicated.
Disclosure of Invention
The invention mainly aims to provide an initialization method of a vending machine, the vending machine and a readable storage medium, and aims to solve the problem that the initialization process of the vending machine is complicated.
In order to achieve the above object, the present invention provides an initialization method of a vending machine, including the steps of:
acquiring intermediate layer parameters corresponding to an intermediate layer of a vending machine, wherein the intermediate layer parameters comprise a station number, a password and an equipment nameplate number of the vending machine;
generating message information according to the intermediate layer parameters, and sending the message information to a server, wherein the server acquires a configuration file corresponding to the vending machine according to the message information;
and receiving the configuration file fed back by the server, and initializing the application in the vending machine according to the configuration file.
In an embodiment, before the step of obtaining the intermediate layer parameter corresponding to the intermediate layer of the vending machine, the method further includes:
when an application of a vending machine is started and the application meets an initialization condition, judging whether a configuration file corresponding to the application is stored in the vending machine or not;
storing a configuration file corresponding to the application in the vending machine, and initializing the application according to the configuration file;
and when the vending machine does not store the configuration file corresponding to the application, executing the step of acquiring the intermediate layer parameters corresponding to the intermediate layer of the vending machine.
In an embodiment, after the step of initializing the application in the vending machine according to the configuration file, the method further includes:
according to the configuration file, the message transfer station is connected in a communication mode;
and receiving an instruction sent by the message transfer station so as to execute an operation corresponding to the instruction, wherein the server sends the instruction to the message transfer station, and the operation comprises at least one of advertisement carousel operation, goods selection operation, payment operation and goods delivery operation.
In an embodiment, after the step of obtaining the intermediate layer parameter corresponding to the intermediate layer of the vending machine, the method further includes:
acquiring information of hardware in the vending machine according to the intermediate layer parameters;
configuring initialization parameters of the hardware according to the information of the hardware;
and initializing the parameters of the hardware according to the initialization parameters.
In an embodiment, the step of configuring initialization parameters of the hardware according to the information of the hardware includes:
acquiring the use requirement of the vending machine;
and configuring initialization parameters of the hardware according to the use requirements and the information of the hardware.
In an embodiment, after the step of obtaining information about hardware in the vending machine according to the middle layer parameter, the method further includes:
determining a type of hardware in the vending machine;
and when the type is not a preset type, executing the step of configuring the initialization parameters of the hardware according to the information of the hardware.
In one embodiment, the step of initializing applications in the vending machine according to the configuration file comprises:
and sequentially performing interface display initialization, timing task starting initialization, network state initialization, advertisement carousel initialization, application running processing initialization, middle layer binding initialization and application initialization according to the configuration file.
In one embodiment, an application in the vending machine controls the vending machine's hardware through the intermediary layer.
To achieve the above object, the present invention also provides a vending machine comprising a memory, a processor, and an initialization program stored in the memory and executable on the processor, the initialization program, when executed by the processor, implementing the steps of the initialization method of the vending machine as described above.
To achieve the above object, the present invention also provides a readable storage medium including an initialization program, which when executed by a processor, implements the steps of the method for initializing a vending machine as described above.
According to the automatic vending machine initialization method, the automatic vending machine and the readable storage medium, the automatic vending machine obtains the intermediate layer parameters such as the station number, the password and the equipment nameplate number corresponding to the intermediate layer of the automatic vending machine, and then generates the message information according to the intermediate layer parameters, so that the message information is sent to the server, the server obtains the configuration file based on the intermediate layer parameters in the message information, and the automatic vending machine initializes the application of the automatic vending machine based on the configuration file fed back by the server. The vending machine can be numbered according to the station of the vending machine. The configuration files are obtained from the server through the intermediate layer parameters such as the passwords and the equipment name plate numbers, manual input of the configuration files to the vending machine is not needed, and the initialization process of the vending machine is simplified.
Drawings
Fig. 1 is a schematic diagram of a hardware configuration of a vending machine according to an embodiment of the present invention;
fig. 2 is a schematic flow chart diagram of a first embodiment of a vending machine initialization method according to the present invention;
FIG. 3 is a schematic flow chart illustrating a second embodiment of a vending machine initialization method of the present invention;
fig. 4 is a flow chart illustrating a third embodiment of the vending machine initialization method of the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The main solution of the embodiment of the invention is as follows: acquiring intermediate layer parameters corresponding to an intermediate layer of the vending machine, wherein the intermediate layer parameters comprise a station number, a password and an equipment nameplate number of the vending machine; generating message information according to the intermediate layer parameters, and sending the message information to a server, wherein the server acquires a configuration file corresponding to the vending machine according to the message information; and receiving the configuration file fed back by the server, and initializing the application in the vending machine according to the configuration file.
The vending machine can be numbered according to the station of the vending machine. The configuration files are obtained from the server through the intermediate layer parameters such as the passwords and the equipment name plate numbers, manual input of the configuration files to the vending machine is not needed, and the initialization process of the vending machine is simplified.
As shown in fig. 1, fig. 1 is a schematic diagram of a hardware structure of a vending machine according to an embodiment of the present invention.
As shown in fig. 1, an embodiment of the present invention relates to a vending machine. The vending machine may include: a processor 101, e.g. a CPU, a communication bus 102, a memory 103. Wherein the communication bus 102 is used for enabling connection communication between these components. The memory 103 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 103 may alternatively be a storage device separate from the aforementioned processor 101. Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the vending machine and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 103, which is a kind of computer storage medium, may include therein an initialization program.
In the apparatus shown in fig. 1, the processor 101 may be configured to call an initialization program stored in the memory 103 and perform the following operations:
acquiring intermediate layer parameters corresponding to an intermediate layer of a vending machine, wherein the intermediate layer parameters comprise a station number, a password and an equipment nameplate number of the vending machine;
generating message information according to the intermediate layer parameters, and sending the message information to a server, wherein the server acquires a configuration file corresponding to the vending machine according to the message information;
and receiving the configuration file fed back by the server, and initializing the application in the vending machine according to the configuration file.
In one embodiment, the processor 101 may call an initialization program stored in the memory 103, and further perform the following operations:
when an application of a vending machine is started and the application meets an initialization condition, judging whether a configuration file corresponding to the application is stored in the vending machine or not;
storing a configuration file corresponding to the application in the vending machine, and initializing the application according to the configuration file;
and when the vending machine does not store the configuration file corresponding to the application, executing the step of acquiring the intermediate layer parameters corresponding to the intermediate layer of the vending machine.
In one embodiment, the processor 101 may call an initialization program stored in the memory 103, and further perform the following operations:
according to the configuration file, the message transfer station is connected in a communication mode;
and receiving an instruction sent by the message transfer station so as to execute an operation corresponding to the instruction, wherein the server sends the instruction to the message transfer station, and the operation comprises at least one of advertisement carousel operation, goods selection operation, payment operation and goods delivery operation.
In one embodiment, the processor 101 may call an initialization program stored in the memory 103, and further perform the following operations:
acquiring information of hardware in the vending machine according to the intermediate layer parameters;
configuring initialization parameters of the hardware according to the information of the hardware;
and initializing the parameters of the hardware according to the initialization parameters.
In an embodiment, the step of configuring initialization parameters of the hardware according to the information of the hardware includes:
acquiring the use requirement of the vending machine;
and configuring initialization parameters of the hardware according to the use requirements and the information of the hardware.
In one embodiment, the processor 101 may call an initialization program stored in the memory 103, and further perform the following operations:
determining a type of hardware in the vending machine;
and when the type is not a preset type, executing the step of configuring the initialization parameters of the hardware according to the information of the hardware.
In one embodiment, the processor 101 may call an initialization program stored in the memory 103, and further perform the following operations:
and sequentially performing interface display initialization, timing task starting initialization, network state initialization, advertisement carousel initialization, application running processing initialization, intermediate layer binding initialization and application initialization according to the configuration file.
According to the scheme, the vending machine obtains intermediate layer parameters such as a station number, a password and an equipment nameplate number corresponding to the intermediate layer of the vending machine, and then generates message information according to the intermediate layer parameters to send the message information to the server, so that the server obtains the configuration file based on the intermediate layer parameters in the message information, and the vending machine initializes the application of the vending machine based on the configuration file fed back by the server. The vending machine can be numbered according to the station of the vending machine. Configuration files are obtained from the server through intermediate layer parameters such as passwords and equipment name plate numbers, manual input of the configuration files into the vending machine is not needed, and the initialization process of the vending machine is simplified.
Based on the above hardware architecture of the vending machine, an embodiment of the initialization method of the vending machine is provided.
With reference to fig. 2, fig. 2 shows a first embodiment of the vending machine initialization method according to the present invention, comprising the following steps:
s10, acquiring intermediate layer parameters corresponding to an intermediate layer of the vending machine, wherein the intermediate layer parameters comprise a station number, a password and an equipment nameplate number of the vending machine;
in this embodiment, the execution body is a vending machine. The vending machine comprises application software, an intermediate layer and hardware, wherein the intermediate layer is an application server, and the intermediate layer is formed by a three-layer network structure. The vending machine sets an intermediate level for the vending machine by installing an intermediate level software program of a universal version. The middle layer is used as a bridge for communicating the application software and the hardware, the middle layer detects that the hardware is controlled to shift by receiving and sending hexadecimal instructions, and receives the callback of success or failure overtime sent back by the control panel, so that the aim of controlling the hardware to start and stop by the application software is fulfilled. That is, in this embodiment, the application in the vending machine controls the hardware of the vending machine through the middle layer. The middle layer is provided with middle layer parameters, and the middle layer parameters are set through middle layer application software of a universal version. Set up the intermediate level parameter and be exactly the hardware information input to the intermediate level of vending machine for the vending machine learns how many goods of self are said, the type of goods way (the goods is said and is included spring type goods way and track type goods way), what number of detection switch, motor and motor correspond which goods way based on the intermediate level parameter, and the purpose that also sets up the intermediate level parameter is in order to make vending machine can learn the hardware information of self. For example, the parameters of the middle layer comprise identification numbers of a plurality of driving plates for grouping cabinets, serial port addresses, baud rate, infrared article detection switches, line number and column number, overtime time of goods taking instructions and goods arrival types. In addition, the function of setting the parameters of the middle layer is to set specific parameters for each type of different vending machines, so that the middle layer of the universal edition can be suitable for various types of vending machines.
In addition, the intermediate layer parameters also include the station number, the password and the equipment nameplate number of the automatic vending machine. The website number represents the position of the vending machine, the password is the password of the vending machine connecting server, and the equipment nameplate number represents the model of the vending machine. The intermediate level in this embodiment is applicable to big screen money, little screen money, 620 big screen money, 620 little screen money, the vending machine of one drags many general type owner cabinets, and the intermediate level is applicable to the vending machine of net gape and serial ports opening door board, is applicable to the vending machine of 55 cun big screens and 7 cun little screen vending machines, and is applicable to the little screen vending machine who takes lift goods fill and do not take lift goods fill, and need not the intermediate level that specially means vending machine development corresponds.
When the vending machine needs to initialize the application of the vending machine, the station number, the password and the intermediate parameter of the equipment nameplate number of the vending machine are obtained. For example, vending machines are first used after shipment, requiring initialization of the application. At this moment, the vending machine acquires the intermediate layer parameters corresponding to the intermediate layer.
And S20, generating message information according to the intermediate layer parameters, and sending the message information to a server, wherein the server acquires a configuration file corresponding to the vending machine according to the message information.
After the vending machine obtains the middle layer parameters, message information is generated by the middle layer parameters, and then the message information is sent to the server. In this embodiment, the intermediate layer parameters refer to a site number, a password, and an equipment nameplate number. After receiving the message information, the server can obtain the configuration file corresponding to the message information and then send the configuration file to the vending machine.
And S30, receiving the configuration file fed back by the server, and initializing the application in the automatic vending machine according to the configuration file.
After receiving the configuration file fed back by the server, the vending machine can initialize the application in the vending machine according to the configuration file. The application initialization comprises configuration file initialization, log level initialization, local database initialization and page activity stack creation.
It should be noted that the vending machine may store a configuration file of the application in advance. Thus, after the application of the vending machine is started, it is first determined whether the application satisfies the initialization conditions. The initialization condition may be that the vending machine receives an initialization instruction for the application, or that the application is first started. If the application meets the initialization condition, whether the configuration file corresponding to the application is stored in the vending machine or not needs to be determined. And if the configuration file is stored, directly initializing the application according to the configuration file. If the configuration file corresponding to the application is not stored in the vending machine, acquiring the intermediate layer parameters corresponding to the intermediate layer, further acquiring the configuration file corresponding to the intermediate layer parameters from the server, and finally initializing the application according to the configuration file.
In the technical scheme provided by this embodiment, the vending machine obtains intermediate layer parameters such as a site number, a password, and an equipment nameplate number corresponding to an intermediate layer of the vending machine, and then generates message information according to the intermediate layer parameters to send the message information to the server, so that the server obtains a configuration file based on the intermediate layer parameters in the message information, and the vending machine initializes the application of the vending machine based on the configuration file fed back by the server. The vending machine can be numbered according to the station of the vending machine. Configuration files are obtained from the server through intermediate layer parameters such as passwords and equipment name plate numbers, manual input of the configuration files into the vending machine is not needed, and the initialization process of the vending machine is simplified.
In one embodiment, the vending machine communicates with the message transfer station based on the configuration file after initializing the application in the vending machine according to the configuration file. The Message transfer station may be an mqtt Message transfer station, that is, data is transmitted between the vending machine and the mqtt Message transfer station through an mqtt protocol (Message queue Telemetry Transport protocol).
Specifically, the parameters of the middle layer include site numbers 1005-0100005, a password 123456, a nameplate number SA2019010001, a line number 6 and a column number 10 of a certain site in shenzhen southern mountain, the erase books are uploaded to the server in the form of a message, configuration files of the vending machine of the site are obtained from the server in the form of a message, the configuration files include a message transfer station address 192.168.1.1, an mqtt message transfer station login account user, a password 123456, a manufacturer number 00101203 and the like, the vending machine logs in an mqtt message transfer station according to the obtained configuration information, and login and connection of services of the mqtt message transfer station are kept under a heartbeat mechanism. The message transfer station is connected with the server in a communication way, and the vending machine is connected with the server through the message transfer station. It should be noted that the transmission protocol between the message relay station and the server is http protocol, and the transmission protocol between the vending machine and the message relay station is mqtt protocol. After the vending machine logs in the mqtt message transfer station, long connection between the mqtt message transfer station and the mqtt message transfer station is kept through a heartbeat detection medium, and an instruction generated by the message transfer station can be received to execute an operation corresponding to the instruction, the instruction is sent to the message transfer station as a server, and the message transfer station forwards the instruction to the vending machine. The operations include at least one of advertisement carousel operations, selection operations, payment operations, and shipment operations.
Referring to fig. 3, fig. 3 is a second embodiment of the method for initializing a vending machine according to the present invention, and based on the first embodiment, after step S30, the method further includes:
s40, acquiring information of hardware in the vending machine according to the intermediate layer parameters;
s50, configuring initialization parameters of the hardware according to the information of the hardware;
and S60, initializing the parameters of the hardware according to the initialization parameters.
In this embodiment, the vending machine may also initialize its hardware parameters based on the middle tier parameters. In particular, the intermediate level parameters also include information about the vending machine's hardware. The vending machine acquires the information of the hardware based on the parameters of the middle layer, and configures the initialization parameters of the hardware according to the information of the hardware, so that the hardware is initialized according to the initialization parameters. The following examples are given.
Assuming that the vending machine has 3 sub-cabinets, namely the vending machine comprises 3 door opening plates, and each door opening plate controls 60 grids, the door opening plates are set to be numbered pcb _1, pcb _2 and pcb _3; setting the initial cabinet number of each door as 1, 60 and 121; setting door opening dial numbers as 1, 2 and 3; the control number of each door opening plate is set to be 12, 12 and 12; the initial numbers of each opening door panel are set as 1, 1 and 1. When the door opening plate of the vending machine is a serial opening plate, the serial number of the door opening plate is set to be 1; setting a serial port address to ttymxc1 and setting baud rates to default values of 9600; setting the number of rows and the number of columns as 6 and 10; setting an infrared article detection switch to be started; setting the timeout time to 60000 milliseconds; the goods channel type is set as a crawler goods channel, serial numbers of the crawler goods channel are filled in, the serial numbers are separated by "-", and if the crawler goods channel is in a first row and a third row, the serial numbers are filled in 1-3. The information of the door opening plate, the type of the goods channel and the like is the information of hardware, and the parameters of the serial number, the cabinet number, the baud rate and the like are initialization parameters.
In addition, the setting of the initialization parameters may also be combined with the usage requirements of the vending machine. The use requirement can be understood as the use requirement of the merchant, namely what kind of goods the merchant needs to sell through the vending machine. For example, if a user needs to sell a heavy product, the type of the goods channel is set to be a spring-type goods channel, that is, the vending machine can push out a product with a certain weight through the goods channel. If the usage demand is a light weight commodity, the commodity cannot be pushed out and can only be conveyed, and therefore, the goods passage type is set to be a track type. It will be appreciated that the vending machine configures the initialization parameters of the hardware according to the requirements of use and the information of the hardware.
In addition, not all hardware in the vending machine is initialized with parameters. For example, when the door opening plate of the vending machine is the net opening door plate, the identification number of the drive plate of the door opening plate, the serial port address and the baud rate do not need to be set, because each net opening door plate has a corresponding IP address, the net opening is IP controlled, and the IP address of the door opening plate is set in the configuration file. To this end, the vending machine is provided with the preset type of hardware, for example, the preset type of the door opening plate is set as the net opening door opening plate. If the type of the hardware is not the preset type, parameter initialization needs to be performed on the hardware, that is, the initialization parameter of the hardware is configured according to the information of the hardware, and then parameter initialization is performed on the hardware according to the initialization parameter.
In the technical scheme provided by this embodiment, the vending machine can acquire information of hardware in the vending machine according to the intermediate layer parameters, and initialize the hardware based on the information of the hardware.
Referring to fig. 4, fig. 4 is a third embodiment of the method for initializing a vending machine according to the present invention, wherein step S30 includes, based on the first or second embodiment:
and step S31, sequentially performing interface display initialization, timing task starting initialization, network state initialization, advertisement carousel initialization, application running processing initialization, middle layer binding initialization and application initialization according to the configuration file.
In this embodiment, before initializing the application, the vending machine further needs to perform interface display initialization, timing task start initialization, network state initialization, advertisement carousel initialization, application running process initialization, and middle-layer binding initialization based on the configuration file.
The automatic vending machine initializes the interface display, including acquiring and binding interface control numbers, setting control properties and giving operation methods for clicking, double-clicking, long-pressing, sliding and other operations. For example, the control is a button, the setting button is displayed in the center of the screen, and the button number is bound with the single-click monitored event, the single-click displayed text is given, that "cabinet No. 1 door is opened, please take goods! "double-click, long-press, slide, and the like, and display corresponding text information.
The starting initialization of the vending machine to the timing task comprises the starting of heartbeat of a vending machine terminal, an mqtt message transfer station request and an order reporting task.
The terminal program of the vending machine initializes the network state and the advertisement carousel map and comprises the starting of the display of the advertisement module and the network state of the vending machine. For example, when an advertisement module of the vending machine is initialized, a video in mp4 format and a picture in jpg format are uploaded on a vending machine management platform, and a playing interval is set to be 5 minutes, the vending machine acquires the video and the picture from a server in a message form to a playing path, and sequentially plays the uploaded video in mp4 format and the uploaded picture in jpg format under the condition of good network state, so that the function of initializing the advertisement module is achieved.
The vending machine initiating the program crash process includes collecting crash error information and sending an error information reporting task to initiate. For example, the vending machine collects crash error information during program initialization and sends an error report; and determining that the null pointer abnormality occurs in the program according to the error report, wherein the null pointer abnormality is displayed on a screen of the vending machine in a text form, so that a developer can conveniently find an error point, and a user can conveniently restart the button, click the restart button and restart the program.
The vending machine binds the initialization to the middle layer for binding with the middle layer, controlling the hardware logic. For example, initializing a binding intermediate layer, and if the vending machine binds the intermediate layer corresponding to the serial port opening door panel and the binding fails, circularly calling a method for re-binding the intermediate layer. If the binding is successful and the user selects to deliver the goods, the vending machine calls a delivery interface of the successfully bound middle layer, and transmits a hexadecimal command to the lower computer through the middle layer, so that the motor of the lower computer rotates, and the delivery is successful.
In this embodiment, the vending machine performs interface display initialization, timing task start initialization, network state initialization, advertisement carousel initialization, application running process initialization, middle layer binding initialization, and application initialization in sequence according to the configuration file, thereby completing initialization of the vending machine.
The invention also provides a vending machine comprising a memory, a processor and an initialization program stored in the memory and executable on the processor, the initialization program, when executed by the processor, implementing the steps of the method of initializing a vending machine as described in the above embodiments.
The invention also provides a readable storage medium comprising an initialization program which, when executed by a processor, carries out the steps of the method for initializing a vending machine as described in the above embodiments.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a component of' 8230; \8230;" does not exclude the presence of another like element in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. 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 (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (7)

1. A vending machine initialization method, comprising the steps of:
acquiring intermediate layer parameters corresponding to an intermediate layer of the vending machine, wherein the intermediate layer parameters comprise a station number, a password and an equipment nameplate number of the vending machine, and the intermediate layer parameters are set through intermediate layer application software of a universal version;
generating message information according to the intermediate layer parameters, and sending the message information to a server, wherein the server acquires a configuration file corresponding to the vending machine according to the message information;
receiving a configuration file fed back by the server, and sequentially performing interface display initialization, timing task starting initialization, network state initialization, advertisement carousel initialization, application running processing initialization, intermediate layer binding initialization and application initialization according to the configuration file;
connecting a message transfer station according to the configuration file in a communication manner, wherein the message transfer station is an mqtt message transfer station;
receiving an instruction sent by the message transfer station to execute an operation corresponding to the instruction, wherein the server sends the instruction to the message transfer station, and the operation comprises at least one of advertisement carousel operation, goods selection operation, payment operation and goods delivery operation;
wherein, after the step of obtaining the intermediate level parameter that the intermediate level of vending machine corresponds, still include:
acquiring information of hardware in the vending machine according to the intermediate layer parameters;
configuring initialization parameters of the hardware according to the information of the hardware;
and initializing the parameters of the hardware according to the initialization parameters.
2. The method for initializing a vending machine according to claim 1, wherein, before the step of obtaining intermediate layer parameters corresponding to an intermediate layer of the vending machine, the method further comprises:
when an application of a vending machine is started and the application meets an initialization condition, judging whether a configuration file corresponding to the application is stored in the vending machine or not;
storing a configuration file corresponding to the application in the vending machine, and initializing the application according to the configuration file;
and when the vending machine does not store the configuration file corresponding to the application, executing the step of acquiring the intermediate layer parameters corresponding to the intermediate layer of the vending machine.
3. The vending machine initialization method of claim 1, wherein the step of configuring the initialization parameters of the hardware according to the information of the hardware comprises:
acquiring the use requirement of the vending machine;
and configuring initialization parameters of the hardware according to the use requirements and the information of the hardware.
4. The vending machine initialization method of claim 1, further comprising, after the step of obtaining information about hardware in the vending machine based on the intermediate level parameters:
determining a type of hardware in the vending machine;
and when the type is not a preset type, executing the step of configuring the initialization parameters of the hardware according to the information of the hardware.
5. A method of initializing a vending machine according to any of claims 1-4, wherein an application in the vending machine controls the hardware of the vending machine through the intermediate layer.
6. A vending machine comprising a memory, a processor, and an initialization program stored in the memory and executable on the processor, the initialization program when executed by the processor implementing the steps of the method of initializing a vending machine as claimed in any one of claims 1 to 5.
7. A readable storage medium, characterized in that it comprises an initialization program which, when executed by a processor, carries out the steps of the method for initializing a vending machine as claimed in any one of claims 1 to 5.
CN202011463900.1A 2020-12-11 2020-12-11 Vending machine initialization method, vending machine and readable storage medium Active CN112669521B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011463900.1A CN112669521B (en) 2020-12-11 2020-12-11 Vending machine initialization method, vending machine and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011463900.1A CN112669521B (en) 2020-12-11 2020-12-11 Vending machine initialization method, vending machine and readable storage medium

Publications (2)

Publication Number Publication Date
CN112669521A CN112669521A (en) 2021-04-16
CN112669521B true CN112669521B (en) 2022-12-20

Family

ID=75405503

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011463900.1A Active CN112669521B (en) 2020-12-11 2020-12-11 Vending machine initialization method, vending machine and readable storage medium

Country Status (1)

Country Link
CN (1) CN112669521B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IT202100013334A1 (en) * 2021-05-24 2022-11-24 Orasesta S P A Multifunctional equipment and control system of vending machine and vending machine comprising said equipment
CN115131912A (en) * 2022-06-29 2022-09-30 深圳市智莱科技股份有限公司 Initialization method, device, equipment and storage medium of Bluetooth cabinet

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973474A (en) * 2013-02-01 2014-08-06 苏州方位通讯科技有限公司 Network terminal update configuration method
CN110493055A (en) * 2019-08-23 2019-11-22 苏州浪潮智能科技有限公司 FPGA card configuration method, device, system and readable storage medium storing program for executing

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030200299A1 (en) * 2002-04-23 2003-10-23 International Business Machines Corporation Method and system for providing pervasive computing services through a middle tier service provider utilizing public wired and/or wireless communication networks
CN103544127B (en) * 2013-10-21 2017-04-12 北京友宝在线科技股份有限公司 Method for communication between automatic display cabinet and industrial computer
CN108235101B (en) * 2017-12-28 2021-04-16 深圳Tcl数字技术有限公司 Smart television initialization method, smart television and computer readable storage medium
CN110634230B (en) * 2019-09-06 2021-12-07 深圳市智莱科技股份有限公司 Method for information interaction between application program of vending machine and hardware equipment
CN111245930A (en) * 2020-01-09 2020-06-05 深圳壹账通智能科技有限公司 Cross-platform message pushing method and device, computer equipment and storage medium
CN111796849A (en) * 2020-07-14 2020-10-20 深圳市智莱科技股份有限公司 Firmware remote upgrading method and device
CN111880852B (en) * 2020-07-28 2022-06-07 平安科技(深圳)有限公司 Operating system initialization method, system, computer device and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973474A (en) * 2013-02-01 2014-08-06 苏州方位通讯科技有限公司 Network terminal update configuration method
CN110493055A (en) * 2019-08-23 2019-11-22 苏州浪潮智能科技有限公司 FPGA card configuration method, device, system and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN112669521A (en) 2021-04-16

Similar Documents

Publication Publication Date Title
CN112669521B (en) Vending machine initialization method, vending machine and readable storage medium
US10177992B2 (en) Application store interface for remote management of client devices
CN101248472B (en) Local intercept methods, such as applications for providing customer assistance for training, information calls and diagnostics
US8769038B2 (en) Remote device diagnostic and repair apparatus and methods
RU2380742C2 (en) Automatic personalisation or configuration of mobile device
CN110166427A (en) Security processing that businessman's management equipment uses, apparatus and system
WO1991007839A1 (en) Computer and telephone apparatus with user friendly computer interface and enhanced integrity features
CN103618710A (en) Individual processing method and device of file between mobile device and computing device
CN104067276A (en) Client-side minimal download and simulated page navigation features
CN105094877B (en) The method and host-side device and system of a kind of firmware upgrade
CN106060676A (en) Online interaction method and apparatus based on live streaming
CN103200022B (en) A kind of data download abnormality eliminating method, equipment and system
CN109039993B (en) Live broadcast application configuration method and device and storage medium
CN105337933A (en) Method and system for creating sub-account, primary account device and sub-account device
CN109862076A (en) A kind of service data interaction methods, devices and systems
CN107749813A (en) Account management method, device, storage medium, equipment, server and terminal
CN108346095B (en) Management and control method, device and equipment of combined system and computer readable storage medium
CN113240301A (en) Production work reporting system, production work reporting method, electronic device and readable storage medium
CN108170336A (en) A kind of terminal desktop application display control method and system
CN103078879A (en) Certification system and method for user registration
CN106815497B (en) A kind of interface processing method, electronic equipment and graphic user interface
CN110968491B (en) Operation and maintenance operation method and system
CN113095802A (en) Bridging system based on face brushing equipment and use method thereof
CN112769672B (en) Data communication method and device and communication configuration method and device
Gordillo et al. Digital Mobile Onboarding in Switzerland–a Hands-on Experience

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant