![ThingWorx ATrack AX-7 Setup Manual Download Page 6](http://html1.mh-extra.com/html/thingworx/atrack-ax-7/atrack-ax-7_setup-manual_1107006006.webp)
ATrack AX-7 Protocol Adapter SDK Setup Guide
Copyright © 2015 PTC Inc. and/or Its Subsidiary Companies. All Rights Reserved.
4
Note that you will need to configure the
config.json
file in the AX7 source code to match the parameters
you will configure the ATrack AX7 to connect to.
AT$FORM=0,,1
AT$TRAC=1,10,,,,,2
The
FORM
command sets the position report
message format to ASCII.
The default message format is binary.
The
TRAC
command commences basic time mode
tracking.
A position report is sent every 10 seconds.
4.
Configure the AX7 device to send GPRS messages on
the desired Host IP address and Host port. Enter the
next command below, but replace the parameters in
<> with their correct values for your use case.
For example if the packet type is TCP, your command
will look like this:
AT$GPRS=1,"neo.iot.net","","","52.11.96.167",
5000,0,3,30,1,0
The IP address is the address of your server which will
host the Protocol Adapter SDK, and the port is the
port number it will listen on for data from the ATrack
AX7 device. Take note of the values you use.
AT$GPRS=<Enable>,<”APN”>,<”Username”
>,<”Password”>,<”Host
Address”>,<Host Port>,<Socket
Type>,<Retry>,<Timeout>,<Keep
Alive>,<Report ACK>, <Secondary Host
IP Address/Domain name">,<UDP Local
Port>
Note:
This command takes 20-30 seconds to
complete, and then the device will reboot. Do not
send any more commands during this period, until
you see the “Bootloader…” message in the terminal.
Send this command again after reboot:
AT$TRAC=1,10,,,,,2
Note:
The above line will have to be entered every
time the ATrack AX7 is rebooted.
You should see a message such as “$OK” returned by
the device after every command line sent.