Lamborghini Huracán LP 610-4 t

Command Write Configure - GSM_CELLULAR

<Header> +

<Payload_length>

<Payload>

PL0

PL1

PL2

PL3

PL4

PL5

$ESP_OK|xx|

‘W’

‘s’

Infor 1

Infor 2

Infor 3

Infor 4

...


Name CFG : GSM_CELLULAR

Number of field values : 13

 

Payload

Index

Type value

Min

Value

Max

Value

Default

Value

Min Length

Max Length

Describe

Unit

PL2

INTEGER

0

1

0

-

-

Type configure GSM

 

PL3

INTEGER

0

1

0

-

-

View AT TX-RX

 

PL4

PRINT

-

-

1234

1

40

SIM PIN

 

PL5

PRINT

-

-

w3-world

1

40

APN network

 

PL6

PRINT

-

-

mms

1

40

GPRS Username

 

PL7

PRINT

-

-

mms

1

40

GPRS Password

 

PL8

INTEGER

0

1

1

-

-

Auto restart GSM

 

PL9

INTEGER

0

14

7

-

-

Type Max Baudrate

 

PL10

INTEGER

0

21

0

-

-

Net Mode

 

PL11

BIT

-

-

10000000000000000000000

23

23

GSM/2G/3G Band

 

PL12

BIT

-

-

100000000000000000000000000000000000000000000000000000000000000000

66

66

4G/LTE Band

 

PL13

BIT

-

-

10000000

8

8

TDS Band

 

PL14

AT_CODE

-

-

[RST][COM^9600][DLY^1][ATE0^5^10^OK][AT+CMEE=0^5^10^OK^ok][CLR][PIN^1234][CFG][NET^w3-world^mms^mms][COM^115200]

0

1500

Custom AT Code

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 



PL0

PL1

PL2

Type configure GSM

Unit

‘W’

‘s’

0

Auto Configure

 

 

 

1

Custom AT Configure

 


PL0

PL1

PL3

View AT TX-RX

Unit

‘W’

‘s’

0

Disable View AT TX-RX

 

 

 

1

Enable View AT TX-RX

 


PL0

PL1

PL8

Auto restart GSM

Unit

‘W’

‘s’

0

Disable Auto restart GSM

 

 

 

1

Enable Auto restart GSM

 

 

 


PL0

PL1

PL9

Type Max Baudrate

Unit

‘W’

‘s’

0

1200

bps

 

 

1

2400

bps

 

 

2

4800

bps

 

 

3

9600

bps

 

 

4

19200

bps

 

 

5

38400

bps

 

 

6

57600

bps

 

 

7

115200

bps

 

 

8

230400

bps

 

 

9

250000

bps

 

 

10

460800

bps

 

 

11

500000|

bps

 

 

12

921600

bps

 

 

13

1000000

bps

 

 

14

2000000

bps

 


PL0

PL1

PL10

Net Mode

Unit

‘W’

‘s’

0

AUTO

 

 

 

1

GSM only

 

 

 

2

UMTS only

 

 

 

3

LTE only

 

 

 

4

LTE_M1 only

 

 

 

5

LTE_NB1 only

 

 

 

6

EGPRS only

 

 

 

7

WCDMA only

 

 

 

8

TDS_CDMA only

 

 

 

9

EVDO only

 

 

 

10

GSM + EGPRS

 

 

 

11

GSM + LTE

 

 

 

12

GSM + UMTS

 

 

 

13

GSM + WCDMA

 

 

 

14

GSM + TDSCDMA

 

 

 

15

CDMA + EVDO

 

 

 

16

GSM + UMTS + LTE

 

 

 

17

GSM + WCDMA + LTE

 

 

 

18

GSM + EGPRS + LTE

 

 

 

19

GSM + TDSCDMA + LTE

 

 

 

20

GSM + WCDMA + TDSCDMA

 

 


PL0

PL1

PL11

GSM/2G/3G Band

Unit

‘W’

‘s’

BIT1

Auto

 

 

 

BIT2

Any_Value

 

 

 

BIT3

GSM_450

 

 

 

BIT4

GSM_480

 

 

 

BIT5

GSM_750

 

 

 

BIT6

GSM_850

 

 

 

BIT7

GSM_900

 

 

 

BIT8

GSM_1800

 

 

 

BIT9

GSM_1900

 

 

 

BIT10

GSM_EGSM_900

 

 

 

BIT11

GSM_PGSM_900

 

 

 

BIT12

GSM_RGSM_900

 

 

 

BIT13

GSM_DCS_1800

 

 

 

BIT14

GSM_PCS_1900

 

 

 

BIT15

WCDMA_800

 

 

 

BIT16

WCDMA_850

 

 

 

BIT17

WCDMA_VIII_900

 

 

 

BIT18

WCDMA_III_1700

 

 

 

BIT19

WCDMA_IV_1700

 

 

 

BIT20

WCDMA_IX_1700

 

 

 

BIT21

WCDMA_PCS_1900

 

 

 

