Disclosure of Invention
Accordingly, it is an object of the present invention to provide a vending machine with multiple communication modules that overcomes or at least partially solves the above-mentioned problems of the prior art.
In order to achieve the above-mentioned purpose, the invention provides an intelligent vending machine with multiple communication modules, which comprises a box body and a PCBA electronic main board, wherein a plurality of boxes are arranged on the box body, each box is used for storing commodities, a box door and a locking mechanism are arranged on each box, the locking mechanism is used for locking the box door, a processor, a memory, a close-range communication module and a hot-plug interface are integrated on the PCBA electronic main board, the hot-plug interface is used for inserting a selected communication module, the close-range communication module and the locking mechanism are respectively connected with a processor through the hot-plug interface, the selected communication module is connected with the processor through the hot-plug interface, the selected communication module comprises a first alternative communication module and a second alternative communication module, the first alternative communication module and the second alternative communication module are respectively used for realizing remote data interaction between the processor and an upper computer through different communication technologies, the vending machine can select different selected communication modules to be inserted into the hot-plug interface according to local network conditions when the vending machine is deployed, the selected communication modules can be matched with the user interface to normally, and the user interface can be normally accessed to the vending machine through the selected communication modules when the selected communication modules are switched to the user interface, and the user interface can normally access the data to the vending machine through the selected communication modules when the selected communication modules to the user interface and the user interface can normally access the user interface to the user interface.
Further, when the first alternative communication module cannot normally access the network, the processor is further configured to acquire and identify network access failure information fed back by the first alternative communication module, and if the network access failure information is identified as a password error, acquire a password of the user terminal accessing the network from the user terminal when the short-range communication module is connected to the user terminal, and send the password to the first alternative communication module, so that the first alternative communication module attempts to access the network through the acquired password.
Further, be provided with charge mouth and current sensor on the box, charge mouth and power pass through the circuit electricity and be connected, be provided with the circuit breaker in the circuit between charge mouth and the power, current sensor links to each other with the treater signal for whether detect to charge and have the electric current to produce in the mouth, the treater still is used for counting the charge mouth that current sensor detected and produces the electric current time.
Further, when the optional communication module works normally and the current sensor detects that the charging port generates current, the current sensor is connected with the user terminal through the close range communication module, the charging state information of the user terminal is obtained, whether the user terminal is in a charging state or not is judged, if the user terminal is in the charging state, the charging cost is calculated according to the counted current generation time of the charging port, the charging cost is sent to the upper computer, and the upper computer sends the charging cost to an electronic account associated with the user terminal for settlement; if the user terminal is not in the charging state, the circuit between the charging port and the power supply is cut off through the circuit breaker.
Further, when the optional communication module cannot work normally, the processor is further configured to obtain charging duration setting information and pre-payment settlement information of the user terminal through the close range communication module, control the circuit breaker to control the time for closing the circuit between the charging port and the power supply according to the charging duration setting information, and after the pre-payment settlement information is sent to the upper computer by the user terminal, calculate prepaid charging cost according to the charging duration setting information, and obtain settlement information after the user terminal performs online payment according to the prepaid charging cost.
Further, the box is provided with a device searching button, the device searching button is connected with the processor through signals, and the processor is further used for attempting to connect all the peripheral connectable terminal devices through the short-range communication module when the device searching button is triggered, and sending a ringing instruction to the terminal device when the short-range communication module is connected with the terminal device, so that the terminal device rings.
Further, the compartment is further provided with a commodity detection component, the commodity detection component is used for detecting whether the commodity in the compartment is taken out and is in signal connection with the processor, the processor is further used for acquiring an authorization instruction of the user terminal, the authorization instruction comprises electronic account information associated with the user terminal and confirmation-free payment authority information, after the authorization instruction is acquired, the close range communication module periodically tries to establish communication with peripheral user terminals, after the close range communication module establishes communication with the user terminal, the user terminal is verified to be authorized, when the user terminal is authorized, the locking mechanism is controlled to unlock all the doors, the taken-out commodity information detected by the commodity detection component is acquired, commodity amount is calculated according to the taken-out commodity information, and the expense for the commodity amount is deducted from the corresponding electronic account according to the electronic account information associated with the user terminal.
Further, the processor can verify whether the user terminal connected to the short-range communication module is authorized by:
the processor also acquires a personal hot spot password of the user terminal when acquiring an authorization instruction of the user terminal, and after the close-range communication module is connected with the user terminal, the processor sends a personal hot spot opening instruction to the user terminal, and tries to connect the personal hot spot opened by the user terminal by using the acquired personal hot spot password through the optional communication module, and if the optional communication module is successful in connecting the personal hot spot, the processor judges that the user terminal is authorized; if the connection of the selected communication module to the personal hot spot fails, the user terminal is judged to be unauthorized.
Further, an audio playing component is further arranged on the box body and is in signal connection with the processor, the processor is further used for acquiring user body monitoring data acquired by the user terminal when the close-range communication module is connected to the user terminal, acquiring external environment information through the optional communication module, inquiring a recommendation strategy database according to the user body monitoring data and the external environment information to acquire a corresponding recommendation strategy, and controlling the audio playing component to play commodity recommendation information to the user according to the inquiry result.
Further, the processor is further configured to record information of the commodity purchased by the user after the commodity recommendation information is played to the user, count types of the commodity finally purchased by the user under the influence of different body detection data, external environment information and commodity recommendation information, and update the recommendation policy database according to the statistical result.
Compared with the prior art, the invention has the beneficial effects that:
1. the PCBA electronic main board of the vending machine is provided with a hot plug interface, and the hot plug interface can be selectively connected with a first standby communication module or a second standby communication module according to the network environment of the deployment position of the vending machine, so that the vending machine can work in different network environments, and the application range is wide;
2. the processor of vending machine carries out data interaction through selecting and joining in marriage communication module and host computer when selecting and joining in marriage communication module and can be switched to near-range communication module and user terminal and carry out the communication when selecting and joining in marriage communication module can normally work thereby provide commodity sales service for the user, so that vending machine also can normally work under the off-line condition, and interference killing feature is strong.
Detailed Description
The principles and features of the present invention are described below with reference to the drawings, the illustrated embodiments are provided for the purpose of illustrating the invention and are not to be construed as limiting the scope of the invention.
Referring to fig. 1 and 2, this embodiment provides an intelligent vending machine with multiple communication modules, the vending machine includes box 1 and PCBA electronic motherboard, be equipped with a plurality ofcell 2 on the box 1,cell 2 is used for depositing commodity, and everycell 2 all is equipped withchamber door 3 andlocking mechanism 4,locking mechanism 4 is used forlocking chamber door 3. The PCBA electronic main board is integrated with aprocessor 5, amemory 6, a close-range communication module 7 and a hot plug interface 8, wherein the hot plug interface 8 is used for inserting an optional communication module 9. The closerange communication module 7 and thelocking mechanism 4 are respectively connected with theprocessor 5 through signals, and the optional communication module 9 is connected with theprocessor 5 through signals through a hot plug interface 8. The optional communication module 9 includes a first alternative communication module and a second alternative communication module, where the first alternative communication module and the second alternative communication module are respectively used to access the network through different communication technologies to implement remote data interaction between theprocessor 5 and the upper computer. When the vending machine is deployed, a worker can select different alternative communication modules to be plugged into the hot plug interface 8 according to the local network condition of the deployment position. When the optional communication module 9 can normally access the network, theprocessor 5 performs data interaction with the upper computer through the optional communication module 9, so that the upper computer can acquire vending machine operation data. When the optional communication module 9 cannot normally access the network, theprocessor 5 is switched to the close-range communication module 7 to communicate with the user terminal to provide commodity sales service for the user, sales data is temporarily stored in thememory 6, and when the optional communication module 9 resumes normal operation, the sales data is uploaded to the upper computer through the optional communication module 9.
For example, the near field communication module in the above embodiment may be a bluetooth communication module or an NFC communication module or other near field communication modules. The first alternative communication module can adopt a WiFi module; the second alternative communication module may be a 2G/4G/5G communication module or other communication modules. The user terminal is terminal equipment such as a smart phone and a tablet personal computer. The upper computer can be a computer, a server or the like. Thelocking mechanism 4 can adopt an electric control lock. The optional communication module 9 may be a first alternative communication module when the vending machine is deployed with a WiFi network; when the vending machine is deployed without a WiFi network but the mobile communication network signal is good, a second alternative communication module can be used.
In some embodiments, when a user needs to purchase a commodity, the user can scan a two-dimensional code arranged on the box body 1 through the user terminal, jump to an online sales page of a corresponding vending machine through the two-dimensional code, select the commodity to be purchased through the online sales page, settle the commodity, acquire commodity information required to be purchased by the user through a host computer after settlement, send the commodity information to theprocessor 5 through a network, and theprocessor 5 controls thelocking mechanism 4 of thecorresponding box 2 to unlock thebox door 3, so that the user can open thebox door 3 to take the commodity in thebox 2.
In other embodiments, a touch screen is further disposed on the case 1, and the touch screen is in signal connection with theprocessor 5. When a user needs to purchase goods, the goods to be purchased are selected through the touch screen, the processor generates a payment two-dimensional code according to the goods to be purchased by the user, after the user scans the payment two-dimensional code through the user terminal to carry out online payment, the upper computer sends information of payment completion to theprocessor 5, after theprocessor 5 receives the information of payment completion of the user, thelocking mechanism 4 of thecorresponding cell 2 is controlled to unlock thebox door 3, and the user can open thebox door 3 to take the goods in thecell 2.
Specifically, when the optional communication module 9 cannot normally access the network, theprocessor 5 cannot communicate with the upper computer to obtain settlement information of the user, at this time, theprocessor 5 switches to the close-range communication module 7 and establishes communication with the user terminal, after the user finishes paying, theprocessor 5 obtains payment settlement information of the user terminal through the close-range communication module 7, judges whether the user finishes paying according to the payment settlement information, and if the user finishes paying, controls thelocking mechanism 4 of thecorresponding cell 2 to unlock thebox door 3 so that the user can take the commodity, and records commodity data sold this time in thememory 6. If the optional communication module 9 resumes the connection with the network, theprocessor 5 uploads the temporarily stored commodity sales data to the upper computer through the optional communication module 9.
As an alternative implementation manner, when the first alternative communication module cannot normally access the network, theprocessor 5 is further configured to acquire and identify network access failure information fed back by the first alternative communication module, and if the network access failure information is identified as a password error, acquire, when the short-range communication module 7 is connected to the user terminal, a password of the user terminal for accessing the network from the user terminal, and send the password to the first alternative communication module, so that the first alternative communication module attempts to access the network through the acquired password.
For example, when the selected communication module is the first alternative communication module, if the password of the access hotspot is changed, the first alternative communication module may not be able to access the network. According to the intelligent vending machine provided by the embodiment, when the first alternative communication module cannot normally access the network, theprocessor 5 is connected to the user terminal which is normally accessed to the local wireless network through the short-distance communication module 7, and the user terminal acquires the password used by the user terminal to access the wireless network, so that the first alternative communication module can be reconnected to the network through the newly acquired password, and the situation that the vending machine cannot perform data interaction with an upper computer due to the fact that the WiFi network periodically updates the password is avoided.
As an alternative embodiment, the box 1 is provided with acharging port 10 and acurrent sensor 11, thecharging port 10 is electrically connected with a power supply 12 through a circuit, acircuit breaker 13 is arranged in the circuit between thecharging port 10 and the power supply 12, thecurrent sensor 11 is in signal connection with aprocessor 5, and is used for detecting whether current is generated in thecharging port 10, and theprocessor 5 is also used for counting the time of the current generated by the charging port detected by the current sensor.
In this embodiment, when the electric quantity of the user terminal is low, the user terminal may be connected to thecharging port 10 through the data connection line, so that the user terminal may be charged through thecharging port 10.
Specifically, when the optional communication module 9 works normally and thecurrent sensor 11 detects that thecharging port 10 generates current, the user terminal is connected through the closerange communication module 7, the charging state information of the user terminal is obtained, whether the user terminal is in a charging state is judged, and if the user terminal is in the charging state, the user terminal is indicated to be capable of being charged normally through thecharging port 10. At this time, theprocessor 5 calculates charging cost according to the counted current time generated by thecharging port 10, and sends the charging cost to the upper computer, and the upper computer sends the charging cost to an electronic account associated with the user terminal for settlement; if the user terminal is not in the charging state, which means that the user terminal connected to the short-range communication module 7 is not a charging user terminal, thecircuit breaker 13 cuts off the line between the charging port and the power supply.
When the optional communication module 9 cannot work normally, theprocessor 5 is further configured to obtain charging duration setting information and prepayment settlement information of the user terminal through the closerange communication module 7, where the charging duration setting information is charging time expected by a user, and theprocessor 5 controls the duration of the circuit breaker for controlling the circuit closure between the charging port and the power supply according to the charging duration setting information, so as to control the charging time of the user. And the pre-payment settlement information is settlement information obtained after the user terminal carries out online payment according to the pre-payment charge fee by calculating the pre-payment charge fee by the upper computer according to the charge time length setting information after the user terminal sends the charge time length setting information to the upper computer. In this embodiment, when the vending machine cannot perform data interaction with the upper computer through the optional communication module 9, theprocessor 5 can also communicate with the user terminal through the closerange communication module 7 to realize the charging function of payment under the condition of no network.
As an optional implementation manner, the box is provided with a device searching button, the device searching button is in signal connection with theprocessor 5, and theprocessor 5 is further configured to attempt to connect all the peripheral connectable terminal devices through the short-range communication module 7 when the device searching button is triggered, and send a ringing instruction to the terminal devices when the short-range communication module 7 establishes connection with the terminal devices, so that the terminal devices ring.
The intelligent vending machine provided by the embodiment can be arranged in a hotel room, when a check-in client forgets where to place the terminal equipment and is difficult to find, the key can be searched through the trigger equipment, and theprocessor 5 controls the near-field communication module 7 to be connected with the peripheral connectable terminal equipment and make the terminal equipment sound, so that the user can find the terminal equipment quickly, and the use experience of the user is improved.
As an alternative embodiment, thecompartment 2 is further provided with a commodity detecting means for detecting whether the commodity in thecompartment 2 is taken out or not and is in signal connection with theprocessor 5. Theprocessor 5 is further configured to obtain an authorization instruction of the user terminal, where the authorization instruction includes electronic account information associated with the user terminal and confirmation-free payment permission information. After the authorization instruction is acquired, the close-range communication module 7 periodically tries to establish communication with peripheral user terminals, after the close-range communication module 7 establishes communication with the user terminals, the user terminals are verified to be authorized, when the user terminals are authorized, thelocking mechanism 4 is controlled to unlock all thebox doors 3, the information of the taken-out commodity detected by the commodity detection part is acquired, commodity amount is calculated according to the information of the taken-out commodity, and the expense with the commodity amount is deducted from the corresponding electronic account according to the electronic account information associated with the user terminals.
The commodity detection means may illustratively employ a piezoelectric film sensor disposed within thecompartment 2, which generates a corresponding electrical signal to theprocessor 5 when a commodity is placed on or lifted from the piezoelectric film sensor. In general, a user needs to take out a user terminal to perform payment operation every time the user purchases a commodity in the vending machine, and the operation is complicated. In this embodiment, when a user needs to purchase goods for multiple times, an authorization instruction for a corresponding vending machine can be initiated to an upper computer after scanning a two-dimensional code on a vending machine box 1, the upper computer forwards the authorization instruction to a processor 5 of the corresponding vending machine, the processor 5 confirms whether a user terminal is authorized or not through a close-range communication module 7, when the authorized user terminal is in the periphery, the processor 5 directly controls a locking mechanism 4 to unlock the box doors 3 of all boxes 2, the user can take out the goods at will, when the processor 5 detects that the goods in any box 2 are taken out through a goods detection component, since different goods are placed in the boxes 2 in a fixed position, the taken out goods information can be judged according to the boxes 2 where a piezoelectric film sensor sending an electric signal is located, and the commodity amount of money is calculated, and the money of the commodity amount of money is directly deducted from an electronic account associated with the user through confirmation-free payment information, so that the user can pay for the commodity amount manually through a terminal device, and the use experience of the user is further improved when the user purchases at every time is not required.
As a further alternative embodiment, the processor can verify whether the user terminal to which the short-range communication module is connected is authorized by:
the processor also acquires a personal hot spot password of the user terminal when acquiring an authorization instruction of the user terminal, and after the close-range communication module is connected with the user terminal, the processor sends a personal hot spot opening instruction to the user terminal, and tries to connect the personal hot spot opened by the user terminal by using the acquired personal hot spot password through the optional communication module, and if the optional communication module is successful in connecting the personal hot spot, the processor judges that the user terminal is authorized; if the connection of the selected communication module to the personal hot spot fails, the user terminal is judged to be unauthorized.
As an alternative embodiment, the box 1 is further provided with an audio playing component, and the audio playing component is in signal connection with theprocessor 5. Theprocessor 5 is further configured to obtain user body monitoring data collected by the user terminal when the close-range communication module 7 is connected to the user terminal, obtain external environment information through the matching communication module, query the recommendation policy database according to the user body monitoring data and the external environment information to obtain a corresponding recommendation policy, and control the audio playing component to play commodity recommendation information to the user according to the query result.
Illustratively, the user body monitoring data may be user walking step number data in a last period of time collected by a user terminal; the external environment information can be real-time air temperature information, and the external environment information can be acquired through an upper computer. The intelligent vending machine provided by the embodiment is characterized in that a plurality of recommendation strategies are prestored in a recommendation strategy database, wherein the recommendation strategies are corresponding recommendation commodities under different user body monitoring data and external environment information, and the intelligent vending machine can judge whether a user moves for a long time in a short period of time according to the user body monitoring data, so that electrolyte-supplemented beverages are recommended to the user; or according to the real-time temperature information, the section recommends the thirst quenching and summer heat relieving beverage or food to the user in the summer heat, thereby not only meeting the requirements of the user, but also improving the sales volume of the commodity and realizing targeted promotion.
In addition, theprocessor 5 is further configured to record information of the commodity purchased by the user after the commodity recommendation information is played to the user, count types of the commodity finally purchased by the user under the influence of different body detection data, external environment information and commodity recommendation information, and update the recommendation policy database according to the statistical result.
According to the intelligent vending machine provided by the embodiment, the commodity information actually purchased by the user under the corresponding conditions can be analyzed by counting the commodity information actually purchased by the user after each recommendation, so that the corresponding recommendation strategies in the recommendation strategy database are updated according to the statistical analysis results, the recommended commodities are more biased to the commodities actually purchased by most users, and the recommendation accuracy is improved.
The foregoing description of the preferred embodiments of the invention is not intended to limit the invention to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and scope of the invention are intended to be included within the scope of the invention.