Base station positioning platform Interface Protocol

Source: Internet
Author: User
Tags password protection

The document is not beautiful. Please forgive me.

 

 

Locating platform Interface Protocol

 

Document No.

2012111101

Version no.

V 1.3

Confidentiality level

Password protection

Document Author

Terry

Audit

 

 

 

 

2012-11-11


Document change history

Version Number

Change Time

Change content

Written

V1.0

2012-11-11

Create draft

Terry

V1.1

2012-11-25

Improve HTTP URLs

Terry

V1.2

2012-12-18

Added the HTTP request poi Interface

Terry

V1.3

2012-12-24

Add text format for HTTP requests

Terry

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


Contents

Contents...
3

I,
Market demand... 4

II,
Technical Interface... 4

III,
Technical requirements... 5

Copyright statement...
5



 

I. Market Demand

1.1 Use the base station information and other related information in the text message hyperlink to open the corresponding webpage and display the current location map and related location information.

1.2 the target device submits data to the positioning platform over the Internet, and the positioning platform delivers corresponding latitude and longitude information and address description information

Ii. Technical Interface

2.1 SMS Interface

1. the user sends "W" to the positioner

2. The locator replies:

2.1 battery = 67%, http://minigps.net/loc.do? X = 358688 & Y =-8846 & Z = 000000158 & n = 0 & C = 460 & A = 9347 & E = 3932 & s = 100 & V = m1.0 & l = en_zn & P = 3

2.2 X = 861612 is the first six digits of IMEI

Y = 12345678 is the Calculated CRC.

Z = 011639475 is the last 9 digits of IMEI

2.3 CRC calculation requirements:

STR = x + N + Z + C + A + E + S + V

CRC = crc16 (STR)

2.4 Where

N: MNC

C: MCC

A: LAC

E: cellid

V: Version Number (within 6 digits)

S: Signal Strength Ratio

L: Language

Battery indicates the battery ratio.

2.5 P = various parameters, such as map or not:

1 indicates plain text

2 Images

3 text + image

Click "superconnect" to open the location information in the default browser.

2.2 Network Interfaces

1. The terminal device submits the base station information to the platform through the Internet

2. Request format

Http://minigps.net/locpoi.do? X = 358688 & Y =-8846 & Z = 000000158 & n = 0 & C = 460 & A = 9347 & E = 3932 & s = 100 & V = m1.0 & l = en_zn & P = 3

Note contenttype: Application/JSON; charset = UTF-8

1.1 x = 861612 is the first six digits of IMEI

Y = 12345678 is the Calculated CRC.

Z = 011639475 is the last 9 digits of IMEI

1.2 CRC calculation requirements:

STR = x + N + Z + C + A + E + S + V

CRC = crc16 (STR)

1.3 where

N: MNC

C: MCC

A: LAC

E: cellid

V: Version Number (within 6 digits)

S: Signal Strength Ratio

L: Language

Battery indicates the battery ratio.

1.4 P = various parameters, such as map or not:

1 indicates plain text

2 Images

3 text + image

3. return data in JSON format

Status: 0 // 0 indicates that the operation is successful, and the other is the cause of the error.

Cause: OK // cause of error

Map: Map providers such as Baidu // Google

Lat: 22.3245

Lon: 114.2456

Address: Hubei, Shenzhen, China

Example:

{

"Status": 0,

"Cause": "OK ",

"Map": "Baidu ",

"Lat": 22.579239885,

"Lon": 113.873464775,

"Address": "xinhu Road, Baoan District, Shenzhen City, Guangdong Province ;"

}

2.3 Network Interfaces

1. The terminal device submits the base station information to the platform through the Internet

2. Request format

Http://minigps.net/loctext.do? X = 358688 & Y =-8846 & Z = 000000158 & n = 0 & C = 460 & A = 9347 & E = 3932 & s = 100 & V = m1.0 & l = en_zn & P = 3

Note contenttype: text/plain

 

1.5 x = 861612 is the first six digits of IMEI

Y = 12345678 is the Calculated CRC.

Z = 011639475 is the last 9 digits of IMEI

1.6 CRC calculation requirements:

STR = x + N + Z + C + A + E + S + V

CRC = crc16 (STR)

1.7 Where

N: MNC

C: MCC

A: LAC

E: cellid

V: Version Number (within 6 digits)

S: Signal Strength Ratio

L: Language

Battery indicates the battery ratio.

1.8 p = various parameters, such as map or not:

1 indicates plain text

2 Images

4 text + Images

3. The returned data is in string format, fields are separated by '|', and Chinese characters are in utf8 format.

Status: 0 // 0 indicates that the operation is successful, and the other is the cause of the error.

Cause: OK // cause of error

Map: Map providers such as Baidu // Google

Lat: 22.3245

Lon: 114.2456

Address: Hubei, Shenzhen, China

Example:

0 | OK | Baidu | 22.3245 | 114.2456 | hutian, Shenzhen, China

Copyright statement

Legal Statement:

All rights reserved by Terry.

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.