A kind of intelligent GPRS service end concentrator
Technical field
The present invention relates to low-voltage platform area AMRS data communication field, refer to more specifically a kind of intelligent GPRS service end concentrator.
Background technology
At present in the AMRS of low-voltage platform area, it is with communication modes such as PSTN, Ethernet, GPRS/CDMA, CSD, Radio substantially that intelligent concentrator terminal and main website carry out data communication, but in conjunction with actual conditions and communication efficiency, at present in centralized meter-reading system or taking GPRS radio communication as main communication mode.GPRS radio communication is with data traffic charge, keeps permanent online, can for centralized meter-reading system provide one efficiently, data transfer mode cheaply, and possess in time, the accurate ability of deal with data.
The mode of the GPRS radio communication of existing intelligent concentrator terminal and backstage main website is: taking intelligent concentrator terminal as GPRS client, with backstage main website be that GPRS service end is carried out group-net communication.
Can only accomplish that point-to-point networking mode carries out data communication.Under such networking mode, other collection is copied directly integrated or access intelligent concentrator terminal of equipment (as handheld terminal PDA or other backstage main website), can only lean on indirectly mode to forward access and the inquiry of carrying out data by backstage main website, thereby cause data acquisition not in time, can not get effective processing.More crucial is by indirect mode to backstage query-relevant data, can only obtain partial data, and not obtain raw data, and be unfavorable for later maintenance and expansion.
Another situation is, part intelligent concentrator terminal adopts two GPRS schemes, and one of them GPRS module is as client and private network backstage main website server communication, and function is mainly parameter and the energy data that transmits centralized meter-reading system.Another one GPRS module is to be also connected with public network debugging main website as client, is mainly used in debugging, the maintenance work of terminal.On this networking mode surface, be terminal to be realized to a pair of two mode, both realized the communication function of private network main website, realized again the function of the maintenance debugging of public network main website.But objectively analyze, concentrator terminal of known this networking mode has taken two GPRS modules, thereby can use two SIM cards.This networking mode does not meet the related request of national grid or south electric network, has not only obviously increased the cost of concentrator terminal, and greatly increases for the maintenance cost of SIM card yet.
In sum, along with the development in epoch, the functional requirement of concentrator terminal is increased day by day.All fail to meet existing collection for existing two kinds of networking modes and copy the constantly demand of upgrading of function, and be unfavorable for expansion.Copy product at collection and constantly update under the functional requirement of regenerating, the networking mode that forces intelligence collection to copy the wireless transmission of concentrator terminal is realized the functional requirement of many-one, multicast communication.But concerning existing conceptual design and product, will realize this networking mode, be a difficult problem at present.
Summary of the invention
For solving above-mentioned defect of the prior art, and intelligent grid proposes higher functional requirement to intelligent concentrator, the invention provides a kind of intelligent GPRS service end concentrator, realize taking intelligent concentrator as service end, multiple backstages main station system and handheld device are the networking mode of client, can utilize GPRS wireless network to access and the function of data query simultaneously, make in net to data obtain and analyze sharedly reach maximization, greatly improve validity, the real-time of data.
For solving the problems of the technologies described above, the present invention program comprises: a kind of intelligent GPRS service end concentrator, it is characterized in that, comprise Micro-processor MCV, GPRS module, human-computer interface module, storage unit module, power module, LED state module, communication module, described GPRS module, human-computer interface module, storage unit module, LED state module, communication module are connected respectively the object that realizes data communication with Micro-processor MCV, described power module provides electric power supply for intelligent GPRS service end concentrator.
Further, described GPRS module also comprises the miniature control chip of GPRS unit, serial ports unit, antenna element, power supply unit, signal condition unit, SIM card unit, data transmit-receive state cell; Described power supply unit provides electric power supply for GPRS module, and described serial ports unit is connected by Transistor-Transistor Logic level with described Micro-processor MCV, and described antenna element also comprises enhancement mode antenna is installed.
Further, described GPRS module and described Micro-processor MCV can consist of the configuration of GPRS wireless aps N proprietary network and backstage main website, handheld device, staff's mobile phone, electricity consumption client mobile phone the networking mode of many-one, multicast communication, wherein said intelligent GPRS service end concentrator is network service end, and described handheld device and backstage main website are networking client.Described backstage main website, handheld device are connected with intelligent GPRS service end concentrator by GPRS wireless aps N network.
Further, described GPRS module and described Micro-processor MCV can consist of the configuration of GPRS wireless aps N proprietary network and backstage main website, handheld device, staff's mobile phone, electricity consumption client mobile phone the networking mode of many-one, multicast communication, and its configuration flow comprises the following steps:
(1) module initialization;
(2) online model selection and configuration;
(3) processing of devices communicating parameter;
(4) receive, send data by GPRS network;
(5) receive, send SMS short message.
Further, described SIM card unit is also provided with APN private network SIM card, can send or receive SMS short message by private network SIM card, and wherein SMS short message also comprises following two kinds of patterns:
(1) send or receive by SMS short message the messaging parameter of netting interior each equipment;
(2) send electric weight, the electricity charge, power failure and overload messages to staff or electricity consumption client conditionally by SMS short message, also support that the staff with certain authority sends relevant operational order by SMS short message simultaneously.
Further, described human-computer interface module also comprises key circuit and LCD liquid crystal display.
Further, described storage unit module also comprises FLASH and EEPORM.
Further, described communication module also comprises RS485 interface communication, power line carrier, PLC, RS232 communication, infrared communication, ethernet communication, usb communication.
Technique scheme has following beneficial effect:
This invention has adopted a kind of intelligent GPRS service end concentrator, utilizes the existing collection copy device of intelligent grid and equipment, and does not increase under the prerequisite of hardware cost.By the GPRS module of configuration intelligent concentrator, realize taking intelligent concentrator as service end, backstage main website or handheld device are client, change the point-to-point networking mode that existing electrical network is single, realize the networking mode of multicast communication, not only can reduce cost of investment, can also solve artificial scene and estimate the problem of copying.
The each device end of networking can access mutually, inquire about, and what make data sharedly reaches maximization, has greatly improved collection to data and validity and the promptness of analysis.Intelligence GPRS service end concentrator can also utilize GPRS module to send the mobile phone of SMS short message to staff or electricity consumption client, can send electric weight, the electricity charge, power failure and overload messages to staff or consumption client conditionally.Make low-voltage collecting meter reading platform realize the design of hommization more, more can meet staff and electricity consumption client's demand.Also support that the staff with certain authority sends relevant operational order by SMS short message simultaneously.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in enforcement or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the network organizing mode topological diagram of the present invention's intelligence GPRS service end concentrator;
Fig. 2 is the structural representation of the present invention's intelligence GPRS service end concentrator;
Fig. 3 is GPRS modular structure schematic diagram of the present invention;
Fig. 4 is that the present invention configures the program flow diagram that intelligent concentrator is service end;
Fig. 5 is the program flow diagram that the present invention's intelligence GPRS service end concentrator sends data;
Fig. 6 is the program flow diagram that the present invention's intelligence GPRS service end concentrator receives data.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments of the invention comprise the following steps:
Step 1: configuration networking mode
Networking mode embodiment of the present invention refers to accompanying drawing 1, the network organizing mode topological diagram of a kind of intelligent GPRS service end concentrator that wherein Fig. 1 provides for the embodiment of the present invention, comprise intelligent GPRS service end concentrator 101, handheld device 102, backstage main website 103, staff's mobile phone 104 and electricity consumption client mobile phone 105.
This networking mode is divided into two kinds of communication patterns:
(1) GPRS network communication
Wherein intelligent GPRS service end concentrator 101 is by the wireless proprietary network of GPRS and mobile base station link connection, be connected with handheld device 102, backstage main website 103 by base station again, wherein can support n (value of n is depending on different GPRS module producer simultaneously, generally maximum 6) individual handheld device 102 and backstage main website 103, realize many-one, the networking model of multicast communication, realize permanent online connection mode, what reach that collection copies data sharedly reaches maximization, and in net, each equipment can obtain and data query mutually;
It should be noted that networking mode of the present invention is all to carry out link connection based on APN proprietary network, has unique APN title.There are unique IP address and port in each handheld device 102, backstage main website 103 in APN private network pattern in addition.SIM card in intelligence GPRS service end concentrator 101 and handheld device 102 has unique card number.
(2) SMS short message communication
Intelligence GPRS service end concentrator 101 arrives staff's mobile phone 104 or electricity consumption client mobile phone 105 when gathering to exist when abnormal or can send SMS short message by GPRS module according to different clients' expanded function demand, is more conducive to staff and electricity consumption client grasps the first information.
Step 2: device parameter setting in net
Be the structural representation of intelligent GPRS service end concentrator of the present invention as shown in Figure 2, it comprises Micro-processor MCV 201, GPRS module 202, human-computer interface module 203, storage unit module 204, power module 205, LED state module 206, communication module 207.Wherein power module 205 provides electric power supply for whole intelligent GPRS service end concentrator, and Micro-processor MCV 201 is connected with GPRS module 202 by Transistor-Transistor Logic level serial ports, realizes intelligent GPRS service end concentrator and main website or handheld device and carries out uplink communication.
Wherein in net, the messaging parameter (APN title, IP address, port numbers, SIM card number) of each equipment is input to intelligent GPRS service end concentrator by described human-computer interface module 203 or by described communication module 207, then be saved in described storage unit module 204, also can be for other backstage main website and handheld device inquiry or change, the state of communicating by letter with described GPRS module 202 from described LED state module 206 observable intelligence GPRS service end concentrators.
Step 3: GP configuring RS communication module
Refer to accompanying drawing 3, it comprises that the miniature control chip 301 of GPRS, serial ports unit 302, antenna element 303, power supply unit 304, signal condition unit 305, SIM card unit 306, data transmit-receive state cell 307 form.Wherein said power supply unit 304 provides electric power supply for whole GPRS module, and described serial ports unit 302 adopts Transistor-Transistor Logic level interface to communicate and be connected with the Micro-processor MCV of intelligent GPRS service end concentrator.
Described antenna element 303 also comprises the enhancement mode antenna of access GPRS module, can improve whole communication signal strength.And described SIM card unit 306 provides reliable communication support for whole communication, the SIM card with proprietary network is installed.Described signal condition unit 305, data transmit-receive state cell 307 observables intelligence GPRS service end concentrators are at the GPRS signal condition in whole communication period and the data transmit-receive state of uplink and downlink communication in addition.
Step 4: link GPRS network, carry out data communication
Refer to accompanying drawing 4, link GPRS network, carries out data communication and is mainly divided into following components, and concrete configuration program circuit is please referred to accompanying drawing 4:
(1) module initialization
Micro-processor MCV 201 described in accompanying drawing 2, by the miniature control chip 301 of GPRS described in serial ports unit 302 and accompanying drawing 3 described in accompanying drawing 3, utilizes AT instruction to carry out initialization to it, and its initialization also comprises power-up initializing, the initialization of SMS short message.
(2) online model selection and configuration
After GPRS module is carried out to initialization, be service end Server pattern by selecting online pattern, and then be configured according to upper fidonetFido (TCP/IP or udp protocol) and port numbers are set, read and preserve local ip address and the port of GPRS module, thereby register connection.
(3) processing of devices communicating parameter
The messaging parameter of equipment comprises IP address, port numbers and SIM card number.The present invention has two kinds of methods to the processing of messaging parameter: wherein a kind of method is by artificial setting, because in APN private network, every SIM card of issuing all has unique IP address, port numbers and SIM card number.So installation testing or the messaging parameter by equipment in backstage main website handle net arrange to intelligent GPRS service end concentrator at the scene.
Another method is by sending the GPRS module of SMS short message to other communication facilities in net, take over party receive SMS short message verify legal after, by SMS short message, messaging parameter is returned to transmit leg again, thereby obtained the messaging parameter of other communication facilities in net.
(4) receive, send data by GPRS network
When intelligent GPRS service end concentrator registration connects after online, can select to send the task of data, specific procedure flow process can be consulted Fig. 5, in the time that intelligent GPRS service end concentrator has data to send, produce transmission event, thereby selective reception side is configured according to take over party's messaging parameter, then application sends, and sends data.
When client background main website or handheld device require access, while inquiring about intelligent GPRS service end concentrator, can produce transmission event to GPRS network, when intelligence GPRS service end concentrator receives the event of client, the authority of meeting Proactive authentication transmit leg, verify the messaging parameter that reads again transmit leg after legal, last reading out data content, responds according to concrete data command, and specific procedure flow process can be consulted Fig. 6.
(5) receive, send SMS short message
Intelligence GPRS service end concentrator, after power-up initializing, just can receive and send SMS short message.Content of the present invention also comprises utilizes SMS short message, can send electric weight, the electricity charge, power failure and overload messages to staff or electricity consumption client conditionally, also support that the staff with certain authority sends relevant operational order by SMS short message simultaneously.
Implementation method of the present invention is simple, effective, on the basis that does not increase any hardware cost, realize the networking mode of many-one, multicast communication by configuring intelligent GPRS service end concentrator, what make to net interior data sharedly reaches maximization, not only can reduce cost of investment, can also solve artificial scene and estimate the problem of copying.