CN109102625A - Automatically vending system and its server - Google Patents
Automatically vending system and its server Download PDFInfo
- Publication number
- CN109102625A CN109102625A CN201810755800.2A CN201810755800A CN109102625A CN 109102625 A CN109102625 A CN 109102625A CN 201810755800 A CN201810755800 A CN 201810755800A CN 109102625 A CN109102625 A CN 109102625A
- Authority
- CN
- China
- Prior art keywords
- vending machine
- server
- link block
- business
- communication information
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F9/00—Details other than those peculiar to special kinds or types of apparatus
- G07F9/002—Vending machines being part of a centrally controlled network of vending machines
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Environmental & Geological Engineering (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)
Abstract
This application involves a kind of automatically vending system and its server, which includes link block and business module;Link block with the vending machine in automatically vending system for connecting, receiving the communication information that vending machine is sent and being forwarded to business module;Business module is used to receive the communication information of link block forwarding, and carries out service communication by link block and vending machine according to communication information.By the way that link block and business module is arranged in server, connection service and business service i.e. by server with vending machine separate, when needing to carry out the adjustment and extension of business tine to vending machine, it only needs to be adjusted update to the business module in server, automatic vending machine still keeps being connected to the network with the link block in server at this time, so as to avoid automatic vending machine from the case where network connection interruption occur.
Description
Technical field
The present invention relates to automatic vending technical fields, more particularly to a kind of automatically vending system and its server.
Background technique
With the development of network technology, automatic vending machine (Vending Machine, VEM) using more and more extensive, from
Dynamic vending machine is the self-service machine after according to user's payment expense, is a kind of commonly used equipment of business automation, has
The characteristics of not limited by time and space, saves manpower and transaction is convenient.
Traditional technology takes automatic vending machine+server system model when constructing automatically vending system, server with
Automatic vending machine communication connection, and the working service such as automatic vending for controlling automatic vending machine.However, in this system model
Under, it when needing the business tine to automatic vending machine to be adjusted and extend, needs to be adjusted server update, services
The adjustment of device updates the network connection interruption that will lead to automatic vending machine and server, thus to the working service of automatic vending machine
It causes to seriously affect.
Summary of the invention
Based on this, it is necessary to avoid automatic vending machine from network connection interruption situation occur in view of the above-mentioned problems, providing one kind
Automatically vending system and its server.
A kind of server of automatically vending system, the server include link block and business module;
The link block receives what the vending machine was sent for connecting with the vending machine in the automatically vending system
Communication information is simultaneously forwarded to the business module;
The business module is used to receive the communication information of the link block forwarding, and according to the communication information
Service communication is carried out by the link block and the vending machine.
The connection type of the link block and the vending machine is network connection in one of the embodiments,.
The network connection is long connection in one of the embodiments,.
The link block is before receiving the communication information that the vending machine is sent in one of the embodiments, also
For detecting whether the network connection is effectively to connect, and receive the vending machine when the network connection is effectively connects
The communication information of transmission.
The link block receives what the vending machine was sent within a preset time interval in one of the embodiments,
When heartbeat message, then the link block is effectively to connect with the network connection of the vending machine.
The link block is forwarded to described in the communication information for sending the vending machine in one of the embodiments,
Before business module, it is also used to detect the data integrity for the communication information that the vending machine is sent, and in the communication information
Data integrity it is normal when the communication information that the vending machine is sent is forwarded to the business module.
The link block detects the data format and preset format of the communication information in one of the embodiments,
When identical, then the data integrity of the communication information is normal.
The business module is also used to send by the link block to the vending machine in one of the embodiments,
Business information, the business information are used to indicate the vending machine and execute corresponding business operation.
A kind of automatically vending system, including vending machine and the server cluster being made of above-mentioned server, the server
In link block receive the communication information that corresponding vending machine is sent, and the communication information is forwarded in corresponding server
Business module;Business module in the server passes through forwarding for receiving the communication information for being correspondingly connected with module forwards
The link block of the communication information carries out service communication with corresponding vending machine.
The business module is also used to by being correspondingly connected with module to being connected to the correspondence in one of the embodiments,
The vending machine of link block sends business information, and the business information is used to indicate the vending machine and executes corresponding business behaviour
Make.
Above-mentioned automatically vending system and its server, the server include link block and business module;Link block is used
It is connect in the vending machine in automatically vending system, receive the communication information that vending machine is sent and is forwarded to business module;Business
Module is used to receive the communication information of link block forwarding, and carries out business by link block and vending machine according to communication information
Communication.By the way that link block and business module is arranged in server, i.e., the connection service of server and vending machine and business are taken
Business separate, when need to vending machine carry out business tine adjustment and extension when, it is only necessary to the business module in server into
Row adjustment updates, and automatic vending machine still keeps being connected to the network with the link block in server at this time, so as to avoid
There is the case where network connection interruption in automatic vending machine.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the server of automatically vending system in one embodiment;
Fig. 2 is the structural schematic diagram of automatically vending system in one embodiment;
Fig. 3 is the instantiation figure of automatically vending system in one embodiment;
Fig. 4 is the link block of automatically vending system and the connection schematic diagram of business module in one embodiment.
Specific embodiment
Automatic vending machine is the self-service machine of expense that can be paid according to user, is a kind of commonly using for business automation
Equipment can save manpower, and facilitate transaction, be a kind of completely new retailing form, in addition, automatic vending machine not by when
Between, the limitation in place, therefore the micro supermarket for the 24 HOUR ACCESS that is otherwise known as.
User can be propped up when carrying out carrying out reimbursement of expense by automatic vending machine using paper bank note or coin
It pays, the electric-control system in automatic vending machine completes the class of paper bank note and coin by Paper currency identifier or Coin validator at this time
Type identification, to obtain the fee payment information of user.In addition, in the case that automatic vending machine is in network environment support
When, user can also carry out reimbursement of expense using electronic payment mode, and automatic vending machine obtains the expense branch of user by network
Information is paid, electronic payment mode includes wechat payment, the cCredit card payments such as Alipay payment and credit card, stored value card, mobile phone card
Deng electronic payment mode is more convenient compared to paper bank note or specie payment mode.
Traditional technology takes automatic vending machine+server system model when constructing automatically vending system, server with
Automatic vending machine communication connection, and the working service such as automatic vending for controlling automatic vending machine.However, in this system model
Under, when need the business tine to automatic vending machine to be adjusted and extend (as change commodity price, or increase type of merchandize
Deng) when, need to be adjusted server update, the adjustment of server updates the connection that will lead to automatic vending machine and server
It interrupts, to cause to seriously affect to the working service of automatic vending machine.
The problem of for traditional technology, the application provide a kind of automatically vending system and its server, pass through
Connection service and business service by server with vending machine separate, so that automatic vending machine be avoided network connection interruption feelings occur
Condition.
In one embodiment, as shown in Figure 1, providing a kind of server 100 of automatically vending system, server 100 is wrapped
Include link block 110 and business module 120.
Link block 110 receives the logical of the transmission of vending machine 200 for connecting with the vending machine 200 in automatically vending system
Letter message is simultaneously forwarded to business module 120.The communication information that business module 120 is forwarded for receiving link block 110, and according to
Communication information carries out service communication by link block 110 and vending machine 200.
In automatically vending system, vending machine 200 and the connection of server 100 are extremely important, connection status it is any different
Chang Douhui impacts the normal work of vending machine 200, therefore server 100 needs to keep stable working condition.Right
When vending machine 200 carries out the adjustment and extension of business tine, in order to avoid the adjustment update of server 100 causes server 100
Server 100 is divided into link block 110 and business module 120 by the problem of with 200 disconnecting of vending machine, the present embodiment,
In, link block 110 and business module 120 are all independent operatings, and can establish mutually communication connection and be communicated.
Specifically, link block 110 is mainly responsible for and the connection of vending machine 200 and message transmission work, including foundation clothes
The connection of business device 100 and vending machine 200, the connection for disconnecting server 100 and vending machine 200, reception vending machine 200 are sent to clothes
The communication information and forwarding vending machine 200 of business device 100 are sent to the communication information etc. of server 100.The function of link block 110
Not including any service logic in energy, link block 110 is responsible for most basic linkage function and communication information transfer function, from
And guarantee link block 110 service stability, while also can compatible services adjustment and extension, i.e., ought have any business reorganization
Or extension, when needing, link block 110 hardly needs adjustment, so as to continue to keep and the connection of vending machine 200, avoids
There is the case where disconnecting in vending machine 200 and server 100.Business module 120 is mainly responsible for and 200 carry out business of vending machine
The data processing work of communication, when vending machine 200 sends communication information to server 100, business module 120 receives connection mould
The communication information that block 110 forwards, and according to communication information, service communication is carried out by link block 110 and vending machine 200.?
Need to automatically vending system carry out business reorganization or extension when, it is only necessary to individually to the business module 120 in server 100 into
Row adjustment updates, and link block 110 still keeps the connection with vending machine 200 at this time, to avoid vending machine 200 and service
There is the case where disconnecting in device 100.
The present embodiment by the way that link block 110 and business module 120 is arranged in server 100, i.e., by server 100 with sell
The connection service of cargo aircraft 200 and business service separate, when needing to carry out the adjustment and extension of business tine to vending machine 200,
It only needs to be adjusted update to the business module 120 in server 100, at this time in vending machine 200 and server 100
Link block 110 still keeps being connected to the network, so as to avoid vending machine 200 from the case where network connection interruption occur.
In one embodiment, link block 110 is after receiving the communication information that vending machine 200 is sent, using transparent transmission
Communication information is forwarded to business module 120 by transmission mode.Transparent transmission, i.e., transparent transmission, refers to the transmission process in one group of data
In, any type of change does not occur for this group of data, i.e., be not truncated, be not grouped, not encoding, not encrypting and not obscuring etc.;?
When forwarding, the data after forwarding are identical with primary data, guarantee that data are intactly sent to final receiving end.Specifically
Ground, in the present embodiment, the link block 110 in server 100 is when receiving the communication information of the transmission of vending machine 200, only
Will the communication information be in terms of being related to business, which is forwarded to business all by the way of transparent transmission by link block 110
The processing of module 120, during this, link block 110 will only need the communication information forwarded to be transmitted to business module 120, simultaneously
Guarantee transmission quality, without to needing to handle communication information, thereby may be ensured that link block 110 services steady
It is qualitative.
In one embodiment, the connection type of link block 110 and vending machine 200 is network connection.Specifically, it services
110 open network link address (domain name) of link block and port in device 100, vending machine 200 pass through the network connection address
Establish and be connected to the network with the link block 110 in port and server 100, after the completion of network connection is established, vending machine 200 with
Server 100 is communicated by the network connection.
In the present embodiment, by the network connection for the link block 110 established in vending machine 200 and server 100, thus
Guarantee to maintain normal communication, in order to which user is during mobile payment, vending machine between vending machine 200 and server 100
200 can carry out service communication with server 100, so that user is gone on smoothly by the process that mobile payment is done shopping.
Such as: user is sold goods in the commodity that purchase is sold comprising the vending machine 200 of two dimensional code payment method by mobile device scanning
Commodity two dimensional code on machine 200 is to obtain merchandise news.Business module 120 in server 100, which needs to obtain the user, to be wanted
The surplus commodities information for buying the vending machine 200 of commodity could feed back merchandise news to the mobile device of user, at this time server
Whether the network connection that the link block 110 in 100 is detected with the vending machine 200 first is normal, is being connected to the network normal feelings
Under condition, business module 120 obtains the surplus commodities information of the vending machine 200 and feeds back to user's mobile device, and user is according to surplus
Remaining merchandise news carries out the work such as commodity selection, reimbursement of expense, and business module 120 leads to after obtaining user and paying completion message
It crosses link block 110 and sends shipment message to vending machine 200, vending machine 200 completes shipment according to shipment message, and user completes purchase
Logistics journey.
In the present embodiment, the connection type of link block 110 and vending machine 200 is network connection, by establishing and maintaining
The network connection of link block 110 and vending machine 200, it is ensured that remain normal logical between vending machine 200 and server 100
News, to guarantee that user can do shopping by mobile payment mode.
In one embodiment, the network connection of link block 110 and vending machine 200 is long connection.Server 100 with
When vending machine 200 is communicated, it is desirable that real-time messages are sent in real time and are handled in real time, therefore, and in the present embodiment, clothes
The network connection type of business device 100 and vending machine 200 is long connection, specifically can be TCP (Transmission Control
Protocol, transmission control protocol) length connection.Long connection, which refers to, can continuously transmit multiple data packets in a connection, this
Long connection refers to that server 100 and vending machine 200 are always maintained at the network connection after the network connection established in embodiment, works as clothes
Business device 100 and vending machine 200 can be connected by the length and be communicated there are when message communicating, when message communicating is not present,
The network connection still remains normal.
For long connection, another connection type is short connection, and short connection refers to that communication two party has data friendship
When mutual, a connection is just established, after data are sent completely, then this connection are disconnected, i.e., connects the hair for only completing a business every time
It send.When short connection is applied in automatically vending system, i.e., when being communicated between vending machine 200 and server 100, just
A network connection is established, after the completion of communication, then disconnects the network connection.For TCP connection, each TCP connection is needed
Want three steps to shake hands, therefore vending machine 200 when being communicated with server 100 every time, require one establish be connected to the network when
Between, for automatically vending system, if communication all uses short connection every time, it will increase the processing time of system, to make
User is obtained to need to spend the more waiting time in shopping process.Therefore, in the present embodiment, vending machine 200 and server 100
Network connection be long connection, i.e., continue to the TCP connection after establishing the TCP connection of vending machine 200 and server 100,
Directly pass through the TCP connection when vending machine 200 is communicated with server 100 and send communication information, connects without re-establishing TCP
It connects, to realize the real time communication of vending machine 200 Yu server 100.
In one embodiment, link block 110 is also used to examine before receiving the communication information that vending machine 200 is sent
Survey whether network connection is effectively to connect, and the communication information of the transmission of vending machine 200 is received when being connected to the network is effectively connection.
After link block 110 establishes the TCP connection with vending machine 200, since the TCP connection is long connection, in vending machine
200 with server 100 be communicated when, which still always exists, at this point, link block 110 needs to detect the TCP
The validity of connection, to maintain the TCP long connection.When link block 110 detect the TCP connection it is effective when, indicate long connection dimension
It holds normally, link block 110 can receive the communication information of the transmission of vending machine 200;Connect when link block 110 detects the TCP
When connecing failure, indicate that long connection has disconnected, link block 110 can not receive the communication information of the transmission of vending machine 200 at this time, need
Re-establish the TCP connection of vending machine 200 Yu server 100.
The present embodiment carries out validation checking by the network connection to vending machine 200 and server 100, can maintain to sell
Cargo aircraft 200 and the long of server 100 connect, to guarantee that vending machine 200 and server 100 can carry out real time communication at any time.
In one embodiment, whether link block 110 receives vending machine 200 by detection within a preset time interval
Whether the heartbeat message of transmission is effectively to connect with detection network connection.
After establishing the network connection of vending machine 200 and server 100, vending machine 200 periodically sends one to server 100
A heartbeat message, transmission time interval are prefixed time interval (such as 65 seconds).When link block 110 within a preset time interval
When receiving the heartbeat message of the transmission of vending machine 200, indicate that vending machine 200 can be sent out by the network connection to server 100
Message is sent, the link block 110 in server 100 is effectively to connect with the network connection of vending machine 200 at this time.Work as link block
110 do not receive within a preset time interval vending machine 200 transmission heartbeat message when, indicate vending machine 200 pass through the network
It connects to server 100 and sends message failure, link block 110 and the network connection of vending machine 200 have disconnected at this time, need at this time
Re-establish the network connection of server 100 Yu vending machine 200.
The present embodiment periodically sends heartbeat message to server 100 by vending machine 200, can accurately detect vending machine
The validity being connected to the network between 200 and server 100, to avoid the occurrence of network connection unexpected the case where disconnecting.
In another embodiment, it is also possible to vending machine 200 before sending communication information to server 100, detection
Whether network connection is effectively to connect, and send communication information to server 100 when network connection is effectively connects.When selling goods
Machine 200 detect the TCP connection it is effective when, indicate that long connection remains normal, vending machine 200 can be by the TCP connection to service
Device 100 sends communication information;When vending machine 200 detects TCP connection failure, indicate that long connection has disconnected, at this time vending machine
200 send communication information without normal direction server 100, need to re-establish the TCP connection of vending machine 200 Yu server 100.
The present embodiment carries out validation checking by the network connection to vending machine 200 and server 100, can maintain to sell
Cargo aircraft 200 and the long of server 100 connect, to guarantee that vending machine 200 and server 100 can carry out real time communication at any time.
In one embodiment, whether vending machine 200 receives link block 110 by detection within a preset time interval
Whether the heartbeat response message of transmission is effectively to connect with detection network connection.
After establishing the network connection of vending machine 200 and server 100, vending machine 200 periodically sends one to server 100
A heartbeat message, transmission time interval are prefixed time interval, and the link block 110 in server 100 is receiving the heartbeat
After message, a heartbeat response message can be sent to vending machine 200.When the company of receiving within a preset time interval of vending machine 200
When the heartbeat response message that connection module 110 is sent, indicate that server 100 can receive vending machine 200 by the network connection and send out
The message sent, the link block 110 in server 100 is effectively to connect with the network connection of vending machine 200 at this time.Work as vending machine
200 do not receive within a preset time interval link block 110 transmission heartbeat response message when, indicate server 100 can not
The message that vending machine 200 is sent is received, the network connection of the link block 110 in server 100 and vending machine 200 has been broken at this time
It opens, needs to re-establish the network connection of server 100 Yu vending machine 200 at this time.
The present embodiment periodically sends heartbeat message to server 100 by vending machine 200, and detects whether to receive service
The heartbeat response message that device 100 returns, can accurately detect the validity being connected to the network between vending machine 200 and server 100,
To avoid the occurrence of network connection unexpected the case where disconnecting.
In one embodiment, link block 110 is forwarded to business module in the communication information for sending vending machine 200
Before 120, it is also used to detect the data integrity of the communication information of the transmission of vending machine 200, and complete in the data of communication information
The communication information that vending machine 200 is sent is forwarded to business module 120 when property is normal.When link block 110 receives vending machine
When the communication information of 200 transmissions, link block 110 does a basic verification to received communication information first to verify the communication
The data integrity of message, to prevent communication information from occurring the incomplete situation of data in transmission process, so as to cause business
Module 120 can not carry out service communication according to the communication information and vending machine 200, influence the regular traffic work of the vending machine 200
Make.
Specifically, vending machine 200 is when the data integrity to communication information detects, if testing result is the communication
The data integrity of message is normal, then the communication information does not occur the case where shortage of data, business module 120 in transmission process
The complete content of the available communication information, to carry out service communication according to the communication information and vending machine 200.If detection
As a result imperfect for the data of the communication information, then there is the case where shortage of data in transmission process in the communication information, at this time
Link block 110 directly abandons the communication information, and sends a retransmission indication message to vending machine 200, and repeating transmission instruction disappears
Breath is used to indicate corresponding vending machine 200 and retransmits the communication information.
In the present embodiment, link block 110 is before forwarding communication information, by carrying out data integrity to communication information
Detection to guarantee that the data of the received communication information of business module 120 are partial data, and then guarantees business module 120
Normal service communication is carried out according to complete communication information and vending machine 200.
In one embodiment, link block 110 by detection communication information data format whether with preset format phase
Together, whether normal to detect the data integrity of communication information.When link block 110 detect the data format of communication information with
When preset format is identical, then the data integrity of communication information is normal.When link block 110 detects the data lattice of communication information
When formula and preset format difference, then the data of communication information are imperfect.
Vending machine 200 when being communicated with server 100, by server 100 send specific format message with
It is communicated.In the present embodiment, the message format for communications of vending machine 200 and server 100 is JSON (Java Script
Object Notation, JS object numbered musical notation), JSON is a kind of data interchange format of lightweight, it is based on ECMAScript
The a subset of (the js specification that European Computer association formulates), is stored using the text formatting for being totally independent of programming language
With expression data, have succinctly with clearly hierarchical structure, be easy to read and write, while being also easy to machine parsing and generation,
And effectively promote network transmission efficiency.
Following table is section communication message format when vending machine 200 is communicated with server 100:
Wherein, type indicates type of message, and the message of nothing _ r suffix indicates request message, have _ message of r suffix indicates sound
Answer message;VmID indicates vending machine number;Cn indicates message unique identity;Encrypt indicates cn mark encryption string;Time is indicated
Timestamp;Data indicates other business datums.
In the present embodiment, link block 110 is detected by the data format to communication information, so as to communication
The data integrity of message is detected, and it is all complete communication information that guarantee, which is forwarded to the communication information of business module 120,.
In one embodiment, business module 120 is also used to believe by link block 110 to 200 transmission business of vending machine
Breath, business information are used to indicate vending machine 200 and execute corresponding business operation.In the communication of server 100 and vending machine 200
Cheng Zhong, business module 120, which can be, to be communicated according to the communication information that vending machine 200 is sent with vending machine 200, is also possible to
Business information actively, which is sent, to vending machine 200 carries out business reorganization or extension etc. to be communicated, such as to vending machine 200.
It should be noted that business module 120 is sent out according to vending machine 200 in content described in the above various embodiments
When the communication information sent is communicated with vending machine 200, related link block 110, business module 120 and vending machine 200
Function and corresponding function implementation procedure, it is also the same to adapt to 120 active of business module in this present embodiment and sent out to vending machine 200
The process that business information is sent to be communicated.
In one embodiment, as shown in Fig. 2, providing a kind of automatically vending system, which includes selling goods
Machine 200 and the server cluster 10 being made of the server 100 in any of the above-described embodiment, the link block in server 100
110 receive the communication information that corresponding vending machine 200 is sent, and communication information is forwarded to the business mould in corresponding server 100
Block 120;Business module 120 in server 100 is used to receive the communication information for being correspondingly connected with the forwarding of module 110, and by turning
The link block 110 for sending out communication information carries out service communication with corresponding vending machine 200.
In automatically vending system, vending machine 200 is very high to the dependence of server 100, when server 100 breaks down
When, the vending machine 200 for being connected to the server 100 can all receive influence.In order to guarantee the stability of automatically vending system, this reality
Example is applied using the method for server cluster 10 come deploying servers 100.Server cluster 10, which refers to, concentrates multiple servers 100
Get up and carry out same service together, so that the load pressure and failure risk of server 100 is effectively reduced, when a certain in cluster
When platform server 100 breaks down, other normal servers 100 will provide for servicing, and vending machine 200 can be normally carried out business
Work, it is unaffected.
In one embodiment, as shown in figure 3, providing a kind of specific example of automatically vending system, the automatic vending system
System includes No.1 vending machine 200a to No. five vending machine 200e, and is made of No.1 server 100a to route server 100c
Server cluster 10.Wherein, No.1 server 100a includes No.1 link block 110a and No.1 business module 120a, and No. two
Server 100b includes No. two link block 110b and No. two business module 120b, route server 100c include No. three connection moulds
Block 110c and No. three business module 120c.No.1 link block 110a net in No.1 vending machine 200a and No.1 server 100a
Network connection, and service communication is carried out by No.1 link block 110a and No.1 business module 120a.No. two vending machine 200b, three
No. two link block 110b network connection in number vending machine 200c and No. two server 100b, and pass through No. two link blocks
110b and No. two business module 120b carries out service communication.No. four vending machine 200d, No. five vending machine 200e and route server
No. three link block 110c network connection in 100c, and carried out by No. three link block 110c and No. three business module 120c
Service communication.
It, can be successively to No.1 server 100a when needing to carry out business tine adjustment and extension to automatically vending system
In No.1 business module 120a, in No. two business module 120b and route server 100c in No. two server 100b
No. three business module 120c are adjusted update.When any server in server cluster 10 needs to carry out business tine adjustment
When with extension, since the link block in the server still can work normally, only need to the business in the server
Module is adjusted update, to guarantee that vending machine remains to that normal network connection can be kept with corresponding server.
In one embodiment, as shown in figure 4, the link block in each server be not limited to only with same server
In business module establish communication connection, the link block in any one server can also be with the business in other servers
Module establishes communication connection.Such as: the No.1 link block 110a in No.1 server 100a can be and with the one of server
Number business module 120a establishes communication connection, at the same can also in No. two server 100b No. two business module 120b and
No. three business module 120c in route server 100c establish communication connection.The above communication connection relationship is equally applicable to No. two
Link block 110b and No. three link block 110c.
Specifically, when need to the No.1 business module 120a in No.1 server 100a be in can not working condition, example
Such as when being adjusted update or breaking down, the vending machine for being connected to No.1 server 100a at this time still keeps taking with No.1
The network connection for the No.1 link block 110a being engaged in device 100a.When the vending machine needs and No.1 of connection No.1 server 100a
When server 100a carries out service communication, No.1 link block 110a of the vending machine into No.1 server 100a sends communication
Message, however since No.1 business module 120a can not work, No.1 link block 110a is in the communication for receiving vending machine transmission
After message, which can not be forwarded to No.1 business module 120a, at this point, No.1 link block 110a finds other clothes
In running order business module in business device, and turn received communication information after establishing communication connection with the business module
It is sent to the in running order business module.If such as No. two business module 120b in No. two server 110b are at this time
Working condition, then No.1 link block 110a is establishing communication connection with No. two business module 120b in No. two server 110b
Received communication information is forwarded to No. two business modules 120b, No. two business module 120b afterwards and passes through No.1 link block 110a
Service communication is carried out with the vending machine for sending the communication information.Specifically, can be received communication information is forwarded to it is all
In running order business module is also possible to carry out message according to the loading condition of the business module in running order
Forwarding.
In the present embodiment, the link block and business module of different server can also be communicated, thus when any
When the business module of server can not work, the vending machine for being connected to the server can also be by the connection mould in the server
In running order business module carries out service communication in block and other servers, so that guarantee is sold goods, function is normally carried out industry
It works work.
Further, when the business module in a server can not work, the link block in the server is being selected
When selecting other in running order business modules, which is also used to obtain other in running order business modules
Loading condition, according to the loading condition of other in running order business modules select a load pressure it is minimum or smaller
Business module, and communicated with the business module, which passes through in the corresponding server of failure business module
Link block and the vending machine for sending communication information carry out service communication.
In the present embodiment link block by according to the loading condition of business module carry out business module selection, so as to
With the communication relations of reasonable distribution link block and business module, guarantee the load equilibrium of all business modules.
In one embodiment, it the connection of vending machine and server and is not fixed, vending machine is that server is established
Before network connection, the loading condition of each server is obtained first, then according to the loading condition of each server selection one
A load pressure minimum or lesser normal server, finally establish with the server and are connected to the network.Specifically, it is not fixed No.1
Vending machine 200a has to connection No.1 server 100a, when the vending machine quantity of connection No.1 server 100a excessively leads to one
When the load pressure of number server 100a is excessive, No.1 vending machine 200a is also possible to be connected to other load pressures lesser just
Normal server.The present embodiment is connected by the matching for carrying out server and vending machine according to the loading condition of server, so as to
With the connection relationship of reasonable distribution server and vending machine, guarantee the load equilibrium of Servers-all.
In one embodiment, business module is also used to be correspondingly connected with selling for module to being connected to by being correspondingly connected with module
Cargo aircraft sends business information, and business information is used to indicate vending machine and executes corresponding business operation.In server and vending machine
In communication process, business module, which can be, to be communicated according to the communication information that vending machine is sent with vending machine, is also possible to lead
Trend vending machine sends business information and carries out business reorganization or extension etc. to be communicated, such as to vending machine.
Specifically, it is taken when needing to carry out business reorganization or extension to No.1 vending machine 200a by inquiry with reference to Fig. 3
The vending machine linkage record of business device cluster 10, can learn that the No.1 vending machine 200a is connect with No.1 server 100a, at this point,
No.1 vending machine 200a is sent by No.1 link block 110a by the No.1 business module 120a in No.1 server 100a
Business information, the business information are used to indicate vending machine and execute corresponding business operation.Similarly, it can be completed by above method
Business reorganization or extension work for other vending machines.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention
Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (10)
1. a kind of server of automatically vending system, which is characterized in that the server includes link block and business module;
The link block receives the communication that the vending machine is sent for connecting with the vending machine in the automatically vending system
Message is simultaneously forwarded to the business module;
The business module is used to receive the communication information of the link block forwarding, and is passed through according to the communication information
The link block and the vending machine carry out service communication.
2. server according to claim 1, which is characterized in that the connection type of the link block and the vending machine
For network connection.
3. server according to claim 2, which is characterized in that the network connection is long connection.
4. server according to claim 2 or 3, which is characterized in that the link block is receiving the vending machine hair
Before the communication information sent, be also used to detect it is described network connection whether be effectively connect, and it is described network connection be effective
The communication information that the vending machine is sent is received when connection.
5. server according to claim 4, which is characterized in that the link block receives within a preset time interval
When the heartbeat message that the vending machine is sent, then the link block is effectively to connect with the network connection of the vending machine.
6. server according to claim 1, which is characterized in that the link block is led to send the vending machine
Letter message is forwarded to before the business module, is also used to detect the data integrity for the communication information that the vending machine is sent,
And the communication information that the vending machine is sent is forwarded to the business mould when the data integrity of the communication information is normal
Block.
7. server according to claim 6, which is characterized in that the link block detects the number of the communication information
When identical as preset format according to format, then the data integrity of the communication information is normal.
8. server according to claim 1, which is characterized in that the business module is also used to through the link block
Business information is sent to the vending machine, the business information is used to indicate the vending machine and executes corresponding business operation.
9. a kind of automatically vending system, which is characterized in that including vending machine and by the described in any item services of claim 1 to 8
The server cluster of device composition, the link block in the server receive the communication information that corresponding vending machine is sent, and by institute
State the business module that communication information is forwarded in corresponding server;Business module in the server is correspondingly connected with for receiving
The communication information of module forwards, and by forwarding the link block of the communication information to carry out service communication with corresponding vending machine.
10. automatically vending system according to claim 9, which is characterized in that the business module is also used to pass through correspondence
Link block sends business information to the vending machine for being correspondingly connected with module is connected to, and the business information is used to indicate described
Vending machine executes corresponding business operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810755800.2A CN109102625B (en) | 2018-07-11 | 2018-07-11 | Automatic vending system and server thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810755800.2A CN109102625B (en) | 2018-07-11 | 2018-07-11 | Automatic vending system and server thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109102625A true CN109102625A (en) | 2018-12-28 |
CN109102625B CN109102625B (en) | 2021-11-26 |
Family
ID=64845875
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810755800.2A Active CN109102625B (en) | 2018-07-11 | 2018-07-11 | Automatic vending system and server thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109102625B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110084971A (en) * | 2019-04-25 | 2019-08-02 | 益逻触控系统公司 | The operating method and self-service terminal of self-service terminal |
CN110460632A (en) * | 2019-06-26 | 2019-11-15 | 杨涛 | A kind of preferred method and system of order |
CN110474976A (en) * | 2019-08-09 | 2019-11-19 | 深圳市智莱科技股份有限公司 | A kind of message transfer method, apparatus, storage medium and system applied to automatic vending equipment |
CN111010722A (en) * | 2019-12-22 | 2020-04-14 | 北京世福宝科技有限公司 | Novel wireless networking method between intelligent repeater and lithium point |
CN111354124A (en) * | 2020-03-11 | 2020-06-30 | 北京创联云睿科技有限公司 | Intelligent Internet of things vending system, service equipment and vending machine |
CN111583511A (en) * | 2019-02-18 | 2020-08-25 | 富士电机株式会社 | Vending machine, setting method of setting data thereof, and vending machine system |
CN111583512A (en) * | 2019-02-18 | 2020-08-25 | 富士电机株式会社 | Vending machine, method for setting data thereof, and vending machine system |
CN111885134A (en) * | 2020-07-14 | 2020-11-03 | 上海趣致网络科技股份有限公司 | Remote control system and method for vending machine |
CN112055377A (en) * | 2020-09-16 | 2020-12-08 | 威海新北洋数码科技有限公司 | Self-service equipment and networking control method thereof |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1421825A (en) * | 2001-11-26 | 2003-06-04 | 广东科龙电器股份有限公司 | Intelligent vendor system |
WO2008054037A1 (en) * | 2006-11-03 | 2008-05-08 | Yeong-Ae Kim | A system of management, information providing and information acquisition for vending machine based upon wire and wireless communication and a method of management, information providing and information acquisition for vending machine using the system |
CN103327549A (en) * | 2012-03-23 | 2013-09-25 | 中兴通讯股份有限公司 | Method and system for switching access networks, mobile terminal and link management server |
CN105303699A (en) * | 2008-10-02 | 2016-02-03 | 埃科亚特姆公司 | Secondary market and vending system for devices |
CN106652215A (en) * | 2015-10-30 | 2017-05-10 | 宁波轩悦行电动汽车服务有限公司 | Time-sharing lease system architecture and construction method thereof |
CN107730725A (en) * | 2017-10-11 | 2018-02-23 | 胡启凡 | Intelligent self-service vending system |
-
2018
- 2018-07-11 CN CN201810755800.2A patent/CN109102625B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1421825A (en) * | 2001-11-26 | 2003-06-04 | 广东科龙电器股份有限公司 | Intelligent vendor system |
WO2008054037A1 (en) * | 2006-11-03 | 2008-05-08 | Yeong-Ae Kim | A system of management, information providing and information acquisition for vending machine based upon wire and wireless communication and a method of management, information providing and information acquisition for vending machine using the system |
CN105303699A (en) * | 2008-10-02 | 2016-02-03 | 埃科亚特姆公司 | Secondary market and vending system for devices |
CN103327549A (en) * | 2012-03-23 | 2013-09-25 | 中兴通讯股份有限公司 | Method and system for switching access networks, mobile terminal and link management server |
CN106652215A (en) * | 2015-10-30 | 2017-05-10 | 宁波轩悦行电动汽车服务有限公司 | Time-sharing lease system architecture and construction method thereof |
CN107730725A (en) * | 2017-10-11 | 2018-02-23 | 胡启凡 | Intelligent self-service vending system |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111583511A (en) * | 2019-02-18 | 2020-08-25 | 富士电机株式会社 | Vending machine, setting method of setting data thereof, and vending machine system |
CN111583512A (en) * | 2019-02-18 | 2020-08-25 | 富士电机株式会社 | Vending machine, method for setting data thereof, and vending machine system |
CN111583511B (en) * | 2019-02-18 | 2022-02-11 | 富士电机株式会社 | Vending machine, setting method of setting data thereof, and vending machine system |
CN110084971A (en) * | 2019-04-25 | 2019-08-02 | 益逻触控系统公司 | The operating method and self-service terminal of self-service terminal |
CN110460632A (en) * | 2019-06-26 | 2019-11-15 | 杨涛 | A kind of preferred method and system of order |
CN110460632B (en) * | 2019-06-26 | 2022-06-24 | 杨涛 | Order optimization method and system |
CN110474976A (en) * | 2019-08-09 | 2019-11-19 | 深圳市智莱科技股份有限公司 | A kind of message transfer method, apparatus, storage medium and system applied to automatic vending equipment |
CN110474976B (en) * | 2019-08-09 | 2022-09-16 | 深圳市智莱科技股份有限公司 | Message transfer method, device, storage medium and system applied to automatic vending equipment |
CN111010722A (en) * | 2019-12-22 | 2020-04-14 | 北京世福宝科技有限公司 | Novel wireless networking method between intelligent repeater and lithium point |
CN111354124A (en) * | 2020-03-11 | 2020-06-30 | 北京创联云睿科技有限公司 | Intelligent Internet of things vending system, service equipment and vending machine |
CN111885134A (en) * | 2020-07-14 | 2020-11-03 | 上海趣致网络科技股份有限公司 | Remote control system and method for vending machine |
CN112055377A (en) * | 2020-09-16 | 2020-12-08 | 威海新北洋数码科技有限公司 | Self-service equipment and networking control method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN109102625B (en) | 2021-11-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109102625A (en) | Automatically vending system and its server | |
CN104378341B (en) | Template acquisition methods, template provider method, Apparatus and system | |
US7028891B2 (en) | System and method for confirming transaction or billing communications | |
CN1998019B (en) | Be used for the system and method for mandate safely and distributing stored-value card data | |
US8990109B2 (en) | Interface module, system and method | |
CN101124603A (en) | Method and system for processing electronic payment transactions | |
US8666892B2 (en) | Electronic payment processing system | |
TW200426718A (en) | Recognition system and method thereof for merchandise fraud protection | |
CA2424037C (en) | System and method for purchasing goods and services through financial data network access points | |
HRP20030164A2 (en) | Multifunctional mobile banking system | |
US10755255B2 (en) | Standardizing point of sale services and leveraging instances of the PLU data | |
CN104205036A (en) | Printing system and printer | |
NO324359B1 (en) | Procedure for offering, ordering and selling goods and services | |
JP2007518150A (en) | System, method and apparatus for selling transaction accounts | |
EP4142206A1 (en) | Verifying integrity and secure operations of cloud-based software services | |
KR100636695B1 (en) | Mobile communication system, a gift certificate service system, and a gift certificate service server | |
CN108898375A (en) | A kind of payment administrative system of Vending Machine | |
CN105761062A (en) | Safety payment method and device based on mobile terminal browser | |
CN111882436A (en) | Data processing method, device and equipment based on block chain | |
JP5731116B2 (en) | Algorithmic trading processing method, system and software | |
JP2007272716A (en) | Financial institution channel link system | |
JP4763016B2 (en) | Business process suitability confirmation system and program | |
JP4300147B2 (en) | System and method for linking services of different business categories | |
WO2018088123A1 (en) | Transaction system, cash processing device, and server | |
TWM619035U (en) | Gifting system |
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 |