Background technology
Trunked communication system, it is a kind of specific schedule mobile communication system of shared wireless channel, it has adopted multichannel common and the dynamic assignment Channel Technology in the modern communications, have exhale, scheduling features such as group calling, broadcast ﹠ call, be characterized in that call setup is fast, the user has different priorities, restriction call time, and possess the distant resurrection function of getting killed, be fit to very much public security system and use.
MPT-1327 is an international disclosed special-purpose land trunking mobile communication signaling standard, adopt the Dedicated Control Channel transmission means of 1200bits/s, defined the space signaling rule between group system controller (TSC) and the portable terminal (RU), Chinese public security is alert all carries out the MPT-1327 standard with trunking signal standard (GA176-1998) regulation aerial signaling.
GPS (Global Positioning System), i.e. GPS (Global Position System), it be really realized global, round-the-clock, continuous, real-time, based on the high precision wireless electricity navigation system of overhead satellites.GPS in the whole world Anywhere and terrestrial space can provide accurate three-dimensional position, speed and precise time information.GPS specifically is applied in public security work, and it relieves traffic congestion to commander, prevents, fights crime and maintain public order from having significant role.
The MPT-1327 trunked communication system has obtained extensive, deep application in national public security system at present, especially in recent years, along with city emergency interlock construction, anti-terrorism, the strong alert demand of public security science and technology, the trunked communication system of many base stations networking of gridding has begun to popularize gradually.If integrated GPS uses at the MPT-1327 trunked communication system, it can combine track and localization, warning, monitoring, command dispatching system together, form the public security traffic guidance system of modernization, mobilism, improve public security department's fast reaction and Cooperative Engagement Capability, strengthen the fighting capacity of public security troop.
At present, GPS is that the mode utilizing public network (as GPRS/GSM) or build a base station separately supports GPS and uses in the application of public security system mostly, organically do not couple together, demand a kind of method urgently based on MPT-1327 trunking communication system realizing GPS location with existing trunked communication system.
Summary of the invention
The purpose of this invention is to provide a kind of method based on MPT-1327 trunking communication system realizing GPS location, it can be based on the location of MPT-1327 trunking communication system realizing portable terminal (comprise Vehicle mounted station and hand-held station, be called for short the radio station) GPS.
A kind of method based on MPT-1327 trunking communication system realizing GPS location, its method step is as follows:
1) on portable terminal, embeds the GPS module, can obtain the GPS information of current location by this module;
2) GPS information by terminal is decomposed packing again, removes redundant data, adds destination address and self ID;
3) GPS information by terminal sends to system 2 kinds of modes: active and passive type.
A) passive type: dispatching desk can be by the positional information of control channel timing inquiry terminal, and terminal responds later at the querying command of receiving system, and latest position information is sent to system, and this mode is mainly carried out on control channel.
B) active: portable terminal can pass through software setting, and timing or spacing send the positional information of oneself to system by control channel under holding state; Under talking state, also automatically current position information is sent to system by traffic channel when pressing PTT (, must just can send) speech by the PTT key because of being half-duplex at every turn.
4) after the control channel of system or traffic channel receive the GPS information that terminal sends, send it to dispatching desk again by base station controller, dispatching desk finally is shown to the user by electronic chart (GIS) again, simultaneously also can on electronic chart, carry out real-time tracking and record, also can carry out the playback of circuit afterwards vehicle.
Key of the present invention is to find the link of a suitable transmission gps data information, because trunked communication system itself has data transmission capabilities, and in daily voice scheduling process, seldom use data-transformation facility, and also stipulated the detailed process and the signaling format of transfer of data in the MPT-1327 signaling standard, so the transmission of gps data information can utilize the data transmission channel of MPT-1327 trunked communication system.
Advantage of the present invention is:
1) in the integrated GPS positioning function of existing trunked communication system, therefore transmitting gps data information does not need special networking or uses public network, saves transmission link, saves cost.
2) the integrated GPS locating module of portable terminal, neglect neither in conversation, location, easy to use.
Therefore 3) construction of trunked communication system own just requires highly reliablely, real-time, and it is safe and efficient to have guaranteed that gps data transmits.
Embodiment
As shown in Figure 1 and Figure 2, the method that the present invention is based on MPT-1327 trunking communication system realizing GPS location is to embed the GPS module on each cluster radio station portable terminal, can obtain the GPS information of current location by this module; Portable terminal sends to trunked base station with GPS information, base station controller sends it to dispatching desk again, dispatching desk finally is shown to the user by electronic chart GIS, also can carry out real-time tracking and record to vehicle on electronic chart simultaneously, also can carry out the playback of circuit afterwards.
The method that the present invention is based on MPT-1327 trunking communication system realizing GPS location is mainly implemented from gps data collection, gps data transmission, three aspects of GPS locating and displaying.
1) gps data collection
Gps data meets the ASC II sign indicating number agreement of NMEA 0183, NMEA 0183 is a kind of navigation, the sea-freight aspect standard relevant for digital signal transfers, this standard definition electronic signal needed host-host protocol, transmission data time, and indicated the serial data interface that information format needs 4800bps.
Portable terminal (as the VX2509 Vehicle mounted station) afterbody is reserved with a multi-functional serial ports, comprises power supply output, data input, data output etc.After the GPS module was connected to this serial ports, the GPS module was started working, the search usable satellite, obtain current location GPS information.
2) gps data transmits
Original gps data information is the ascii character form, and redundancy is very high, and a lot of garbages are arranged again, waste system resource.Portable terminal decomposes packing again with gps data, removes redundant data, adds to send destination and portable terminal self ID, is converted to binary format simultaneously, packed data.
Portable terminal sends GPS information to system have 2 kinds of modes: active and passive type.
A) passive type: dispatching desk can be set and follow the tracks of the vehicle tabulation, then periodically, circulation sends querying command to dispatch server, dispatch server passes to base station controller with this order, base station controller sends to control channel again, control channel sends querying command according to the MPT-1327 signaling format to terminal again, terminal responds later at the querying command of receiving control channel, and up-to-date GPS positional information is sent to system.This mode is mainly carried out (referring to Fig. 6) on the control channel of trunked communication system.
B) active: portable terminal can pass through software setting, and timing or spacing send the positional information of oneself to system by control channel under holding state; Under talking state, press PTT when speech also automatically the traffic channel of current position information by trunked communication system to be sent to system (referring to Fig. 3, Fig. 4, Fig. 5) at every turn.
3) GPS locating and displaying
After the control channel of system or traffic channel receive the GPS information that terminal sends, send to dispatch server by base station controller, dispatch server sends it to dispatching desk again and (annotates: channel controller, base station controller, dispatch server, dispatching desk all is a wired connection, transfer of data is undertaken by TCP/IP), dispatching desk extracts the number of portable terminal, resolve the GPS positional information, (GIS) finally is shown to the user by electronic chart, simultaneously also can on electronic chart, carry out real-time tracking and record, also can carry out the playback of circuit afterwards vehicle.
The present invention will be further described below in conjunction with specific embodiment:
Suppose that certain city has a trunked base station and integrated GPS application function, the embedded GPS module in radio station 201.
Embodiment 1. radio station time-triggered report GPS positional informations (referring to Fig. 4):
1) at first regularly sent the GPS positional information in 60 seconds by writing yard software setting 201 radio station.
2) radio station enters holding state, GPS module initialization, search usable satellite, the GPS information of acquisition current location.
3) start timer.
4) timing arrives, and the radio station obtains locator data from the GPS module, comprises latitude, longitude, ground speed, course, ground and other information.The radio station unpacks data, adds the destination address of transmission and the id number in 201 radio station self, sends to channel controller by MPT-1327 short data transmission channel.
5) channel controller is received, the judgement destination address is a dispatch server, passes to base station controller by Ethernet, and base station controller is passed to dispatch server by Ethernet again, passes to dispatch terminal at last.
6) dispatch terminal unpacks, and draws the current location information in radio station 201, is shown on electronic chart.
7) repeating step 3).
Embodiment 2, and dispatch terminal is inquired about the current location information (referring to Fig. 6) in 201 radio station
1) radio station enters holding state, GPS module initialization, search usable satellite, the GPS information of acquisition current location.
2) dispatch terminal is clicked vehicle and is sent inquiry 201 radio station current location information orders on the scheduling interface.
3) dispatch server receives orders, and passes to base station controller, and base station controller is passed to channel controller again.
4) channel controller is received, takes out destination address, sends to radio station 201 by MPT-1327 short data transmission channel.
5) receive in 201 radio station, obtains positional information from the GPS module immediately, and data are unpacked, and adds the destination address of transmission and the id number in 201 radio station self, sends to channel controller by MPT-1327 short data transmission channel.
6) channel controller is received, the judgement destination address is a dispatch server, passes to base station controller by Ethernet, and base station controller is passed to dispatch server by Ethernet again, passes to dispatch terminal at last.
7) dispatch terminal unpacks, and draws the current location information in radio station 201, is shown on electronic chart.