Académique Documents
Professionnel Documents
Culture Documents
Changchun University of Science and Technology Changchun University of Science and Technology
gmgps@sohu.com bxbai@cust.edu.cn
position on the map by combining with GIS. Network II. GPRS VEHICLE LOCATION NETWORK SERVICE
command "Setting GPS Location Data Return Interval" The system is consisted of three major parts: GIS
from GIS network workstations and transmitting to the network workstations, network communications server
specified GPRS vehicle location terminal and receiving and GPRS vehicle location terminal, shown in Figure1.
r-------I
GPS location data packet pass backed from GPRS
1 � 1
vehicle location terminal and distributing to the GIS network 1 Q � 1
1 :l 2 " 1
appropriate GIS network workstations simultaneously. 1JI � � � I
GPRS vehicle location terminal is responsible for
,�� ! :=;
..!, = f.'
r1 I
:::i ::l ::L
,....
e
C"i
·1
n
receiving the command "Setting GPS Location Data I
�: ("l �
Return Interval "sent from network communications r� e §' ;
e 3" GPRS 'HofJ[dc
server and sending GPS location data collected by GPS ::I
X;::::� location
Internet
Figure]. GPRS Vehicle Location Network Service System
GIS network workstations combined with GIS IS The following is working principles for parts of the
client human-machine interface program based on system.
internet communications. GIS network workstations
A GIS Network Workstations
are regarded as client of network communications
First, we initialize two SOCKET based on TCP
server and have 2 SOCKET communications links
protocol in GIS network workstations program, the
within network communications server based on
one SOCKET initiatively sends connection request to
internet transmission by using TCP protocol. One is
setting command service port of network
used for sending command "Setting GPS Location
communication server program with specified Internet
Data Return Interval" to network communications
IP address .The other SOCKET initiatively sends
server and the other is used for receiving GPS location
connection request to GPS location data service port of
data packets from network communication server.
network communication server program .After the two
B Network Communications Server
SOCKET have been "Three-way Handshaking" , Two
Network communications server is the core of the SOCKET connections are built on TCP-based protocol
whole system, it is consisted of three sub-services, and to start full-duplex data transmission. Then, in GIS
they are also SOCKET communication services based network workstations program, it sends command
on TCP protocol. The first sub-service IS "Setting GPS Location Data Return Interval" to
command-receiving service which receives setting network communications server through SOCKET
command sent from GIS network workstations; the connected with the command service port , while
second sub-service is real-time GPS location data receives GPS location data send by GPRS vehicle
distribution services which sends GPS location data location terminal in certain interval by SOCKET
packet to GIS network workstations. The third connected with GPS location data service port from
sub-service is GPRS vehicle location terminal network communication server program. Finally, GIS
communication service which communicates with network workstations analyze of received GPS
GPRS vehicle location terminal, and sends setting location data, vehicles will be appeared as title in the
command to GPRS vehicle location terminal, while specified position on the map by combining with GIS.
receives GPS location data packet send by GPRS
B Network Communications Server
vehicle location terminal.
Not only is network communications server
C GPRS Vehicle Location Terminal
program server of GIS network workstations but also
GPRS vehicle location terminal is GPS location is server of vehicle location terminal based on GPRS
terminal installed in the vehicle and based on GPRS technology, it has a fixed IP address, three service
module communications, it includes GPRS ports based on TCP protocol provide three
communication module, GPS location module and sub-services for the system namely:
integrated circuit boards inside, GPRS antenna and command-receiving service, real-time data distribution
GPS antenna outside. GPRS module is connected to services, and GPRS vehicle location terminal
Internet through CMNET. It is regarded as client of communication service.
network communications server, and receives the First, the network communications server program
setting command sent from network communications opens the first listening port of command-receiving
server based on SOCKET of TCP protocol, and sends service, and it listens to the connection requests from
simultaneously GPS location data collected from GPS GIS network workstation and accepts connections,
module to the network communications server. establishes the first communication link. After the
402
Data Return Interval "issued by GIS network Main circuit system integration module is a small
Then, the network communications server program functions: First, automatic detection TCP connection
opens the second listening port of data distribution between GPRS module and GPRS vehicle location
service, and it listens to connection requests sent from terminal communication service, if TCP connection is
GIS network workstations and accepts connections, not in normal situation, then dead connection is shut
establishes the second communication link. After the down to rebuild a new connection. Second, main
completion of connection, the network communication circuit system integration module receives command
server program can send real-time GPS location data to "Setting GPS Location Data Return Interval "sent from
the corresponding GIS network workstations. GPRS vehicle location terminal communication
Finally, the network communications server services, and sets accordingly. Third, main circuit
program opens the third listening port of GPRS vehicle system integration module reads GPS location data
location terminal communication services, it listens to packet from GPS location module, and then sends data
connection request from GPRS vehicle location to GPRS vehicle location terminal communication
communication link with GPRS vehicle location Combination of three-part work principles ,we can
terminal. After the completion of connection, the see the overall work process of system , First, GIS
network communication server program can network workstations send command "Setting GPS
communicate with GPRS vehicle location terminal and Location Data Return Interval "to command -receiving
vehicle location and transmit command "Setting GPS service, then, GPRS vehicle location terminal is
Location Data Return Interval "issued by GIS network responsible to send the data to GPRS vehicle location
workstations to GPRS vehicle location terminal, while terminal .After that , GPRS vehicle location terminal
it receives GPS location data packet returned from sends back GPS location data to GPRS vehicle
GPRS module is connected to Internet through In order to check the feasibility of this system, we
CMNET to initialize SOCKET by TCP protocol; it conducted experiments.
takes the initiative connection request to GPRS
A. Laboratory EqUipment
location terminal communication services existed in
network communications server. After the completion The laboratory equipment included experimental
of connection, GPRS module can receive command car (license number Ji AR0767), a set of GPRS
"Setting GPS Location Data Return Interval "issued by Vehicle Location Terminal (containing GPRS-enabled
GIS network workstations from GPRS vehicle location mobile SIM card), a server (installed the network
terminal communication services, and it sends back communication service program), and a PC (GIS
GPS location data packet to GPRS Vehicle Location network workstations program), a fixed Internet IP
Terminal in certain interval.GPS location module is address was applied for server .In the experiment, we
responsible for receiving GPS satellite signals, and opened three network monitor programs to oversee
getting GPS location data, outputting GPS position TCP data packets transmitted from three sub-services,
data packets through the serial port by a data packet and gained the specific information including sending
403
B. Experimental Procedure Finally, GIS network workstations program
First, GPRS vehicle location terminal was installed received GPS location data packet, analyzed data
on the small car and connected to power supply, when packet, combined with GIS platform, vehicle was
the device was initialized; IP address of GPRS vehicle appeared as title in the corresponding position on the
location terminal and port were set as fixed IP address map, shown in Figure2.
404