Disclosure of Invention
Accordingly, the present invention is directed to an intelligent vending machine with multiple communication modules, which overcomes or at least partially solves the above-mentioned problems of the prior art.
In order to achieve the above purpose, the invention provides an intelligent vending machine with multiple communication modules, comprising a box body and a PCBA electronic main board, wherein the box body is provided with a plurality of boxes for storing commodities, each box is provided with a box door and a locking mechanism, the locking mechanism is used for locking the box door, the PCBA electronic main board is integrated with a processor, a memory, a short-distance communication module and a hot-plug interface, the hot-plug interface is used for inserting an option communication module, the short-distance communication module and the locking mechanism are respectively connected with the processor through signals, the option communication module is connected with the processor through the hot-plug interface, the option 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 accessing a network through different communication technologies to realize remote data interaction between the processor and an upper computer, the vending machine can select different option communication modules to be inserted into the hot plug interface according to the local network condition when being deployed, the processor performs data interaction with the upper computer through the option communication modules when the option communication modules can normally access the network, so that the upper computer can acquire vending machine operation data, the processor is switched to the close-range communication module to communicate with the user terminal to provide commodity sales service for the user when the option communication modules cannot normally access the network, the sales data is temporarily stored in the memory, and the sales data is uploaded to the upper computer when the option communication modules restore to normal work again.
Further, when the first alternative communication module cannot be normally accessed to 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, when the near field communication module is connected to the user terminal, the processor acquires a password for accessing the network by the user terminal from the user terminal and sends 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 mouthful and current sensor on the box, charge mouthful and pass through the circuit electricity with the power and be connected, be provided with the circuit breaker in the circuit between charge mouthful and the power, current sensor links to each other with the treater signal for whether there is the electric current production in the detection charge mouthful, the treater still is used for counting the electric current time that charges mouthful that current sensor detected.
Further, when the matching communication module works normally and the current sensor detects that the charging port generates current, the short-distance communication module is connected with the user terminal to obtain charging state information of the user terminal and judge whether the user terminal is in a charging state or not, if the user terminal is in the charging state, charging cost is calculated according to the counted time of the current generated by 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 a charging state, the circuit between the charging port and the power supply is cut off by the circuit breaker.
Further, when the optional communication module cannot work normally, the processor is further used for acquiring charging time length setting information and prepayment settlement information of the user terminal through the near field communication module, controlling the time length of the circuit between the charging port and the power supply, which is controlled by the circuit breaker, according to the charging time length setting information, the prepayment settlement information is obtained after the user terminal sends the charging time length setting information to the upper computer, the upper computer calculates prepayment charging fee according to the charging time length setting information, and the user terminal carries out online payment according to the prepayment charging fee.
Furthermore, the box body is provided with an equipment searching key, the equipment searching key is connected with the processor through signals, the processor is further used for trying to connect all the peripheral connectable terminal equipment through the near field communication module when the equipment searching key is triggered, and sending a ringing instruction to the terminal equipment when the near field communication module is connected with the terminal equipment so that the terminal equipment rings a ring.
Furthermore, a commodity detection component is also arranged in the cell and is used for detecting whether the commodity in the cell is taken out and is connected with the processor through signals, the processor is further used for obtaining an authorization instruction of the user terminal, the authorization instruction comprises electronic account information associated with the user terminal and payment permission information without confirmation, after the authorization instruction is obtained, the near field communication module periodically tries to establish communication with the peripheral user terminals, after the near field communication module establishes communication with the user terminal, whether the user terminal is authorized or not is verified, when the user terminal is authorized, the locking mechanism is controlled to unlock all the box doors, the information of the taken-out commodity detected by the commodity detection part is obtained, and calculating the amount of the commodity according to the information of the taken commodity, and deducting the amount of the commodity as the cost of the amount of the commodity 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 with the near field communication module is authorized by the following means:
the processor also acquires a personal hotspot password of the user terminal when acquiring an authorization instruction of the user terminal, and after the short-distance communication module is connected with the user terminal, the processor sends a personal hotspot opening instruction to the user terminal, tries to connect a personal hotspot opened by the user terminal by using the acquired personal hotspot password through the matching communication module, and judges that the user terminal is authorized if the matching communication module is successfully connected with the personal hotspot; and if the selected communication module fails to be connected with the personal hotspot, judging that the user terminal is not authorized.
Further, the box body is further provided with an audio playing part, the audio playing part 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 matching communication module, inquiring the 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 part to play commodity recommendation information to the user according to an inquiry result.
Further, the processor is further configured to record information of the commodities purchased by the user after the commodity recommendation information is played to the user, count categories of the commodities finally purchased by the user under the influence of different body detection data, external environment information and the commodity recommendation information, and update the recommendation policy database according to a statistical result.
Compared with the prior art, the invention has the beneficial effects that:
1. a hot plug interface is arranged on a PCBA electronic mainboard of the vending machine, and the hot plug interface can be selectively connected into a first alternative communication module or a second alternative 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 the vending machine carries out data interaction with the upper computer through the matching communication module when the matching communication module can work normally, and can be switched to the close-range communication module to communicate with the user terminal when the matching communication module can not work normally so as to provide commodity sales service for the user, so that the vending machine can work normally under the condition of network disconnection, and the anti-interference capability is strong.
Detailed Description
The principles and features of this invention are described below in conjunction with the following drawings, the illustrated embodiments are provided to illustrate the invention and not to limit the scope of the invention.
Referring to fig. 1 and 2, this embodiment provides an intelligence vending machine with many communication module, 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 mainboard is integrated with aprocessor 5, amemory 6, a nearfield communication module 7 and a hot plug interface 8, and the hot plug interface 8 is used for inserting an optional communication module 9. The close-range communication module 7 and thelocking mechanism 4 are respectively in signal connection with theprocessor 5, and the matching communication module 9 is in signal connection with theprocessor 5 through a hot plug interface 8. The matching communication module 9 comprises a first alternative communication module and a second alternative communication module, and the first alternative communication module and the second alternative communication module are respectively used for accessing a network through different communication technologies to realize remote data interaction between theprocessor 5 and an upper computer. When the vending machine is deployed by the staff, different optional communication modules can be selected to be plugged into the hot plug interface 8 according to the local network condition of the deployment position. When the matching communication module 9 can be normally connected to a network, theprocessor 5 performs data interaction with an upper computer through the matching communication module 9, so that the upper computer can acquire the operation data of the vending machine. When the matching communication module 9 can not be normally accessed to the network, theprocessor 5 is switched to the nearfield 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 the sales data is uploaded to the upper computer through the matching communication module 9 when the matching communication module 9 resumes normal operation again.
For example, the near field communication module in the above embodiments may adopt a bluetooth communication module, an NFC communication module, or another near field communication module. The first alternative communication module can adopt a WiFi module; the second alternative communication module can adopt a 2G/4G/5G communication module or other communication modules. The user terminal is terminal equipment such as a smart phone and a tablet computer. The upper computer can be a computer, a server and other equipment. Thelocking mechanism 4 may be an electrically controlled lock. When the WiFi network is erected at the place where the vending machine is deployed, the optional communication module 9 may adopt a first optional communication module; when the vending machine is deployed at a location without a WiFi network, but the mobile communication network is a good signal, a second alternative communication module may be employed.
In some embodiments, when a user needs to purchase goods, the user can scan the 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 goods to be purchased through the online sales page, and perform settlement, after the settlement is completed, the upper computer obtains information of the goods to be purchased by the user, the information of the purchased goods is sent to theprocessor 5 through the network, theprocessor 5 controls thelocking mechanism 4 of thecorresponding box 2 to unlock thebox door 3, and the user can open thebox door 3 to take the goods in thebox 2.
In other embodiments, the box body 1 is further provided with a touch screen, and the touch screen is in signal connection with theprocessor 5. The user is when needing to purchase commodity, through the commodity that the touch screen selection needs was purchased, the treater generates the payment two-dimensional code according to the commodity that the user will purchase, the user carries out the on-line payment back through user terminal scanning payment two-dimensional code, the host computer sends the information that the user accomplished the payment to treater 5,treater 5 receives the information that the user accomplished the payment after, controlcorresponding case 2'slocking mechanism 4unblock chamber door 3, the user can openchamber door 3 and take away the commodity incase 2.
Specifically, when the communication module 9 cannot be normally connected to the network, theprocessor 5 cannot communicate with the upper computer to obtain the settlement information of the user, at this time, theprocessor 5 switches to the nearfield communication module 7 and establishes communication with the user terminal, after the user completes payment, theprocessor 5 obtains the payment settlement information of the user terminal through the nearfield communication module 7, judges whether the user completes payment according to the payment settlement information, and controls thelocking mechanism 4 of thecorresponding box 2 to unlock thebox door 3 to enable the user to take the commodity away if the user completes payment, and records the commodity data sold this time in thememory 6. If the optional communication module 9 is connected with the network again, theprocessor 5 uploads the temporarily stored commodity sales data to the upper computer through the optional communication module 9.
As an optional implementation manner, when the first candidate 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 candidate communication module, and if the network access failure information is identified as a password error, when the nearfield communication module 7 is connected to the user terminal, acquire a password for the user terminal to access the network from the user terminal and send the password to the first candidate communication module, so that the first candidate communication module attempts to access the network through the acquired password.
For example, when the selected communication module is the first candidate communication module, if the password of the access hotspot changes, the first candidate communication module may not be able to access the network. According to the intelligent vending machine provided by the embodiment, when the first candidate communication module cannot be normally accessed to the network, theprocessor 5 is connected to the user terminal which can be normally accessed to the local wireless network through the nearfield communication module 7, and acquires the password used by the user terminal to access the wireless network, so that the first candidate 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 password is updated regularly by the WiFi network is avoided.
As an optional embodiment, acharging port 10 and acurrent sensor 11 are disposed on the box 1, thecharging port 10 is electrically connected to a power supply 12 through a line, acircuit breaker 13 is disposed in the line between thecharging port 10 and the power supply 12, thecurrent sensor 11 is in signal connection with theprocessor 5, and is configured to detect whether a current is generated in thecharging port 10, and theprocessor 5 is further configured to count a current generation time of the charging port detected by the current sensor.
In this embodiment, when the user terminal has low power, 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 short-distance communication module 7 is connected to the user terminal to obtain the charging state information of the user terminal and judge whether the user terminal is in the charging state, and if the user terminal is in the charging state, it indicates that the user terminal can be charged normally through thecharging port 10. At the moment, theprocessor 5 calculates the charging cost according to the counted current time generated by thecharging port 10, 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 a charging state, which indicates that the user terminal connected to the short-distance communication module 7 is not a charging user terminal, the circuit between the charging port and the power supply is cut off through thebreaker 13.
When the optional communication module 9 cannot work normally, theprocessor 5 is further configured to acquire charging duration setting information and prepayment settlement information of the user terminal through the close-range communication module 7, wherein the charging duration setting information is charging time expected by a user, and theprocessor 5 controls the duration of circuit closing between the charging port and the power supply controlled by the circuit breaker according to the charging duration setting information, so that the charging time of the user is controlled. The prepayment settlement information is settlement information obtained after the user terminal sends the charging time setting information to the upper computer, the upper computer calculates prepayment charge according to the charging time setting information, and the user terminal carries out online payment according to the prepayment charge. In this embodiment, when the vending machine cannot perform data interaction with an upper computer through the matching communication module 9, theprocessor 5 can also communicate with the user terminal through the nearfield communication module 7 to realize the charging function without a network.
As an optional implementation manner, the box is provided with a device finding key, the device finding key is in signal connection with theprocessor 5, and theprocessor 5 is further configured to try to connect all the connectable peripheral terminal devices through the near-field communication module 7 when the device finding key is triggered, and send a ring instruction to the terminal device when the near-field communication module 7 establishes connection with the terminal device, so that the terminal device rings a ring.
Exemplarily, the intelligent vending machine provided by this embodiment may be disposed in a hotel room, and when a check-in client forgets where a terminal device of the client is placed and cannot be found out easily, theprocessor 5 may control the nearfield communication module 7 to connect to a peripheral connectable terminal device by triggering a device finding key, and make the terminal device sound, thereby helping a user find the terminal device quickly and improving the user experience.
As an optional implementation manner, a commodity detection component is further disposed in thecompartment 2, and the commodity detection component is used for detecting whether the commodity in thecompartment 2 is taken out 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 non-confirmation payment authority 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, whether the user terminals are authorized or not is verified, when the user terminals are authorized, thelocking mechanism 4 is controlled to unlock all thebox doors 3, the information of the taken commodities detected by the commodity detection part is acquired, the amount of the commodities is calculated according to the information of the taken commodities, and the amount of the commodities is deducted from the corresponding electronic account according to the electronic account information associated with the user terminals.
Illustratively, the article detection component may be a piezoelectric film sensor, which is disposed inside thecompartment 2 and generates a corresponding electrical signal to be sent to theprocessor 5 when the article is placed on or taken up from the piezoelectric film sensor. In general, a user needs to take out a user terminal to perform a payment operation each time the user purchases a commodity in a vending machine, and the operation is cumbersome. In this embodiment, when a user needs to purchase goods for many times, an authorization instruction for a corresponding vending machine can be initiated to an upper computer after scanning a two-dimensional code on a box body 1 of the vending machine, the upper computer forwards the authorization instruction to aprocessor 5 of the corresponding vending machine, after theprocessor 5 confirms whether a user terminal is authorized through a nearfield communication module 7, when the authorized user terminal is around, theprocessor 5 directly controls alocking mechanism 4 to unlockbox doors 3 of allboxes 2, the user can take out goods at will, when theprocessor 5 detects that goods in anybox 2 are taken out through a goods detection component, since different goods are placed in theboxes 2 at fixed positions, information of the taken goods can be judged according to thebox 2 in which a piezoelectric film sensor sending an electric signal is located, the amount of the goods is calculated, money of the amount of the goods is directly deducted from an electronic account associated with the user through the payment permission confirmation information, therefore, the user does not need to pay manually through the terminal equipment when purchasing at every time, and the use experience of the user is further improved.
As a further optional embodiment, the processor can verify whether the user terminal connected to the near field communication module is authorized by:
the processor also acquires a personal hotspot password of the user terminal when acquiring an authorization instruction of the user terminal, and after the short-distance communication module is connected with the user terminal, the processor sends a personal hotspot opening instruction to the user terminal, tries to connect a personal hotspot opened by the user terminal by using the acquired personal hotspot password through the matching communication module, and judges that the user terminal is authorized if the matching communication module is successfully connected with the personal hotspot; and if the selected communication module fails to be connected with the personal hotspot, judging that the user terminal is not authorized.
As an optional implementation manner, the box body 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 nearfield 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 the commodity recommendation information to the user according to a query result.
Illustratively, the user body monitoring data may be user walking step number data in a last period of time collected by the user terminal; the external environment information can be real-time temperature information and can be acquired through an upper computer. In the intelligent vending machine provided by the embodiment, a plurality of recommendation strategies are stored in a recommendation strategy database in advance, the recommendation strategies are corresponding recommended 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 as to recommend a beverage supplemented with electrolyte to the user; or according to the real-time temperature information, the beverage or food for quenching thirst and relieving summer heat is recommended to the user in the heat season, so that the requirement of the user can be met, the sales volume of the commodity can be increased, and the targeted promotion is realized.
In addition, theprocessor 5 is further configured to record information of the goods purchased by the user after playing the goods recommendation information to the user, count categories of the goods finally purchased by the user under the influence of different body detection data, external environment information, and the goods recommendation information, and update the recommendation policy database according to a statistical result.
The intelligent vending machine provided by the embodiment can analyze the information of the commodity actually most preferred to be purchased by the user under the corresponding condition by counting the information of the commodity actually purchased by the user after each recommendation, so that the corresponding recommendation strategy in the recommendation strategy database is updated according to the statistical analysis result, the recommended commodity is more preferred to the commodity actually preferred to be purchased by most users, and the recommendation accuracy is improved.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.