BIT22

WCDMA_IMT_2000

 

 

 

BIT23

WCDMA_VII_2600

 

 

PL0

PL1

PL12

4G/LTE Band

Unit

‘W’

‘s’

BIT1

Auto

 

 

 

BIT2

Any_Value

 

 

 

BIT3

Band 0

 

 

 

BIT4

Band 1

 

 

 

BIT5

Band 2

 

 

 

BIT6

Band 3

 

 

 

...

 

 

 

 

BIT X

Band (X-3)

 

 

 

...

 

 

 

 

BIT66

Band 63

 

 



PL0

PL1

PL13

TDS Band

Unit

‘W’

‘s’

BIT1

Auto

 

 

 

BIT2

Any_Value

 

 

 

BIT3

A (1900-1920 MHz, 2010-2020 MHz)

 

 

 

BIT4

B (1850-1910 MHz, 1930-1990 MHz)

 

 

 

BIT5

C (1910-1930 MHz)

 

 

 

BIT6

D (2570-2620 MHz)

 

 

 

BIT7

E (2300-2400 MHz)

 

 

 

BIT8

F (1880-1920 MHz)

 

 




Type

Custom AT Code

Example

[PWR^a]

Retart GSM device by pull-down PWR pin (in a second) and wait until GSM wakeup + ready.

[PWR^2]

[RST]

Retart/Reset GSM device by AT command and wait until GSM ready.

[RST]

[COM^a]

Try scan to communicate with GSM device at baudrate a bps. If failed, auto select baudrate value and try again.

[COM^9600]

[CLR]

Clear all RX buffer UART3.

[CLR]

[DLY^a]

Delay in a Second.

[DLY^1]

[PIN^abcd]

If SIM locked , set PIN SIM is abcd to un-lock SIM.

[PIN^1234]

[CFG]

Auto send AT to Configure Mode / Band /... for GSM device.

[CFG]

[NET^a^b^c]

Auto send AT to Open Network for GSM device.

APN String Network: a

GPRS Username: b

GPRS Password: c

[NET^w3-world^mms^mms]

[TCP^a^b^c]

Connect to Server IP: a,Port: b .

If connect success , wait respond from Server after send string c .

( Auto replace \r \n to 0x0D 0x0A as byte data)

( Just for Dev)

[TCP^google.com^80^GET /search?q=esprtk HTTP/1.1\r\nHost: www.google.com\r\nConnection: close\r\n\r\n]

[a^b^c^d]

Send string a

Wait until respond contain d

Max time wait : b

If not receive, try again, max try : c

[ATE0^5^10^OK]

[a^b^c^d1^d2]

Send string a

Wait until respond contain d1 or d2

Max time wait : b

If not receive, try again, max try : c

[AT+CMEE=0^5^10^OK^ok]

...

 

 

[a^b^c^d1^d2^d3^d4^d5^d6]

Send string a

Wait until respond contain d1 or d2 or d3 (or d4 or d5 or d6 .)

Max time wait : b

If not receive, try again, max try : c

[AT+CMEE=0^5^10^OK^ok^Ok^Error]

 

 

 

 

 

ESPrtk Respond

Payload

Index

 

Type value

Min

Value

Max

Value

Min Length

Max Length

Describe

Unit

PL2

‘s’

STRING

-

-

1

1

ID Configure : GSM_CELLULAR

 

 

PL3

INTEGER

0

1

-

-

Status Configure

 

0

Error: Failed to save , please try again

1

OK : Saved configure success

 

PL4

STRING

-

-

-

-

Describe Status Configure in text string format

 


Example

Message :

HOST Send

$ESP_OK|249|W|s|0|0|1234|w3-world|mms|mms|0|7|0|10000000000000000000000|100000000000000000000000000000000000000000000000000000000000000000|10000000|[RST][COM^9600][DLY^1][ATE0^5^10^OK][AT+CMEE=0^5^10^OK^ok][CLR][PIN^1234][CFG][NET^w3-world^mms^mms][COM^115200]|*0F54

ACK Respond

$ESP_OK|46|W|s|1|( ID : GSM_CELLULAR ) : Saved Success .|*2401

NACK Respond

$ESP_ER|… or $ESS_ER|… or $AES_ER|…

 

 

Command read configure - GSM_CELLULAR

ESPrtk Respond

The index / range of values / data types is similar to the index / range of values / data types of payloads when configured.

Example

Message :

HOST Send

$ESP_OK|5|R|s||*752F

ACK Respond

$ESP_OK|249|W|s|0|0|1234|w3-world|mms|mms|0|7|0|10000000000000000000000|100000000000000000000000000000000000000000000000000000000000000000|10000000|[RST][COM^9600][DLY^1][ATE0^5^10^OK][AT+CMEE=0^5^10^OK^ok][CLR][PIN^1234][CFG][NET^w3-world^mms^mms][COM^115200]|*0F54

NACK Respond

$ESP_ER|… or $ESS_ER|… or $AES_ER|…