Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, the Big Dipper bluetooth users terminal data Interface Expanding agreement of passing through that provides a kind of and support wireless transmission, widens dipper system range of application, effective guarantee user service data safety realizes the method and system that between Big Dipper bluetooth users terminal and aobvious control terminal, multi-service is accessed.
The object of the invention is to be achieved through the following technical solutions: the method that realizes multi-service access between Big Dipper bluetooth users terminal and aobvious control terminal by Big Dipper bluetooth users terminal data Interface Expanding agreement, existing Big Dipper bluetooth users terminal data interface protocol is expanded, detect to realize GPRS module status, long-range setting with read reporting position frequency, the Big Dipper reports address, control centre's parameter, data communication pattern, key information, the output of request GPS information, it comprises following one or more step:
(1) GPRS module status detects:
Aobvious control terminal sends GPRS module status to Big Dipper bluetooth users terminal and detects instruction, in order to detect the state of GPRS module, comprises whether SIM card can be used, and whether network connects and information strength;
Big Dipper bluetooth users terminal sends the instruction of GPRS module status information to aobvious control terminal, in order to return to the state information of GPRS module;
(2) arrange and read reporting position frequency:
Aobvious control terminal sends and arranges and read the instruction of reporting position frequency to Big Dipper bluetooth users terminal;
Big Dipper bluetooth users terminal sends the instruction of reporting position frequency to aobvious control terminal;
(3) arrange and read the Big Dipper and report address:
Aobvious control terminal arranges the Big Dipper to the transmission of Big Dipper bluetooth users terminal and reports address instruction;
Big Dipper bluetooth users terminal sends the Big Dipper to aobvious control terminal and reports address instruction;
Aobvious control terminal reads the Big Dipper to the transmission of Big Dipper bluetooth users terminal and reports address instruction;
Big Dipper bluetooth users terminal sends the Big Dipper to aobvious control terminal and reports address instruction;
(4) arrange and read control centre's parameter:
Aobvious control terminal sends control centre's parameter instruction is set to Big Dipper bluetooth users terminal;
Big Dipper bluetooth users terminal sends control centre's parameter instruction to aobvious control terminal;
Aobvious control terminal sends and reads control centre's parameter instruction to Big Dipper bluetooth users terminal;
Big Dipper bluetooth users terminal sends control centre's parameter instruction to aobvious control terminal;
(5) arrange and reading out data communication operation mode:
Aobvious control terminal sends and arranges and the instruction of reading out data communication operation mode to Big Dipper bluetooth users terminal;
Big Dipper bluetooth users terminal sends data communication mode instruction to aobvious control terminal;
(6) arrange and read key information:
Aobvious control terminal sends key information instruction is set to Big Dipper bluetooth users terminal;
Big Dipper bluetooth users terminal sends key information instruction to aobvious control terminal;
Aobvious control terminal sends and reads key information instruction to Big Dipper bluetooth users terminal;
Big Dipper bluetooth users terminal sends key information instruction to aobvious control terminal;
(7) request GPS information output:
Aobvious control terminal sends request GPS information output order to Big Dipper bluetooth users terminal;
Big Dipper bluetooth users terminal sends the GPS information of NMEA0183 form to aobvious control terminal.
Instruction described in this method is by instruction type, length, station address, extend information content and verification and form, wherein instruction type is that $ YHZL is the instruction that aobvious control terminal is sent to Big Dipper bluetooth users terminal, instruction type for $ YHXX be the instruction that Big Dipper bluetooth users terminal is sent to aobvious control terminal.
Extend information content described in this method is made up of command header and the adjustable length information content of 32bit.
Instruction type described in this method is the instruction of $ YHZL, and its extend information content comprises following one or more forms:
(1) GPRS module status detects instruction, in order to detect the state of GPRS module, comprises whether SIM card can be used, and whether network connects and information strength, and the command header of its extend information content is NTZT, and the information content is vacancy;
(2) arrange and read the instruction of reporting position frequency, the command header of its extend information content is SBPD, and the information content is made up of the mode of operation of 8bit and the frequency interval of 16bit;
(3) Big Dipper is set and reports address instruction, the command header of its extend information content is BDSZ, and what the information content was 24bit reports address;
(4) read the Big Dipper and report address instruction, the command header of its extend information content is BDDQ, and the information content is vacancy;
(5) control centre's parameter instruction is set, the command header of its extend information content is IPSZ, and the information content is made up of IP address, the port numbers of 16bit and the device number of 24bit of 32bit;
(6) read control centre's parameter instruction, the command header of its extend information content is IPDQ, and the information content is vacancy;
(7) arrange and the instruction of reading out data communication operation mode, the command header of its extend information content is SJTX, and the information content is made up of the mode of operation of 8bit and the communication pattern of 8bit;
(8) key information instruction is set, the command header of its extend information content is KYSZ, and the information content is made up of the message length of the information type of 8bit, 16bit and the information content that is less than 640bit;
(9) read key information instruction, the command header of its extend information content is KYDQ, the information type that the information content is 8bit;
(10) request GPS information output order, the command header of its extend information content is GPSQ, the output frequency that the information content is 8bit.
Instruction type described in this method is the instruction of $ YHXX, and its extend information content comprises following one or more forms:
(1) GPRS module status information instruction, in order to return to the state information of GPRS module, the data head of its extend information content is NTXX, the information content is made up of the card state of 8bit, the network registry situation of 8bit and the signal strength signal intensity of 8bit;
(2) reporting position frequency instruction, the data head of its extend information content is PDXX, the frequency interval that the information content is 16bit;
(3) Big Dipper reports address instruction, and the data head of its extend information content is BDDZ, and what the information content was 24bit reports address;
(4) control centre's parameter instruction, the data head of its extend information content is IPDZ, the information content is by IP address, the port numbers of 16bit and the device number of 24bit of 32bit;
(5) data communication mode instruction, the data head of its extend information content is TXMS, the communication pattern that the information content is 8bit;
(6) key information instruction, the data head of its extend information content is KYXX, the information content is made up of the message length of the information type of 8bit, 16bit and the information content that is less than 640bit.
$ YHZL described in this method and $ YHXX, be the subset of existing Big Dipper bluetooth users terminal data interface protocol, keeps and existing Big Dipper bluetooth users terminal data interface protocol compatibility.
Realize the system of multi-service access between Big Dipper bluetooth users terminal and aobvious control terminal by Big Dipper bluetooth users terminal data Interface Expanding agreement, it comprises aobvious control terminal and at least one Big Dipper bluetooth users terminal, aobvious control terminal and Big Dipper bluetooth users terminal are passed through serial ports wired connection, or connect by blue teeth wireless.
Aobvious control terminal described in native system at least comprises following one or more module:
(1) GPRS module status detects, and for detection of the state of GPRS module, comprises whether SIM card can be used, and whether network connects and signal strength signal intensity;
(2) arrange and read reporting position frequency, for arranging and read the frequency interval of reporting position;
(3) arrange with reading the Big Dipper and report address, report address information for arranging and reading the Big Dipper;
(4) arrange and read control centre's parameter, for arranging and read the parameter information of control centre;
(5) arrange and reading out data communication operation mode, for arranging and read the mode of operation of transceiving data;
(6) arrange and read key information, for arranging and the content of reading information;
(7) request GPS information output, exports GPS information for request.
Big Dipper bluetooth users terminal described in native system at least comprises following one or more module:
(1) GPRS module status information, for returning to the state information of GPRS module to aobvious control terminal;
(2) reporting position frequency information, for reporting frequency to aobvious control terminal home position;
(3) Big Dipper reports address information, reports address for returning to the Big Dipper to aobvious control terminal;
(4) control centre's parameter information, for returning to control centre's parameter to aobvious control terminal;
(5) data communication pattern, for returning to the mode of operation of transceiving data to aobvious control terminal;
(6) key information, for the content to aobvious control terminal return information.
The invention has the beneficial effects as follows: the present invention has increased the wireless transmission methods such as Bluetooth transmission on the basis of the Big Dipper 4.0 agreements, realize the expanded function such as management and data interaction to Big Dipper bluetooth users terminal, the Big Dipper user who realizes this interface protocol still can the Big Dipper user terminal of unrealized Extended Protocol carries out common message intercommunication with only having realized the Big Dipper 4.0 agreements; This agreement has realized many new business functions, greatly widen the range of application of dipper system, business function interface is encapsulated in new communication protocol, directly realize the distinctive business function of user at hardware layer, by the present invention, can effectively improve user's development efficiency, save development cost; Because this agreement is customization exploitation, safety that can effective guarantee user service data, reduces the danger of user service data information leakage.
Embodiment
Below in conjunction with accompanying drawing, technical scheme of the present invention is described in further detail, but protection scope of the present invention is not limited to the following stated.
Realize the method for multi-service access between Big Dipper bluetooth users terminal and aobvious control terminal by Big Dipper bluetooth users terminal data Interface Expanding agreement, existing Big Dipper bluetooth users terminal data interface protocol is expanded, detect to realize GPRS module status, long-range setting with read reporting position frequency, the Big Dipper reports address, control centre's parameter, data communication pattern, key information, the output of request GPS information, it comprises following one or more step:
(1) GPRS module status detects, as shown in Figure 1:
Aobvious control terminal sends GPRS module status to Big Dipper bluetooth users terminal and detects instruction, in order to detect the state of GPRS module, comprises whether SIM card can be used, and whether network connects and information strength;
Big Dipper bluetooth users terminal sends the instruction of GPRS module status information to aobvious control terminal, in order to return to the state information of GPRS module;
(2) arrange and read reporting position frequency, as shown in Figure 2:
Aobvious control terminal sends and arranges and read the instruction of reporting position frequency to Big Dipper bluetooth users terminal;
Big Dipper bluetooth users terminal sends the instruction of reporting position frequency to aobvious control terminal;
(3) arrange with reading the Big Dipper and report address, as shown in Figure 3:
Aobvious control terminal arranges the Big Dipper to the transmission of Big Dipper bluetooth users terminal and reports address instruction;
Big Dipper bluetooth users terminal sends the Big Dipper to aobvious control terminal and reports address instruction;
Aobvious control terminal reads the Big Dipper to the transmission of Big Dipper bluetooth users terminal and reports address instruction;
Big Dipper bluetooth users terminal sends the Big Dipper to aobvious control terminal and reports address instruction;
(4) arrange and read control centre's parameter, as shown in Figure 4:
Aobvious control terminal sends control centre's parameter instruction is set to Big Dipper bluetooth users terminal;
Big Dipper bluetooth users terminal sends control centre's parameter instruction to aobvious control terminal;
Aobvious control terminal sends and reads control centre's parameter instruction to Big Dipper bluetooth users terminal;
Big Dipper bluetooth users terminal sends control centre's parameter instruction to aobvious control terminal;
(5) arrange and reading out data communication operation mode, as shown in Figure 5:
Aobvious control terminal sends and arranges and the instruction of reading out data communication operation mode to Big Dipper bluetooth users terminal;
Big Dipper bluetooth users terminal sends data communication mode instruction to aobvious control terminal;
(6) arrange and read key information, as shown in Figure 6:
Aobvious control terminal sends key information instruction is set to Big Dipper bluetooth users terminal;
Big Dipper bluetooth users terminal sends key information instruction to aobvious control terminal;
Aobvious control terminal sends and reads key information instruction to Big Dipper bluetooth users terminal;
Big Dipper bluetooth users terminal sends key information instruction to aobvious control terminal;
(7) request GPS information output, as shown in Figure 7:
Aobvious control terminal sends request GPS information output order to Big Dipper bluetooth users terminal;
Big Dipper bluetooth users terminal sends the GPS information of NMEA0183 form to aobvious control terminal.
Instruction described in this method is by instruction type, length, station address, extend information content and verification and form, wherein instruction type is that $ YHZL is the instruction that aobvious control terminal is sent to Big Dipper bluetooth users terminal, instruction type for $ YHXX be the instruction that Big Dipper bluetooth users terminal is sent to aobvious control terminal.
Extend information content described in this method is made up of name head and the adjustable length information content of 32bit.
It is as follows that aobvious control terminal is sent to the form of instruction of Big Dipper bluetooth users terminal:
It is as follows that Big Dipper bluetooth users terminal is sent to the form of instruction of aobvious control terminal:
Instruction type described in this method is the instruction of $ YHZL, and its extend information content comprises following one or more forms:
(1) GPRS module status detects instruction, in order to detect the state of GPRS module, comprises whether SIM card can be used, and whether network connects and information strength, and the command header of its extend information content is NTZT, and the information content is vacancy;
(2) arrange and read the instruction of reporting position frequency, the command header of its extend information content is SBPD, and the information content is made up of the mode of operation of 8bit and the frequency interval of 16bit,
Mode of operation: 0 reads, 1-arranges,
Frequency interval: 2 bytes, size is 0~65535, and unit is second, and frequency is 0 o'clock, and single reports, and this parameter is only effective in the time of setting operation, and when read operation, this invalid parameters, does not make a decision;
(3) Big Dipper is set and reports address instruction, the command header of its extend information content is BDSZ, and what the information content was 24bit reports address, and reporting address is 3 bytes, and high byte is front, and low byte is rear, Big Dipper user IC-card;
(4) read the Big Dipper and report address instruction, the command header of its extend information content is BDDQ, and the information content is vacancy;
(5) control centre's parameter instruction is set, the command header of its extend information content is IPSZ, and the information content is made up of IP address, the port numbers of 16bit and the device number of 24bit of 32bit,
IP address: 4 bytes, the numeral of each byte representation 0~255,
Port numbers: 2 bytes, Digital size is 0~65535, and high byte is front, and low byte is rear,
Device number: 3 bytes, high byte is front, and low byte is rear, Big Dipper command type user IC-card;
(6) read control centre's parameter instruction, the command header of its extend information content is IPDQ, and the information content is vacancy;
(7) arrange and the instruction of reading out data communication operation mode, the command header of its extend information content is SJTX, and the information content is made up of the mode of operation of 8bit and the communication pattern of 8bit,
Mode of operation: 1-reads, 0 arranges,
Communication pattern: 0 Big Dipper, 1GPRS network, 2 is automatic, and this parameter is only effective in the time that " setting " operates, and other operate this invalid parameters, do not make a decision;
(8) key information instruction is set, the command header of its extend information content is KYSZ, and the information content is made up of the message length of the information type of 8bit, 16bit and the information content that is less than 640bit,
Information type: 0 information of having no mishap, 1-warning distress signals,
Message length: 2 bytes,
The information content: mostly be 640bit most, conventionally determine by the communication, levels of current Big Dipper user IC-card, multipotency as in Big Dipper level Four user IC-card sends 840bit telegraph text data, also should deduct other data 192bit in button message information;
(9) read key information instruction, the command header of its extend information content is KYDQ, the information type that the information content is 8bit,
Information type: 0 information of having no mishap, 1-warning distress signals;
(10) request GPS information output order, the command header of its extend information content is GPSQ, the output frequency that the information content is 8bit,
Output frequency: 1 byte, unit is second, 1~255,0 single.
Instruction type described in this method is the instruction of $ YHXX, and its extend information content comprises following one or more forms:
(1) GPRS module status information instruction, in order to return to the state information of GPRS module, the data head of its extend information content is NTXX, the information content is made up of the card state of 8bit, the network registry situation of 8bit and the signal strength signal intensity of 8bit,
Card state: 0 card does not exist, and 1-card exists,
Network registry situation: 0 not registration, GPRS service is unavailable, and user can ask to connect GPRS,
1-is registered, local network,
2 not registrations, terminal is being attempted interconnection network, and GPRS service is available, but PLMN is unavailable, when PLMN can use, will connect GPRS service,
3 registrations are rejected, and GPRS service is unavailable, and user's request also cannot connect,
4 the unknowns,
5 is registered, in roaming,
Signal strength signal intensity: 1~31 represents 111dbm~52dbm, each figure blank 4dbm,
0 represents that signal is at 115dbm and following;
(2) reporting position frequency instruction, the data head of its extend information content is PDXX, the frequency interval that the information content is 16bit, frequency is spaced apart 2 bytes, and size is 0~65535, and unit is second, and frequency is 0 o'clock, single reports;
(3) Big Dipper reports address instruction, and the data head of its extend information content is BDDZ, and what the information content was 24bit reports address, and reporting address is 3 bytes, and high byte is front, and low byte is rear, Big Dipper user IC-card;
(4) control centre's parameter instruction, the data head of its extend information content is IPDZ, the information content is by IP address, the port numbers of 16bit and the device number of 24bit of 32bit,
IP address: 4 bytes, the numeral of each byte representation 0~255,
Port numbers: 2 bytes, Digital size is 0~65535, and high byte is front, and low byte is rear,
Device number: 3 bytes, high byte is front, and low byte is rear, Big Dipper command type user IC-card;
(5) data communication mode instruction, the data head of its extend information content is TXMS, the communication pattern that the information content is 8bit,
Communication pattern: 0 Big Dipper, 1GPRS network, 2 is automatic;
(6) key information instruction, the data head of its extend information content is KYXX, the information content is made up of the message length of the information type of 8bit, 16bit and the information content that is less than 640bit,
Information type: 0 information of having no mishap, 1-warning distress signals,
Message length: 2 bytes,
The information content: variable-length, the longest 80 bytes that are less than.
$ YHZL described in this method and $ YHXX, be the subset of existing Big Dipper bluetooth users terminal data interface protocol, keeps and existing Big Dipper bluetooth users terminal data interface protocol compatibility.
Realize the system of multi-service access between Big Dipper bluetooth users terminal and aobvious control terminal by Big Dipper bluetooth users terminal data Interface Expanding agreement, it comprises aobvious control terminal and at least one Big Dipper bluetooth users terminal, aobvious control terminal and Big Dipper bluetooth users terminal are passed through serial ports wired connection, or connect by blue teeth wireless.
Aobvious control terminal described in native system at least comprises following one or more module:
(1) GPRS module status detects, and for detection of the state of GPRS module, comprises whether SIM card can be used, and whether network connects and signal strength signal intensity;
(2) arrange and read reporting position frequency, for arranging and read the frequency interval of reporting position;
(3) arrange with reading the Big Dipper and report address, report address information for arranging and reading the Big Dipper;
(4) arrange and read control centre's parameter, for arranging and read the parameter information of control centre;
(5) arrange and reading out data communication operation mode, for arranging and read the mode of operation of transceiving data;
(6) arrange and read key information, for arranging and the content of reading information;
(7) request GPS information output, exports GPS information for request.
Big Dipper bluetooth users terminal described in native system at least comprises following one or more module:
(1) GPRS module status information, for returning to the state information of GPRS module to aobvious control terminal;
(2) reporting position frequency information, for reporting frequency to aobvious control terminal home position;
(3) Big Dipper reports address information, reports address for returning to the Big Dipper to aobvious control terminal;
(4) control centre's parameter information, for returning to control centre's parameter to aobvious control terminal;
(5) data communication pattern, for returning to the mode of operation of transceiving data to aobvious control terminal;
(6) key information, for the content to aobvious control terminal return information.