A kind of Short Message Service Gateway intelligent connection apparatus
Technical field
The present invention relates to enterprise messaging mobile communication technology field, particularly a kind of Short Message Service Gateway intelligent connection apparatus.
Background technology
At present, because China's mobile phone obtains very large universal, mobile phone has not merely become the instrument of the mutual exchange and conmmunication of people, becomes the instrument of the popular bridge that obtains information in time and amusement and recreation more gradually.Along with the further genralrlization of SMS, short message service also starts the operation system incorporating enterprise, one of means of communication becoming enterprise.
The enterprise that is applied as of short message service has erected the bridge of " at any time, arbitrarily, everywhere ", and it releases the time in market by shortening product and information, can enterprise product competition advantage; Improve customer service by the customer relationship provided at any time, improve customer satisfaction with services.
But in the short message service application practice of reality, but find the problem much with generality.China is existing three large mobile communications operators: China Mobile, China Telecom and CHINAUNICOM, although they all provide short message service, also across a network transmitting-receiving note is supported, but the note industry gateway interface provided due to them is different, therefore, current enterprise messaging Forward Proxy always uses corresponding note industry gateway interface according to the operator ownership of client's number.But, if the number of corporate client concentrates on an operator in a large number, so will certainly take the note industry gateway interface circuit of this operator during bulk SMS in a large number, thus cause note forward efficiency to decline, increase and send failed probability.And the present invention can solve problem above well.
Summary of the invention
For the deficiency that prior art exists, the object of the invention is to design a kind of Short Message Service Gateway intelligent connection apparatus, and this device can address the problem: 1. utilize the inter-network of industry gateway to forward feature, select idle channel to send note; 2. the overweight meeting of certain channel load is reminded by LED; 3. buzzer warning is passed through in the overweight meeting of all channel load.
The present invention solves the technical scheme that its technical problem takes: a kind of Short Message Service Gateway intelligent connection apparatus, and this device is by single-chip microcomputer 1, ethernet controller 2,3,4,5, red and green color LED 6,7,8, RS232 serial line interface 9 and buzzer 10 form, single-chip microcomputer 1 and ethernet controller 2,3,4,5, LED 6,7,8 and buzzer 10 all connected by the GPIO interface of single-chip microcomputer 1; Described single-chip microcomputer 1 receives note message by ethernet controller 2, select ethernet controller 3,4,5 count value minimum as transmit port, note message is sent; Described single-chip microcomputer 1 is according to ethernet controller 3, and 4,5 count value control corresponding LED 6,7,8 and buzzer 10; Described single-chip microcomputer 1 sends status signal and reception control signal by RS232 serial interface to server.Described LED 6,7,8 and ethernet controller 3,4,5 one_to_one corresponding, ethernet controller 3,4, in 5, any one has note message to pass through, then corresponding LED dodges green glow, and any one count value exceedes threshold values, then corresponding LED Chang Lianghong light, when whole count value all exceedes threshold values, then buzzer 10 sends alarm sound.
4 ethernet controller chip ports of described single-chip microcomputer 1, comprise ethernet controller input port 2, ethernet controller output port 3, ethernet controller output port 4 and ethernet controller output port 5, dual-colored LED lamp 6, dual-colored LED lamp 7, dual-colored LED lamp 8, serial line interface 9 and buzzer 10.Ethernet controller chip net control transfer of data, be connected with each input port and output port, all ethernet controller chips all connect single-chip microcomputer, input port is connected into enterprises lan, 3 output ports distinguish access short message gateway by internet, the TCP/IP message repeating agreement of single-chip microcomputer 1 operative norm; All dual-colored LED lamps and buzzer 10 are all connected to single-chip microcomputer, by Single-chip Controlling, each output port all arranges a counter and a dual-colored LED lamp, any one output port has a complete note message to pass through, just corresponding counter is added 1, corresponding LED dodges green glow, then sends signal to single-chip microcomputer when counter arrives pre-set threshold value, the corresponding LED Chang Lianghong light of Single-chip Controlling, and serially interface 9 sends overburden signal; Then send signal to single-chip microcomputer when all counters all arrive pre-set threshold value, Single-chip Controlling buzzer sounds the alarm, and serially interface 9 sends full load signal; Single-chip microcomputer can according to the control command counter reset received from serial line interface 9; Single-chip microcomputer, when forwarding the note message from input port, is understood that minimum output port of automatic gated counter numerical value and is forwarded.
The present invention can carry out note forwarding by the lighter industry gateway channels of intelligent selection load, red light can be used to warn, buzzer can be used to warn when whole passage full load, can remind computer lab management personnel in time when single channel exceedes load; Loading condition can return to enterprise's transmit leg in real time simultaneously, can supply transmit leg dynamic conditioning strategy and frequency.
Beneficial effect:
The present invention can improve note forward efficiency significantly, and effectively reduces the probability of note retransmission failure.
Accompanying drawing explanation
Fig. 1 is structural representation of the present invention
Identifier declaration: 1-single-chip microcomputer; 2-ethernet controller input port; 3,4,5-ethernet controller output port; 6,7,8-red and green color LED; 9-RS232 serial line interface; 10-buzzer.
Embodiment
Below in conjunction with Figure of description, the present invention is described in further detail.
As described in Figure 1, the present invention is ethernet controller input port 2, ethernet controller output port 3,4, the 5 GPIO ports being all connected to single-chip microcomputer 1 free time, each ethernet controller comprises the RJ45 network port, the RJ45 port of ethernet controller input port 2 is connected to intranet gateway server, ethernet controller output port 3,4, the RJ45 port of 5 is connected into Short Message Service Gateway passage respectively by internet, single-chip microcomputer 1 inside arranges 3 counters and is respectively ethernet controller output port 3,4,5 countings.RS232 serial line interface 9 one end is connected to single-chip microcomputer 1, and the other end is connected with intranet gateway server by DB9 port.Dual-colored LED lamp 6,7,8 and buzzer 10 be all connected to the GPIO port of single-chip microcomputer 1 free time, dual-colored LED lamp 6,7,8 respectively with ethernet controller output port 3,4,5 one_to_one corresponding.
The process that note of the present invention forwards comprises the steps:
Step 1: the RJ45 port of the note message sent from intranet by ethernet controller 2 sends by intranet gateway server;
Step 2: single-chip microcomputer 1 receives note message from ethernet controller 2, at ethernet controller 3,4, the conduct that in 5, gated counter value is minimum sends port, by note message repeating to this port, and Counter Value corresponding for this ethernet controller is added 1;
Step 3: single-chip microcomputer 1 controls LED corresponding to industry gateway channels, sends the instruction of dodging green glow;
Step 4: receive the ethernet controller of note message by industry gateway extremely corresponding for short message sending, follow-up work is by the industry gateway processes of communication operator.
The process that wall scroll industry gateway channels overburden of the present invention is reported to the police comprises the steps:
Step 1: when the Counter Value of certain industry gateway channels exceedes pre-set threshold value, sends single channel overburden signal to single-chip microcomputer 1;
Step 2: single-chip microcomputer 1 controls LED corresponding to this passage, sends the instruction of Chang Lianghong light;
Step 3: single-chip microcomputer 1 sends single channel overload status signal by RS232 serial line interface 9 to server.
The process that whole industry gateway channels full load of the present invention is reported to the police comprises the steps:
Step 1: when the Counter Value of three industry gateway channels exceedes pre-set threshold value, sends full tunnel full load signal to single-chip microcomputer 1;
Step 2: single-chip microcomputer 1 controls buzzer 10, sends alarm sound;
Step 3: single-chip microcomputer 1 sends full tunnel full load status signal by RS232 serial line interface 9 to server.
The process that counter of the present invention resets comprises the steps:
Step 1: single-chip microcomputer 1 receives the command signal of server counter reset from RS232 serial line interface 9;
Step 2: the Counter Value of correspondence is reset to 0 according to command signal content by single-chip microcomputer 1.
Above embodiment is only and technological thought of the present invention is described, protection scope of the present invention can not be limited with this, every technological thought proposed according to the present invention, any change that technical scheme basis is done, within the protection range all falling into the claims in the present invention; The technology that the present invention does not relate to all is realized by prior art.