Summary of the invention
In view of the deficiencies of the prior art, the present invention intends to provide one kind can to reduce Street lamps control cost
The network street lamp illumination system based on GPRS.
To achieve the above object, the present invention provides the following technical scheme that a kind of network street lighting system based on GPRS
System, comprising:
Communication gate is coupled to external controller for road lamp, for communicating with controller for road lamp, receives controller for road lamp output
Lamp condition signal, send control instruction to controller for road lamp device;
GPRS communication module, is coupled to communication gate, for receiving the lamp condition signal of communication gate output, by the road
Lamp status signal issues after being converted into GPRS communication;
Remote control center is coupled to GPRS communication module, the road after conversion for receiving the sending of GPRS communication module
Lamp status signal, and shown after this signal is parsed, and issue control instruction to GPRS communication module, led to by GPRS
Letter module is input in communication gate;
Wherein, GPRS communication module includes upper communication module and lower communication module, and the upper communication module is set to remotely
It at control centre, is in communication with each other with remote control center, the lower communication module is set at communication gate, with communication gate phase
Mutual communication.
As a further improvement of the present invention, the upper communication module and lower communication module include:
CPU single-chip microcontroller, the CPU single-chip microcontroller have I/O interface, crystal oscillator interface and reseting interface, the I/O interface and street lamp
Controller or remote control center communication connection, for receiving the lamp condition signal of controller for road lamp output and being used for street lamp
Controller exports control instruction, and the crystal oscillator interface is coupled with crystal oscillator, and the reseting interface is coupled with reset circuit;
Mobile communication module is coupled to CPU single-chip microcontroller, has been also coupled to antenna, for receiving the street lamp of CPU single-chip microcontroller output
Status signal, and exported after converting the signal into GPRS signal by antenna, or for receiving long-range control by antenna
Center exports control instruction, and exports after control instruction is converted into GPRS signal;
Wherein, the I/O interface of the CPU single-chip microcontroller of upper communication module is connect with remote control center, the CPU of lower communication module
The I/O interface of single-chip microcontroller is connect with controller for road lamp.
As a further improvement of the present invention, the mobile communication module includes:
Communication chip, the communication chip have the state instruction pin for pio chip status signal, are used for and SIM card
Communication pin, the antenna leads for being coupled with antenna and the multiple I/O pins of communication, the multiple I/O interface and CPU monolithic
The I/O interface of machine is connected with each other, for receiving the signal of CPU single-chip microcontroller output and to CPU single-chip microcontroller output instruction signal.
As a further improvement of the present invention, the antenna includes primary antenna and auxiliary antenna, the primary antenna and movement
Communication module coupling, the primary antenna and auxiliary antenna are mutually coupled and interlaced in cross, and the primary antenna is in hollow
Cone-shaped structure, the auxiliary antenna are in hollow columnar structures, and sliding is connected with sliding block, the main day in the auxiliary antenna
Motor is equipped in line, the motor couples after being coupled with switching circuit with mobile communication module, and threshold is equipped in the switching circuit
Threshold voltage, when mobile communication module, which is output in switching circuit signal voltage, is greater than threshold value, switching circuit driving motor
Rotation, the side of the sliding block are hinged with connecting rod, and the connecting rod includes first connecting rod and second connecting rod, and the one of the first connecting rod
Hold it is hinged with one end of second connecting rod, the other end is hinged with sliding block, the second connecting rod relative to first connecting rod the other end and
Auxiliary antenna couples, and block is fixedly connected on the inner wall of the auxiliary antenna, the side of the sliding block is equipped with stopper, described
Spring is coupled between stopper and block, the sliding block is connected by the shaft of line and motor, when motor rotation, sliding block quilt
Motor is pulled to, spring is compressed, and connecting rod is bent, and the hinge joint of first connecting rod and second connecting rod is prominent backwards to auxiliary antenna.
As a further improvement of the present invention, the switching circuit includes:
The non-inverting input terminal and mobile communication module of comparator T, comparator T couple, and inverting input terminal inputs a benchmark
Voltage is as threshold voltage, when the non-inverting input terminal input voltage value of comparator T is greater than reference voltage, the output of comparator T
Hold output signal;
Switching tube K, switching tube K have first end, second end and control terminal, and the control terminal is coupled to comparator T's
Output end, first end are coupled to power supply, and second end and motor couple.
As a further improvement of the present invention, the communication means in the GPRS communication module is as follows:
Step 1 starts GPRS communication module, and by system initialization;
Step 2 establishes carrying out shake communication instruction mode, and working condition is arranged, and configuration module enters the online mould of GPRS data
Formula waits remote control center output order to be received;
Step 3, receive remote control center output order, according to instruct determine SIM card number, obtain telemetry data packet or
It is heartbeat packet, determines IP address, and the SIM card number according to above-mentioned determination and IP address and the telemetry data packet or the heart of acquisition
Jump the GPRS data transmission channel that packet is established between base station and control centre, gateway and base station;
Step 4, communication gate terminate after transmitting signal with remote control center.
As a further improvement of the present invention, steps are as follows for the determination SIM card number in the step 3:
Step 3 one judges whether that receiving remote control center needs to obtain SIM card number instruction, does not receive acquisition
SIM card number instruction, then use the original SIM card number of remote control center, completes SIM card determination, carries out down if receiving
One step;
Step 3 two, the phone number provided according to GPRS are made a phone call toward fixed mobile phone;
Step 3 three, after mobile phone is connected to phone, reply acknowledges receipt of information;
Step 3 four reads information, and the fixed cell-phone number of SIM card number conjunction of GPRS is sent to control centre and is updated,
Updated SIM card number is determined, SIM card determination is completed.
As a further improvement of the present invention, the step of acquisition telemetry or heartbeat packet in the step 3 is as follows:
Step 3 five judges whether that the telemetry for receiving remote control center output sends instruction, if receiving, sends distant
Measured data sends heartbeat packet if not receiving, completes the acquisition of telemetry or heartbeat packet.
As a further improvement of the present invention, steps are as follows for the determination IP address in the step 3:
Step 3 six judges whether the change TCP/IP address port instruction for receiving remote control center output, if not
It receives, then keeps original IP address, complete IP address and determine, if receiving, this continues next step;
Step 3 seven configures new TCP/IP address, and judges whether new TCP/IP communication state is normal, if just
Often, then the TCP/IP address parameter being deactivated is deleted, the IP address after optional modification completes the determination of IP address, if abnormal,
IP address is then reconfigured, and is rejudged, if circulation is also abnormal three times, returns to unsuccessful mark, and select original
IP address complete IP address determination.
As a further improvement of the present invention, the GPRS communication means in the GPRS communication module further includes that software is closed
GPRS communication module step, specifically includes as follows:
Step 5 judges whether that the software for receiving remote control center output closes GPRS communications module instructions, if connecing
It receives, then return step one, if not receiving, waits GPRS communication module start completion, then execute software and close GPRS
Communications module instructions, return step one.
Beneficial effects of the present invention pass through the setting of communication gate, so that it may effectively communicated with controller for road lamp,
It receives the lamp condition signal of controller for road lamp output and sends control instruction to controller for road lamp, realize controller for road lamp control
Street lamp, and pass through the setting of GPRS communication module and remote control center, so that it may it will effectively be led to using GPRS communication module
The lamp condition signal of letter gateway output is converted into GPRS signal of communication, and the control instruction that remote control center exports is converted into
Then GPRS signal carries out the communication between remote control center and controller for road lamp using GPRS signal, and by upper logical
The setting for believing module and lower communication module can realize a mating setting GPRS communication to remote control center and communication network
The effect of pass can be realized a better signal converting transmission.
Specific embodiment
The present invention is described in further detail below in conjunction with embodiment given by attached drawing.
Shown in 6, a kind of network street lamp illumination system based on GPRS of the present embodiment, comprising:
Communication gate 1 is coupled to external controller for road lamp, and for communicating with controller for road lamp, it is defeated to receive controller for road lamp
Lamp condition signal out sends control instruction to controller for road lamp;
GPRS communication module 2 is coupled to communication gate 1, will for receiving the lamp condition signal of the output of communication gate 1
The lamp condition signal issues after being converted into GPRS communication;
Remote control center 3 is coupled to GPRS communication module 2, after the conversion for receiving the sending of GPRS communication module 2
Lamp condition signal, and shown after this signal is parsed, and issue control instruction to GPRS communication module 2, pass through
GPRS communication module 2 is input in communication gate 1;
Wherein, GPRS communication module 2 includes upper communication module and lower communication module, and the upper communication module is set to remotely
It at control centre 3, is in communication with each other with remote control center 3, the lower communication module is set at communication gate 1, with communication network
It closes 1 to be in communication with each other, during using the street lamp illumination system of the present embodiment, street lamp control is received by communication gate 1 first
This signal, is then input in GPRS communication module 2 again, passes through GPRS communication module by the lamp condition signal of device output processed
2 can be converted into this signal GPRS signal, so be the GPRS letter that lower communication module transmits out street lamp status signal
Number in upper communication module, then upper communication module receives be reduced into lamp condition signal after this signal after input
Into remote control center 3, the state that remote control center 3 can receive street lamp is fed back, and 3 sending in remotely controlling
Control instruction is also same reason, first sends an instruction to communication module, it is logical that upper communication module converts instructions into GPRS
Believe signal, then receive this GPRS signal of communication with lower communication module, and be converted into command signal to communication gate 1,
It is sent an instruction in controller for road lamp by communication gate 1 later, can effectively complete a control to street lamp in this way
Make the transmission of instruction, it can be seen that above-mentioned signal transmitting step is realized by being converted into GPRS signal of communication, such as
This can be directly using external Mobile Server, and not having to a large amount of wirings so reduces cost, can also avoid being arranged
Private server causes the problem of cost increase, while by the setting of communication gate 1, may be implemented a gateway correspond to it is multiple
The effect of controller for road lamp is realized a kind of centralized management, is so also reduced between controller for road lamp and remote control center 3
Communications cost and difficulty.
As a kind of improved specific embodiment, the upper communication module and lower communication module include:
CPU single-chip microcontroller 21, the CPU single-chip microcontroller 21 have I/O interface, crystal oscillator interface and reseting interface, the I/O interface with
Controller for road lamp or remote control center communication connection, for receive controller for road lamp output lamp condition signal and for
Controller for road lamp exports control instruction, and the crystal oscillator interface is coupled with crystal oscillator, and the reseting interface is coupled with reset electricity
Road;
Mobile communication module 22 is coupled to CPU single-chip microcontroller 21, has been also coupled to antenna 221, for receiving CPU single-chip microcontroller 21
The lamp condition signal of output, and exported after converting the signal into GPRS signal by antenna 221, or for passing through antenna
221, which receive remote control center 3, exports control instruction, and exports after control instruction is converted into GPRS signal;
Wherein, the I/O interface of the CPU single-chip microcontroller 21 of upper communication module is connect with remote control center 3, lower communication module
The I/O interface of CPU single-chip microcontroller 21 is connect with controller for road lamp, can be with controller for road lamp by the setting of CPU single-chip microcontroller 21
Or remote control center 3 is effectively communicated, and it, can will be in communication then by the setting of mobile communication module 22
Appearance is converted into GPRS signal and is sent out by antenna 221, very convenient and efficient, and structure is simple, easy to accomplish.
As a kind of improved specific embodiment, the mobile communication module 22 includes:
Communication chip 222, the communication chip 222 have the state instruction pin for pio chip status signal, are used for
Communication pin, the antenna leads for coupling with antenna 221 and multiple I/O pins, the multiple I/O communicated with SIM card connects
It mouthful is connected with each other with the I/O interface of CPU single-chip microcontroller 21, for receiving signal that CPU single-chip microcontroller 21 exports and to CPU single-chip microcontroller 21
Output instruction signal passes through the state instruction pin of communication chip 222, communication pin, antenna leads and I/O pin, Ke Yishi
By the way of existing different Content of communciation is realized using different pins, it on the one hand can be convenient and the inside of communication chip 222 compiled
Journey, multi-signal on the other hand can also be inputted to avoid the same pin causes signal resolution unclear so that communication chip 222 produces
The problem of raw malfunction, such as shown in Fig. 3, the present embodiment selects 17-20 pin to be communicated with SIM card, utilizes No. 15-16
Pin is communicated with CPU single-chip microcontroller 21, and 48-50 pin is communicated with antenna.
As a kind of improved specific embodiment, the antenna 221 includes primary antenna 2211 and auxiliary antenna 2212, institute
It states primary antenna 2211 and mobile communication module 22 couples, the primary antenna 2211 is mutually coupled with auxiliary antenna 2212 and mutually hands over
Mistake is in cross, and the primary antenna 2211 is in hollow cone shape structure, and the auxiliary antenna 2212 is in hollow columnar structures, institute
It states sliding in auxiliary antenna 2212 and is connected with sliding block 2213, be equipped with motor 2214, the motor 2214 in the primary antenna 2211
It is coupled after being coupled with switching circuit 2215 with mobile communication module 22, is equipped with threshold voltage in the switching circuit 2215, works as shifting
When dynamic communication module 22 is output to that signal voltage is greater than threshold value in switching circuit 2215,2215 driving motor of switching circuit
2214 rotations, the side of the sliding block 2213 are hinged with connecting rod 22131, and the connecting rod 22131 includes that first connecting rod and second connect
Bar, one end of the first connecting rod and one end of second connecting rod are hinged, and the other end and sliding block 2213 are hinged, the second connecting rod phase
The other end and auxiliary antenna 2212 for first connecting rod couple, and are fixedly connected with block on the inner wall of the auxiliary antenna 2212
22121, the side of the sliding block 2213 is equipped with stopper 22132, is coupled between the stopper 22132 and block 22121
Spring 2216, the sliding block 2213 are connect by line with the shaft of motor 2214, and when motor 2214 rotates, sliding block 2213 is drawn
To motor 2214, spring 2216 is compressed, and connecting rod 22131 is bent, and the hinge joint of first connecting rod and second connecting rod is backwards to auxiliary
Antenna 2212 is prominent, and the setting of antenna 221 is on the one hand to send GPRS signal of communication, is on the other hand pair
This signal carries out the effect that a range expands, and stronger signal just needs bigger range, and 221 range of antenna is big
It is small be have direct correlation with the transmission signal end of antenna 221, thus when send signal end it is more when, the model of antenna 221
Enclose it is bigger, thus here by the setting of primary antenna 2211 and auxiliary antenna 2212, so that it may utilize auxiliary antenna 2212
Range is expanded, and passes through the setting of motor 2214, switching circuit 2215 and connecting rod 22131, so that it may be realized when defeated
Signal strength is very big out, when needing large-scale, so that it may and motor 2214 is controlled by switching circuit 2215 and is rotated, so that the
The hinge joint of one connecting rod and second connecting rod is prominent backwards to auxiliary antenna 2212, thus can effectively constitute a transmitting terminal,
The effect for effectively playing 2212 range of transmission of increase antenna will not influence reception simultaneously because signal strength is big,
And it is smaller in signal strength, when not needing great range, by the reset response of spring 2216, will be made
One connecting rod and second connecting rod restore, and can so cancel the transmitting terminal of formation, it is small not will lead to signal strength thus
And range is big, so that the problem of signal strength reduction can not receive well, can effectively realize that basis signal is strong in this way
The effect to determine radiation scope is spent, the scope of application of antenna 221 is further increased, also further increases photograph of the invention
The scope of application of bright system.
As a kind of improved specific embodiment, the switching circuit 2215 includes:
The non-inverting input terminal and mobile communication module 22 of comparator T, comparator T couple, and inverting input terminal inputs a base
Quasi- voltage is as threshold voltage, and when the non-inverting input terminal input voltage value of comparator T is greater than reference voltage, comparator T's is defeated
Outlet output signal;
Switching tube K, switching tube K have first end, second end and control terminal, and the control terminal is coupled to comparator T's
Output end, first end are coupled to power supply, and second end and motor 2214 are coupled, can effectively be sentenced using the setting of comparator T
Disconnected signal strength at this time is big or small, and passes through the setting of switching tube K, may be implemented comparator T judge to complete with
Afterwards, the effect that driving motor 2214 rotates, and overall structure is simple, compact, it is low in cost.
As a kind of improved specific embodiment, the communication means in the GPRS communication module 2 is as follows:
Step 1 starts GPRS communication module 2, and by system initialization;
Step 2 establishes carrying out shake communication instruction mode, and working condition is arranged, and configuration module enters the online mould of GPRS data
Formula waits remote control center output order to be received;
Step 3, receive remote control center output order, according to instruct determine SIM card number, obtain telemetry data packet or
It is heartbeat packet, determines IP address, and the SIM card number according to above-mentioned determination and IP address and the telemetry data packet or the heart of acquisition
Jump the GPRS data transmission channel that packet is established between base station and control centre, gateway and base station;
Step 4, communication gate 1 terminate after transmitting signal with remote control center 3, setting through the above steps,
The effect carried out wireless communication using GPRS communication module 2 is realized with effective, while to IP during establishing communication
Address and SIM card number are determined, thus are just specified the identity of street lamp during foundation, the needle for after
Failure street lamp is searched to property and plays a strong supporting function.
As a kind of improved specific embodiment, steps are as follows for the determination SIM card number in the step 3:
Step 3 one judges whether that receiving remote control center 3 needs to obtain SIM card number instruction, does not receive acquisition
SIM card number instruction, then use the original SIM card number of remote control center 3, completes SIM card determination, carries out down if receiving
One step;
Step 3 two, the phone number provided according to GPRS are made a phone call toward fixed mobile phone;
Step 3 three, after mobile phone is connected to phone, reply acknowledges receipt of information;
Step 3 four reads information, and the fixed cell-phone number of SIM card number conjunction of GPRS is sent to control centre and is updated,
Updated SIM card number is determined, SIM card determination is completed, can realize select new SIM card through the above steps
Number it is also to maintain SIM card number of the old SIM card number as determination as determining SIM card number, mainly for avoiding to street lamp
After being modified, when modified street lamp breaks down, in control centre or nothing caused by old SIM card number
Method realizes the problem of specific aim searches failure.Acquisition telemetering as a kind of improved specific embodiment, in the step 3
The step of data or heartbeat packet, is as follows:
Step 3 five judges whether that the telemetry for receiving the output of remote control center 3 sends instruction, if there is reception
It arrives, then sends telemetry, heartbeat packet is sent if not receiving, the acquisition of telemetry or heartbeat packet is completed, by above
Step takes telemetry and heartbeat packet select one mode, may be implemented quickly to establish GPRS data Path Setup base
Plinth.
As a kind of improved specific embodiment, steps are as follows for the determination IP address in the step 3:
Step 3 six judges whether the change TCP/IP address port instruction for receiving the output of remote control center 3, if not
It receives, then keeps original IP address, complete IP address and determine, if receiving, this continues next step;
Step 3 seven configures new TCP/IP address, and judges whether new TCP/IP communication state is normal, if just
Often, then the TCP/IP address parameter being deactivated is deleted, the IP address after optional modification completes the determination of IP address, if abnormal,
IP address is then reconfigured, and is rejudged, if circulation is also abnormal three times, returns to unsuccessful mark, and select original
IP address complete IP address determination, by the setting of above step may be implemented occur modify to street lamp after it is right
The effect that new IP address is recorded, simultaneously because the characteristic of the easy failure of IP address creation, can use step 3 seven
The IP address of failure can effectively be excluded, preferably IP address can be updated, while in new IP address
When being difficult to create, it is also ensured that the foundation in GPRS data channel.
As a kind of improved specific embodiment, the GPRS communication means in the GPRS communication module 2 further includes soft
Part closes 2 step of GPRS communication module, specifically includes as follows:
Step 5 judges whether that the software for receiving the output of remote control center 3 is closed GPRS communication module 2 and instructed, if
It receives, then return step one, if not receiving, waits 2 start completion of GPRS communication module, then execute software and close
GPRS communication module 2 instructs, return step one, setting through the above steps, so that it may realize that remote control center is closed
The effect of GPRS communication module 2 can effectively save electric energy.
It, can be with using the setting of communication gate 1 in conclusion the network street lamp illumination system of the invention based on GPRS
Data interaction is carried out with controller for road lamp, realizes centralized management, and passes through remote control center 3 and GPRS communication module 2
Setting may be implemented the effect for being carried out remote radio communication using GPRS, avoid a large amount of cloth of the needs occurred in the prior art
Caused by line the problem of cost.
The above is only a preferred embodiment of the present invention, protection scope of the present invention is not limited merely to above-mentioned implementation
Example, all technical solutions belonged under thinking of the present invention all belong to the scope of protection of the present invention.It should be pointed out that for the art
Those of ordinary skill for, several improvements and modifications without departing from the principles of the present invention, these improvements and modifications
It should be regarded as protection scope of the present invention.