Roadstar v2 datasheet

52
rev1.1 Roadstar v2 datasheet

Transcript of Roadstar v2 datasheet

Page 1: Roadstar v2 datasheet

rev1.1

Roadstar v2 datasheet

Page 2: Roadstar v2 datasheet

Roadstar v2

Page 2 of 32

Copyright Transmittal, reproduction, dissemination and/or editing of this document as well as utilization of its contents and communication thereof to others without express authorization are prohibited. Offenders will be held liable for payment of damages. All rights created by patent grant or registration of a utility model or design patent are reserved. Copyright © 2012, HCP d.o.o Trademark notice Cinterion is registered trademark of ©Cinterion Wireless Modules GmbH in the Germany and/or other countries. Quectel is registered trademark of ©Quectel Wireless Solution Co. All other registered trademarks or trademarks mentioned in this document are property of their respective owners.

Page 3: Roadstar v2 datasheet

Roadstar v2

Page 3 of 32

Contents Document history ..............................................................................................................................4

1. Introduction .................................................................................................................................4

1.1 Related documents ............................................................................................................................. 4

1.2 Terms and Abbreviations ................................................................................................................... 5

1.3 Safety Precautions .............................................................................................................................. 7

2. Product Concept ...........................................................................................................................8

2.1 Key Features of TC65i GSM/GPRS module .................................................................................... 8

2.2 Key Features of Quectel L10....................................................................................................10

3. Interface Description ...............................................................................................................11

3.1 Overview .............................................................................................................................................. 11

3.2 Block Diagram .................................................................................................................................... 12

3.3 Roadstar v2 Circuit block diagram ................................................................................................. 13

3.4 Watchdog ............................................................................................................................................ 14

3.5 Operating Modes of GSM module inside Roadstar v2 ............................................................... 15

3.6 Power Supply and GPIO pins ......................................................................................................... 16

3.6.1 Turn Roadstar v2 GSM module on ........................................................................................................... 17

3.6.2 Reset Roadstar v2 GSM modul ................................................................................................................. 17

3.6.3 Turn off Roadstar v2 GSM modul .............................................................................................................. 17

3.6.4 Disconnecting power supply ...................................................................................................................... 17

3.6.5 Automatic thermal shutdown ...................................................................................................................... 18

3.7 RS-232 Interface ................................................................................................................................ 19

3.8 SIM interface ...................................................................................................................................... 20

3.9 Status LED ......................................................................................................................................... 21

3.10 Antenna interface ........................................................................................................................... 22

4. Electrical and Environmental Characteristics....................................................................23

4.1 Apsolute Maximum Ratings................................................................................................................................. 23

4.2 Recommended Operating conditions ................................................................................................................. 23

4.6 Storage Conditions .............................................................................................................................................. 27

4.7 Electrical Specifications of the Application Interface ........................................................... 28 4.7.1 RS232 interface ............................................................................................................................................ 28 4.7.2 GPS antenna specification ........................................................................................................................... 28 4.7.3 GSM Antenna interface ................................................................................................................................ 29

5. Mechanical Characteristics ....................................................................................................30

6. List of Parts and Accessories ...............................................................................................31

Page 4: Roadstar v2 datasheet

Roadstar v2

Page 4 of 32

Document history Preceding document: "Roadstar v2 datasheet rev01.0” New document: " Roadstar v2 datasheet rev01.1"

Chapter What is new --- Added new pictures, electrical and mechanical characteristics

1. Introduction This document describes the hardware of HCP Roadstar v2, with interface specifications, electrical and mechanical characteristics. Roadstar v2 is intended to use as track and trace device for locating of vehicles, tracks etc.

1.1 Related documents

[1] TC65i AT command set [2] TC65i Hardware interface description [3] Quectel L10_HD_v1.01 [4] Quectel L10_GPS_Protocol_v1.01

[5] “Programmer To Programmer instruction V3.2” HCP [6] JAVA UsersGuide v19 - cinterion

Page 5: Roadstar v2 datasheet

Roadstar v2

Page 5 of 32

1.2 Terms and Abbreviations Abbreviation Description ADC Analog-to-Digital Converter ARP Antenna Reference Point ASIC Application Specific Integrated Circuit ATC AT Cellular BTS Base Transceiver Station CB Cell Broadcast CODEC Coder-Decoder CPU Central Processing Unit DCE Data Circuit terminating Equipment DSP Digital Signal Processor DSR Data Set Ready DTR Data Terminal Ready EFR Enhanced Full Rate EGSM Enhanced GSM EMC Electromagnetic Compatibility ESD Electrostatic Discharge ETS European Telecommunication Standard FDMA Frequency Division Multiple Access FR Full rate G.C.F. GSM Conformity Forum GSM Global Standard for Mobile Communication HF Hands-free HR Half rate HW Hardware IC Integrated Circuit IF Intermediate Frequency IMEI International Mobile Equipment Identifier I/O Input/ Output IGT Ignition ISO International Standards Organization ITU International Telecommunications Union kbps kbits per second Li-Ion Lithium-Ion LVD Low voltage Directive Mbps Mbits per second MMI Machine Machine Interface MO Mobile Originated MS Mobile Station MT Mobile Terminated NC Not Connected NTC Negative Temperature Coefficient PA Power Amplifier PCB Printed Circuit Board PCM Pulse Code Modulation PCS Personal Communication System

Page 6: Roadstar v2 datasheet

Roadstar v2

Page 6 of 32

Abbreviation Description PDU Protocol Data Unit R&TTE Radio and Telecommunication Terminal Equipment RAM Random Access Memory RF Radio frequency RI Ring Indication ROM Read Only Memory RX Receive direction SIM Subscriber Identification Module SMS Short Message Service SRAM Static Random Access Memory SW Software TDD Time Division Duplex TDMA Time Division Multiple Access TX Transmit direction UART Universal Asynchronous Receiver and Transmitter VAD Voice Activity Detection ZIF Zero Insertion Force

Table 1. Terms and Abbreviations

Page 7: Roadstar v2 datasheet

Roadstar v2

Page 7 of 32

1.3 Safety Precautions

Safety precautions must be observed during all phases of the operation, usage, service or repair of any cellular terminal from HCP d.o.o.

Failure to comply with these precautions violates safety standards of design, manufacture and intended use of the product. HCP d.o.o assumes no liability for customer’s failure to comply with these precautions.

When in hospitals or other health care facilities, observe the restrictions on the use of mobiles. Switch off the cellular terminal or mobile if to be instructed to do so by the guidelines posted in sensitive areas. Medical equipment may be sensitive to RF energy. The operation of cardiac pacemakers, other implanted medical equipment and hearing aids can be affected by interference from cellular terminals or mobiles placed close to the device. If in doubt about potential danger, contact the physician or the manufacturer of the device to verify that the equipment is properly shielded. Pacemaker patients are advised to keep their hand-held mobile away from the pacemaker, while it is on. This personal subgroup always should check the distance to the mobile

Switch off the cellular terminal or mobile before boarding an aircraft. Make sure it cannot be switched on inadvertently. The operation of wireless appliances in an aircraft is forbidden to prevent interference with communications systems. Failure to observe these instructions may lead to the suspension or denial of cellular services to the offender, legal action, or both. Check the local and actual laws about these themes.

Do not operate the cellular terminal or mobile in the presence of flammable gases or fumes. Switch off the cellular terminal when you are near petrol stations, fuel depots, chemical plants or where blasting operations are in progress. Operation of any electrical equipment in potentially explosive atmospheres can constitute a safety hazard.

Your cellular terminal or mobile receives and transmits radio frequency energy while switched on. Remember that interference can occur if it is used close to TV sets,radios, computers or inadequ- ately shielded equipment. Follow any special regulations and always switch off the cellular terminal or mobile wherever forbidden, or when you suspect that it may cause interference or danger.

Road safety comes first! Do not use a hand-held cellular terminal or mobile while driving a vehicle unless it is securely mounted in a holder for speakerphone operation. Before making a call with a hand-held terminal or mobile park the vehicle. Speakerphones must be installed by qualified personnel. Faulty installation or operation can constitute a safety hazard. Check the actual and local laws about these themes.

IMPORTANT! Cellular terminals or mobiles operate using radio signals and cellular networks. In that case connections cannot be guaranteed at all times under all conditions. Therefore, you should never rely solely upon any wireless device for essential communications, for example emergency calls. Remember, in order to make calls or receive calls the cellular terminal or mobile must be switched on in a service area with adequate cellular signal strength. Some networks do not allow for emergency calls if certain network services or phone features are in use (e.g. lock functions, fixed dialing etc.). You may need to deactivate those features before you can make an emergency call. Some networks require a valid SIM card to be properly inserted in the cellular terminal or mobile.

If a power supply unit is used to supply the device it must meet the demands placed on SELV circuits in accordance with EN60950. The maximum permissible connection length between the device and the supply source should not exceed 3m.

According to the guidelines for human exposure to radio frequency energy, an antenna connected to the FME jack of the device should be placed at least 20cm away from human bodies.

Page 8: Roadstar v2 datasheet

Roadstar v2

Page 8 of 32

2. Product Concept

2.1 Key Features of TC65i GSM/GPRS module Feature Implementation General Incorporates Cinterion TC65i module

The TC65i module handles all processing of data within the Roadstar v2 device.

Frequency bands Quad band: GSM 850/900/1800/1900MHz GSM class Small MS Output power (according to Release 99)

Class 4 (+33dBm ±2dB) for EGSM850 Class 4 (+33dBm ±2dB) for EGSM900 Class 1 (+30dBm ±2dB) for GSM1800 Class 1 (+30dBm ±2dB) for GSM1900

Power supply Single supply voltage 8V to 30V DC Ambient operating temperature according to IEC 60068-2

Normal operation: -30°C to +70°C Restricted operation: -30°C to -40°C, +70°C to +75°C

Housing color RED RoHS All hardware components fully compliant with EU RoHS

Directive GSM/GPRS features Data transfer GPRS:

- Multislot Class 12 - Full PBCCH support - Mobile Station Class B - Coding Scheme 1 – 4

CSD: - V.110, RLP, non-transparent - 2.4, 4.8, 9.6, 14.4kbps - USSD PPP-stack for GPRS data transfer

SMS - Point-to-point MT and MO - Cell broadcast - Text and PDU mode - Storage: SIM card plus 25 SMS locations in mobile

equipment - Transmission of SMS alternatively over CSD or GPRS.

Preferred mode can be user defined. Fax Group 3; Class 1

Page 9: Roadstar v2 datasheet

Roadstar v2

Page 9 of 32

Feature Implementation Software AT commands Hayes 3GPP TS 27.007, TS 27.005, Cinterion Java platform Java Virtual Machine with APIs for amongst others AT Parser,

Serial Interface, FlashFileSystem and TCP/IP Stack. Major benefits: seamless integration into Java applications, ease of programming, no need for application microcontroller, extremely cost-efficient hardware and software design – ideal platform for industrial GSM applica-tions. The memory space available for Java programs is around 1.7 MB in the flash file system and around 400k RA M. Application code and data share the space in the flash file system and in RAM.

SIM Application Toolkit SAT Release 99 TCP/IP stack Access by AT commands Remote SIM Access TC65i supports Remote SIM Access. RSA enables TC65i to

use a remote SIM card via its serial interface and an external application, in addition to the SIM card locally attached to the dedicated lines of the application interface. The connection between the external application and the remote SIM card can be a Bluetooth wireless link or a serial link. The necessary protocols and procedures are implemented according to the “SIM Access Profile Interoperability Specification of the Bluetooth Special Interest Group”.

Firmware update Generic update from host application over serial interface. Watchdog Integrated hardware watchdog circuit on board. Interfaces Serial interface RS232 interface over mini USB b type connector SIM interface Supported SIM cards: 3V, 1.8V GSM Antenna SMA antenna connector GPS Antenna SMA antenna connector Status LED LED for signalizing device status 10-pin micro-fin connector Power supply and GPIO pins

Table 2. Key feature of GSM/GPRS TC65i module

Page 10: Roadstar v2 datasheet

Roadstar v2

Page 10 of 32

2.2 Key Features of Quectel L10 Feature Implementation

Receiver Type - GPS L1 1575.42MHz C/A Code - 66 search channels, 22 simultaneous tracking channels

Sensitivity - Cold Start (Autonomous) -147dBm - Reacquisition -160dBm - Hot start -160dBm - Tracking -165dBm

Time-To-First-Fix - Cold Start (Autonomous) -147dBm - Warm Start (Autonomous) 35s average - Hot Start (Autonomous) <1.2s - EPO, BEE 5~10s - SUPL 5~10s

Position Accuracy - Without Aid 3.0 m 2D-RMS - DGPS 2.5 m

Max Update Rate - 5Hz Accuracy of 1PPS Signal - Typical accuracy 61 ns

- Time pulse adjustable from 1ms to 999ms, default 100ms

Velocity Accuracy - Without Aid 0.1 m/s - DGPS 0.05m/s

Acceleration Accuracy - Without Aid 0.1 m/s² - DGPS 0.05m/s²

Dynamic Performance - Maximum Altitude 18,000 m - Maximum Velocity 515m/s - Acceleration 4G

Table 3. Key feature of GPS Quectel L10 module

Page 11: Roadstar v2 datasheet

Roadstar v2

Page 11 of 32

3. Interface Description

3.1 Overview Roadstar v2 provides following connectors for power supply, GPIO pins and antenna interface.

- Mini USB B type connector for RS232 interface - Molex micro-fit 10-pin connector for power supply and GPIO pins - SMA antenna connector for GSM - SMA antenna connector for GPS - Status LED

Figure 1. Front and rear view of Roadstar v2

Page 12: Roadstar v2 datasheet

Roadstar v2

Page 12 of 32

3.2 Block Diagram

Figure 2. shows block diagram of Roadstar v2 where you can see some basic examples of connection with vehicle.

Figure 2. Block diagram of Roadstar v2

Page 13: Roadstar v2 datasheet

Roadstar v2

Page 13 of 32

3.3 Roadstar v2 Circuit block diagram

Figure 3. Circuit Block diagram of Roadstar v2

Figure3. shows internal connections between GMS modul and GPS module along with inputs/outputs and watchdog timer.

Page 14: Roadstar v2 datasheet

Roadstar v2

Page 14 of 32

Table bellow shows internal connections of Roadstar v2, between Power/GPIO connector, GSM module and GPS module.

TC65i Power/GPIO connector Parameters ASC0 – Rx0,Tx0 --- Communication with external device ASC1 – Rx1,Tx1 --- Communication between GSM and GPS module

GPIO1 DI_1 Digital input 1 GPIO2 DI_2 Digital input 2 GPIO3 DI_3 Digital input 3

GPIO4/GPIO10* DI_4 Digital input 4 (pulse counter) GPIO5 DO_1 Digital output 1 GPIO6 -- Reset GPS modem GPIO7 -- Reset watchdog timer GPIO8 DO_2 Digital output 2 GPIO9 -- Status LED

Table 4. Internal connections

*GPIO4 and GPIO10 of GSM module are internally connected. Basically input on DI_4 will go to both GPIO pins GPIO4 and GPIO10. Advantage of GIO10 is that you can configure it as pulse counter for pulse rates from 0 to 1000 pulses per second. For more information about GPIO pins of GSM module TC65i and how to configure them from please refer to [1] and [2].

3.4 Watchdog

Roadstar v2 has a hardware watchdog circuit on board. Watchdog resets GSM module inside Roadstar v2 every 200 seconds as a protection in case that software in GSM module get stack. To reset watchdog timer, sotware in GSM module has to give logic “1” (positive impuls) on its GPIO7 pin for at least 200ms every 200 seconds. Best way is to give logic “1” on GPIO7 every 2 minutes (120seconds).

Figure 4. GSM module GPIO7 reset impuls for watchdog timer

Page 15: Roadstar v2 datasheet

Roadstar v2

Page 15 of 32

3.5 Operating Modes of GSM module inside Roadstar v2 The table below briefly summarizes the various operating modes referred to in the following sections. Mode Function Normal operation GSM/GPRS

SLEEP Various power save modes set with AT+CFUN command. Software is active to minimum extent. If the module was registered to the GSM network in IDLE mode, it is registe- red and paging with the BTS in SLEEP mode, too. Power saving can be chosen at different levels: The NON-CYCLIC SLEEP mode (AT+CFUN=0) disables the AT interface. The CYCLIC SLEEP modes AT+CFUN=7 and 9 alternatingly activate and deactivate the AT interfaces to allow permanent access to all AT commands.

GSM IDLE Software is active. Once registered to the GSM network, paging with BTS is carried out. The module is ready to send and receive.

GSM TALK Connection between two subscribers is in progress. Power consumption depends on network coverage individual set-tings, such as DTX off/on, FR/EFR/HR, hopping sequences, antenna.

GPRS IDLE Module is ready for GPRS data transfer, but no data is currently sent or received. Power consumption depends on network settings and GPRS configuration (e.g. multislot settings).

GPRS DATA

GPRS data transfer in progress. Power consumption depends on network settings (e.g. power control level), uplink / down-link data rates and GPRS configuration (e.g. used multislot settings).

POWER DOWN Normal shutdown after sending the AT^SMSO

Table 5. Operating modes of Roadstar v2

Page 16: Roadstar v2 datasheet

Roadstar v2

Page 16 of 32

3.6 Power Supply and GPIO pins

The power supply of the Roadstar v2 has to be a single voltage source of 8V to 30V capable of providing a peak current (pulsed 2x577ms at T=4.615ms) of about 1.2A at 12V during an active transmission.

The uplink burst causes strong ripple (drop) on the power lines. The drop voltage should not exceed 1V, but the absolute minimum voltage during drops must be >7.6V. The Roadstar v2 is protected from supply voltage reversal.

A

Figure 5. Power supply connector

Pin Singal name Use Parameters 1 Vcc Possitive power supply 8V – 30V DC 2 DI_2 Digital input 2 0V – 24V DC 3 DI_1 Digital input 1 0V – 24V DC 4 DI_4 and A impulsator Digital input 4 0V – 24V DC 5 GND Ground 0V 6 DI_3 Digital input 3 0V – 24V DC 7 DO_1 Digital output 1 200mA 8 DO_2 Digital output 2 200mA 9 AI_1 Analog input 1 0V – 24V DC A AI_2 Analog input 2 0V – 24V DC

Table 6. Power supply connector pins

About parameters of digital input/output voltage/current capability look at the chapters about input/output channel characteristics.

Page 17: Roadstar v2 datasheet

Roadstar v2

Page 17 of 32

3.6.1 Turn Roadstar v2 GSM module on

Roadstar v2 GMS module switches on automaticly when power supply is attached. After start-up, the GSM module enters the net searching state.

After startup of the GSM module the RS232 lines are in an undefined state for approx. 900ms. This may cause undefined characters to be transmitted over the RS232 lines during this period.

3.6.2 Reset Roadstar v2 GSM modul

One way to reset Roadstar v2 GSM module is entering AT command AT+CFUN=x,1. For details on AT+CFUN please see [1], [2]. Other ways for restarting Roadstar v2 GSM module is:

- automatically by integrated watchdog timer on every 265seconds.

3.6.3 Turn off Roadstar v2 GSM modul Normal shutdown:

- To turn off the Roadstar v2 GSM modul use the AT^SMSO command, rather than disconnecting the power supply adapter.

This procedure lets the Roadstar v2 GSM modul log off from the network and allows the software to enter a secure state and save data before disconnecting the power supply. After AT^SMSO has been entered the GSM modul returns the following result codes: ^SMSO: MS OFF OK ^SHUTDOWN

The "^SHUTDOWN" result code indicates that the GSM module turns off in less than 1 second. After the shutdown procedure is complete the GSM module enters the POWER DOWN mode.

3.6.4 Disconnecting power supply

Before disconnecting the power supply from the Vcc pin, make sure that the Roadstar v2 is in a safe condition. The best way is to wait 1s after the "^SHUTDOWN" result code has been indicated.

Page 18: Roadstar v2 datasheet

Roadstar v2

Page 18 of 32

3.6.5 Automatic thermal shutdown

On-board NTC measures the temperature of the built-in Roadstar v2 GSM module. If over- or under temperature is detected on the module the Roadstar v2 GSM module automatically shuts down to avoid thermal damage to the system.

The automatic shutdown procedure is equivalent to the power-down initiated with the AT^SMSO command, i.e. Roadstar v2 GSM module logs off from the network and the software enters a secure state avoiding loss of data. In IDLE mode it takes typically one minute to deregister from the network and to switch off.

Alert messages transmitted before the Roadstar v2 switches off are implemented as Unso-licited Result codes (URCs). For details see the description of AT^SCTM command provided in [1] and [2].

Thermal shutdown will be deferred if a critical temperature limit is exceeded, while an

emergency call or a call to a predefined phone number is in progress, or during a two minute guard period after power up. See [1] for details.

Page 19: Roadstar v2 datasheet

Roadstar v2

Page 19 of 32

3.7 RS-232 Interface

Over RS232 interface, external device, PC or other control device with RS232 interface, communicate with Roadstar v2.

Figure 6. RS232 pin assignment (mini USB B connector)

Pin Singal name Input/Output Function 1 NC -- Not connected 2 Tx Output Transmit data 3 Rx Input Receive data 4 NC -- Not connected 5 GND -- ground

Table 7. RS232 pin assigment

The RS-232 interface is implemented as a serial asynchronous transmitter and receiver conforming to ITU-T V.24 Interchange Circuits DCE. It is configured for 8 data bits, no parity and 1 stop bit, and can be operated at bit rates from 300bps to 921,600kbps. Autobauding supports bit rates from 1200bps to 460,800bps.

Page 20: Roadstar v2 datasheet

Roadstar v2

Page 20 of 32

3.8 SIM interface

Roadstar v2 provides SIM interface with automatic detection for 1.8V and 3V SIM cards in accordance with GSM11.12 Phase 2. The card holder is a six wire interface according to GSM 11.11 with detection whether or not a SIM card is inserted.

Figure 7. SIM interface SIM card interface is placed inside the Roadstar v2 housing. Unscrew four screws marked on the left part of figure 6. and gently pull out pc board of Roadstar v2 and insert SIM card on place marked on the right part of the picture on figure 6. After placing SIM card, push back pc board of Roadstar v2 and screw four screws back. Removing and inserting the SIM card during operation requires the software to be reinitialized. Therefore, after reinserting the SIM card it is necessary to restart Roadstar v2 GSM module. Note: No guarantee can be given, nor any liability accepted, if loss of data is encountered afterremoving the SIM card during operation. Also, no guarantee can be given for properly initializing any SIM card that the user inserts after having removed a SIM card during ope-ration. In this case, the application must restart the GSM module in Roadstar v2.

Page 21: Roadstar v2 datasheet

Roadstar v2

Page 21 of 32

3.9 Status LED Status LED is used for displaying operating status of the Roadstar v2 tracking device, depending on how it’s programmed.

Figure 8. Status LED on Roadstar v2

Status LED is driven by GPIO9 pin of GSM module inside Roadstar v2 (look at the figure 3. ) so depending on the user request, flashing of the status LED can be controlled.

Page 22: Roadstar v2 datasheet

Roadstar v2

Page 22 of 32

3.10 Antenna interface The external antennas for GSM and GPS are connected via the Roadstar v2 SMA antenna connectors, look at figure 8.

Figure 9. Antenna interface – SMA jack

An internal antenna cable adapts the antenna reference point of GSM module (antenna connector type U.FL-R-SMT from Hirose) to the SMA connector

- Cable loss of the internal cable <0.4dB @ 900MHz <0.6dB @ 1800MHz

- The system impedance is 50Ω - In every case, for good RF performance the return loss of the customer application’s

antenna should be better than 10dB (VSWR < 2).

- Roadstar v2 GSM modul withstands a total mismatch at this connector when transmitting with power control level for maximum RF power.

Page 23: Roadstar v2 datasheet

Roadstar v2

Page 23 of 32

4. Electrical and Environmental Characteristics

4.1 Apsolute Maximum Ratings

Parameter Pin / Parameter Min. Max. Unit Supply voltage Vcc 8 30 V

RS232 input voltage range TxD -20 +20 V RxD -0.3 +5.3 V

Digital inputs DI_1, DI_2, DI_3, DI_4 -4 40 V Digital outputs DO_1,DO_2 -- 40 V Analog inputs AI_1, AI_2 -- 24 V Immunity against ESD RS232 lines -15 +15 kV

Protection Class IP50(avoid exposing Roadstar v2 to liquid or moisture) IP50

Table 8. Apsolute maximum ratings

4.2 Recommended Operating conditions

Parameter Pin / Parameter Min. Typ. Max. Unit Supply voltage Vcc 8 12 30 V Supply current Ic 500 mA Operating temperature -- -30 +25 +65 °C

Table 9. Recommended operating conditions

Page 24: Roadstar v2 datasheet

Roadstar v2

Page 24 of 32

4.3 Digital Inputs All input channels are optoisolated. On figure 9. you can see simplified schematic of digital inputs.

Figure 10. Input channels schematic

GPIO pin on GSM module is in state low “0“ when positive voltage is applied (reversed logic) to one of digital inputs DI_x (x=1,2,3,4).

Parameter Signal name Min Typ Max Unit Voltage input low VIL -4 -- 1 V Voltage input high VIH 2 -- 24 V Forward current IF -- -- 50 mA

Table 10. Input channels electrical characteristics

Page 25: Roadstar v2 datasheet

Roadstar v2

Page 25 of 32

4.4 Digital Outputs Output pins will give GROUND for outside when GPIO pin on GSM module gives logic “1” . On figure 10. you can see simplified schematic of digital outputs with example of connection with relay.

Figure 11. Output channels schematic

Parameter Signal name Min Typ Max Unit Output channel current capability I -- -- 200 mA Output channel voltage capability V -- -- 30 V

Table 11. Output channels electrical characteristics

Page 26: Roadstar v2 datasheet

Roadstar v2

Page 26 of 32

4.5 Analog Inputs On figure 11. you can see simplified schematic of analog inputs.

Figure 12. Analog channels schematic

Signal name Min Typ Max Unit AI_x (x=1,2) 0 -- 24 V

Table 12. Analog input channels electrical characteristics

Analog inputs go over resistor network to GSM module analog inputs. More information about analog inputs on GSM module TC65i please refer to [1] and [2]. For instructions about ADC reading, look at the [5] “Programmer To Programmer instruction V3.2” for RoadstarV2, where you will find some examples with java code.

Page 27: Roadstar v2 datasheet

Roadstar v2

Page 27 of 32

4.6 Storage Conditions

Type Condition Unit Reference Air temperature: Low High

-40 +85 °C ETS 300 019-2-1: T1.2, IEC 68-2-1 Ab

ETS 300 019-2-1: T1.2, IEC 68-2-2 Bb Humidity relative: Low High Condens.

10 90 at 30°C 90-100 at 30°C

%

--- ETS 300 019-2-1: T1.2, IEC 68-2-56 Cb Cb ETS 300 019-2-1: T1.2, IEC 68-2-30 Db Db

Air pressure: Low High

70 106 kPa IEC TR 60271-3-1: 1K4

IEC TR 60271-3-1: 1K4 Movement of surrounding air 1.0 m/s IEC TR 60271-3-1: 1K4 Water: rain, dripping, icing and frosting

Not allowed --- ---

Radiation: Solar Heat

1120 600

W/m² ETS 300 019-2-1: T1.2, IEC 60068-2-2 Bb ETS 300 019-2-1: T1.2, IEC 60068-2-2 Bb

Chemically active substances Not recomm.

EC TR 60271-3-1: 1C1L

Mechanically active substances

Not recomm.

IEC TR 60271-3-1: 1S1

Table 13. Storage conditions

The conditions stated above are only valid for devices in their original packed state in weather protected, non-temperature-controlled storage locations. Normal storage time under these conditions is 12 months maximum.

Page 28: Roadstar v2 datasheet

Roadstar v2

Page 28 of 32

4.7 Electrical Specifications of the Application Interface

4.7.1 RS232 interface

Param. Description Conditions Min. Typ Max. Unit VOUT Transmitter output voltage RxD @3KΩ to GND ±5 V ROUT Transmitter output resistance RxD 300 10M Ω RIN Resistance TxD 3 5 7 kΩ VIN Receiver input voltage range TxD -25 +25 V VLOW Input threshold low 0.8 V VHIGH Input threshold high 2

Baudrate Autobauding 1,200 460,800 bps Fixed range 300 921,600 bps

RS232 cable 1.8 2 m

Table 14. RS232 interface

4.7.2 GPS antenna specification

Antenna type Specification Passive antenna Center frequency: 1575.42 MHz

Band Width: >20 MHz Gain: >0dB Polarization: RHCP or Linear

Active antenna Center frequency: 1575.42 MHz Band Width: >5 MHz Minimum gain: 15-20dB(compensate signal loss in RF cable) Maximum noise figure: 1.5dB Maximum gain: 50dB Polarization: RHCP or Linear

Table 15. GPS antenna interface

For more information about GPS antenna interface please refer to [3].

Page 29: Roadstar v2 datasheet

Roadstar v2

Page 29 of 32

4.7.3 GSM Antenna interface

Parameter Min. Typ. Max. Unit Frequency range Uplink (MS → BTS)

GSM 850 824 849 MHz E-GSM 900 880 915 MHz GSM 1800 1710 1785 MHz GSM 1900 1850 1910 MHz

Frequency range Downlink (BTS → MS)

GSM 850 869 894 MHz E-GSM 900 925 960 MHz GSM 1800 1805 1880 MHz GSM 1900 1930 1990 MHz

RF power @ ARP with 50Ω load GSM 850 31 33 35 dBm E-GSM 900 31 33 35 dBm GSM 1800 28 30 32 dBm GSM 1900 28 30 32 dBm

Table 16. Antena interface

Please refer to [2] for more information about antenna interface (air interface).

Page 30: Roadstar v2 datasheet

Roadstar v2

Page 30 of 32

5. Mechanical Characteristics

Figure 13. Mechanical characteristics

*all dimensions are in milimeters

Page 31: Roadstar v2 datasheet

Roadstar v2

Page 31 of 32

6. List of Parts and Accessories Description Supplier Picture

Roadstar v2 HCP d.o.o

10-pin power and GPIO cable HCP d.o.o

RS232 cable (mini USB – SUB D9) HCP d.o.o

GSM & GPS antenna HCP d.o.o

Page 32: Roadstar v2 datasheet

Roadstar v2

Page 32 of 32

HCP d.o.o. Mirka Tomica – pasaz 37000 Krusevac SERBIA

Phn. +381.37.445.401

+381.37.418.790 Fax. +381.37.448.351 Website www.hcp.rs

Sales email: [email protected]

Support: [email protected]

Development: [email protected]

Page 33: Roadstar v2 datasheet

Roadstar v2 communication protocol

Page 34: Roadstar v2 datasheet

Roadstar v2 – communication protocol

Page 2 of 8

Table of Contents

Communication ..................................................................................................................... 3

New connection .................................................................................................................... 3

HCPI sentence – Identification .............................................................................................. 3

HCPO sentence – Identification acknowledge ....................................................................... 3

Track record sending ............................................................................................................. 3

HCPS sentence – One track sentence .................................................................................... 4

HCPP sentence – data packet ................................................................................................ 4

Track data .............................................................................................................................. 5

HCPA Sentence – Server acknowledge - No Command ......................................................... 6

HCPB Sentence – Server acknowledge - with IO Command .................................................. 6

HCPPR Command Sentence – Send new operating parameters to device ............................ 6

HCPPRR Command Sentence – Ask terminal to send operating parameters to server ......... 6

PARSENT – Operating parameters ......................................................................................... 7

HCPPSS Sentence – Send parameters from terminal to server ............................................. 8

IO Byte Explained .................................................................................................................. 8

HCP Roadstar Events ............................................................................................................. 8

Note: This document refers to Roadstar v2 track and trace device if it’s delivered to customer with software (firmware) which is provided from HCP d.o.o. Otherwise, if Roadstar v2 is delivered to customer without software from HCP d.o.o then the communication protocol described in this document can be used as guide to create communication protocol but that is up to software developer.

Copyright © 2012, HCP d.o.o

Page 35: Roadstar v2 datasheet

Roadstar v2 – communication protocol

Page 3 of 8

Communication

HCP Roadstar track and trace terminal communicates with server via GPRS based TCP connection.

New connection

At the beginning of every new TCP connection HCP Roadstar is identifying itself to server with HCPI sentence.

HCPI sentence – Identification

Description Offset(bytes) Length(bytes) Type Sentence ID 0 1 Byte 100 TerminalID 1 8 String Terminal (vehicle) identification

IMEI 9 15 String IMEI of GSM Module DummyBytes 24 6 Byte[ ] DummyBytes for compatibility

Table 1. Identification

After receiveing HCPI sentence server must reponse to terminal with HCPO sentence.

HCPO sentence – Identification acknowledge

Description Offset(bytes) Length(bytes) Type Sentence ID 0 1 Byte 21

Table 2. Identification acknowledge

After the server has responded HCP Roadstar begins sending track data.

Track record sending

Track record(s) are sent in two ways: HCPS – One Track sentence HCPP – Sentence(s) packet Programmers Note: Easy way to identify which type is coming to server is by first byte (if first byte is greater than 30 than HCPS is coming; if less than 30 than data packet is coming.

Packet are identified as HCPP sentence.

Page 36: Roadstar v2 datasheet

Roadstar v2 – communication protocol

Page 4 of 8

HCPS sentence – One track sentence

Description Offset(bytes) Length(bytes) Type Track Data 0 30 Byte[] Track Data

Table 3. One track sentence

HCPP sentence – data packet

Description Offset(bytes) Length(bytes) Type Number of track sentences 0 1 Byte <=20

Track Data 1 30 Track sentence First track data Track Data 31 30 Track Record Second track data Track Data … …

Table 4. Data packet Track data length is always 30 bytes Maximum sentences per packet is 20 Number of data packets can be calculated with formula:

(HCPPSentenceLength-1) / (TrackDataLength)

Page 37: Roadstar v2 datasheet

Roadstar v2 – communication protocol

Page 5 of 8

Track data

Description Offset(bytes) Length(bytes) Type Unit/Description Event 0 1 Byte Event (why is data generated) see table

ControlByte 1 1 Byte 0xFF

DateTime 2 4 Int64 Date and time as number of seconds from

01.01.1980.00:00:00 Latitude 6 4 Float degrees, floating point

Longitude 10 4 Float degrees, floating point Altitude 14 2 Int16 meters Speed 16 2 Int16 km/h Course 18 2 Int16 degrees

FIX 20 1 Byte 0 – No Fix

3 – Position valid IO 21 1 Byte Table 1.3.

ADC1 22 2 Short mV ADC2 24 2 Short mV

Mileage 26 4 Int32 Current state of pulse counter of odometer

Table 5. Track data

When server successfully receive record packet or one sentence from device, it sends acknowledgement of receiving to HCP Hunter (HCPA sentence). HCPA Sentence can contain command to be executed on terminal. This is the end of certain communication cycle which repeats for every received packet. After command is executed HCP Hunter will generate new track data record which will contain

“Command Executed Event”

Page 38: Roadstar v2 datasheet

Roadstar v2 – communication protocol

Page 6 of 8

HCPA Sentence – Server acknowledge - No Command

Description Offset(bytes) Length(bytes) Type Sentence ID 0 1 Byte 21

Reserved 1 1 Byte 0x00

Table 6. Server acknowledge

HCPB Sentence – Server acknowledge - with IO Command

Description Offset(bytes) Length(bytes) Type Sentence ID 0 1 Byte 22 OutPortState 1 1 Byte New State Of Out Pins

Table 7. Server acknowledge

HCPPR Command Sentence – Send new operating parameters to device

Description Offset(bytes) Length(bytes) Type Command ID 0 3 Byte[] [0xE1] [0xA2] [0xB7]

Parameter sentence length 4 1 Byte PARSENT 5

Note: After HCPPR Command Sentence is successfully received by terminal HCPPSS Sentence will be send to server as confirmation

Table 8. Sending new parameters to device

HCPPRR Command Sentence – Ask terminal to send operating parameters to server

Description Offset(bytes) Length(bytes) Type Command ID 0 3 Byte[] [0xBC] [0xDF] [0x23]

Note: After HCPPRR Command Sentence is successfully received by terminal HCPPSS Sentence will be send to server

Table 9. Sending operating parameters to server

Page 39: Roadstar v2 datasheet

Roadstar v2 – communication protocol

Page 7 of 8

PARSENT – Operating parameters

Description Offset(bytes) Length(bytes) Type

RunModeInterval 0 2 Int16 Interval (seconds) to generate and send track data while in RunMode

StopModeInterval 2 2 Int16 Interval (seconds) to generate and send track data while in StopMode

ScanAngle 4 2 Int16 Angle change in degrees to generate and send data. If ScanAngle is < 20 no scanning will be done.

DistanceTriger 6 2 Int16 Distance in meters to generate and

send data. If DistanceTriger is <100 no scaning will be done

StopRunModeTriger 8 1 Byte

0 – RunStopMode will be switched by speed

1 – RunStopMode will be switched by state of input 1

DistanceByPulse 9 1 Byte 0 – Distance will be calculated by GPS 1 – Distance will be measured by pulse

counter PinDefaultMask 10 1 Byte DefaultStateOffInput Pins

ExpandStillInterval 11 1 Byte

ExpandingStopModeInterval automatically

0 – No expanding 1 – Expanding

DefaultStateOfOutputPins 12 1 Byte DefaultStateOfOutputPins APNLength 14 1 Byte Length of APN string

APN 15 APNLength String New GPRS APN GPRSUsernameLength 1 Byte Length of GPRS Username

GPRSUsername GPRSUsername

Length String New GPRS Username

GPRSPasswordLength 1

Byte Length of GPRS Password

GPRSPassword GPRSPassword

Length String New GPRS Password

RemoteHostLength 1 Byte Length of Remote Host String

RemoteHost RemoteHost

Length String Server IP or URL

RemotePortLength 1 Byte Length of Remote Port

RemotePort RemotePort

Length String Remote Port sent as string

WorkInRoaming 1 Byte Send data while in roaming

0 – No 1 – Yes

OTAPURLLength 1 Byte Length of OTAP URL

OTAPURL OTAPURL

Length String URL for OverAirProgramming

PRGRef 4 Int32 Reference of parameters programming

(sent to server after completing configuration)

NetworkAddress Length 1 Byte Length of Network Address string

NetworkAddress NetworkAddress

Length String

Network Address on which terminal is currently attached

IMSINumberLength 1 Byte Length of IMSI Numer

IMSINumber IMSINumber

Length String IMSI Number of sim card in terminal

Table 10. Operating parameters

Parameters marked blue are only send in direction Terminal – Server.

Page 40: Roadstar v2 datasheet

Roadstar v2 – communication protocol

Page 8 of 8

HCPPSS Sentence – Send parameters from terminal to server

Description Offset(bytes) Length(bytes) Type Sentence ID 0 1 Byte 25

Parameter sentence length 4 1 Byte PARSENT 5

Table 11. Sending parameters from terminal to server

IO Byte Explained

IO Byte of track data consist states of 8 Inputs

Bit Description 0 Input PIN 1 state 0=low; 1=high

1 Input PIN 2 state 0=low; 1=high

2 Input PIN 3 state 0=low; 1=high

3 Spare bit Reserver for future use

4 Output PIN 1 state 0=low; 1=high

5 Output PIN 2 state 0=low; 1=high

6 Output PIN 3 state 0=low; 1=high

7 Output PIN 4 state 0=low; 1=high

Table 12. IO States

HCP Roadstar Events

Event ID Description

30 Stop Mode Interval Trigger

31 Transition from Stop Mode to Run Mode

32 Run Mode Interval Trigger

33 Transition from Run Mode to Stop Mode

34 Input PIN 1 transition from 0 to 1

35 Input PIN 1 transition from 1 to 0

36 Input PIN 2 transition from 0 to 1

37 Input PIN 2 transition from 1 to 0

38 Input PIN 3 transition from 0 to 1

39 Input PIN 3 transition from 1 to 0

40 Input PIN 4 transition from 0 to 1

41 Input PIN 4 transition from 1 to 0

42 Course changed

43 Distance trigger

44 Reserved

45 Reserved

46 Reserved

200 Command Executed

Table 13. Roadstar events

Page 41: Roadstar v2 datasheet

2011

Programmer To Programmer instruction

v.3.2.

Roadstar

Page 42: Roadstar v2 datasheet

2

TABLE OF CONTENTS CONNECTOR (LOOK FROM OUTSIDE) .......................................................................................................................................... 3

PINOUT DESCRIPTION .................................................................................................................................................................. 3

Internal Connections: .................................................................................................................................................................. 3

Device connecting instructions: ................................................................................................................................................... 3

Device programming instructions:............................................................................................................................................... 3

Programming MIDlet for Roadstar ............................................................................................................................................. 4

Configure Pins (example): ............................................................................................................................................................ 4

OutputPin Function(Example) ................................................................................................................................................. 5

Input PortReading ........................................................................................................................................................................ 5

ADC Reading ................................................................................................................................................................................ 6

PulseCount Reading: .................................................................................................................................................................... 7

GPS Reading: ................................................................................................................................................................................ 9

Reset WatchDog: ....................................................................................................................................................................... 10

GPRS Sending: ............................................................................................................................................................................ 11

Important tips: ........................................................................................................................................................................... 12

TC65i Restart: ......................................................................................................................................................................... 12

Network Params: ................................................................................................................................................................... 12

ATComandListener: ................................................................................................................................................................... 12

GarbageColector: ................................................................................................................................................................... 12

Page 43: Roadstar v2 datasheet

3

CONNECTOR (LOOK FROM OUTSIDE) UP

----------------------- | [A] [9] [8] [7] [6] | | [5] [4] [3] [2] [1] | ----------------------- BOTTOM

PINOUT DESCRIPTION

Description Direction TC65i Out Connector

VDC: +9V -- +32 POWER 1

GND POWER 5

Digital Input 1 INPUT GPIO_1 3

Digital Input 2 INPUT GPIO_2 2

Digital Input 3 INPUT GPIO_3 6

Digital Input 4/10(pulse) INPUT GPIO_4/GPIO_10 4

Digital Output 1 OUTPUT GPIO_5 7

Digital Output 2 OUTPUT GPIO_8 8

Analog Input 1 INPUT ADC_1 9

Analog Input 2 INPUT ADC_2 A

Internal Connections:

- Watch Dog Reset – TC65i GPIO_7

- GPS Reset – TC65i GPIO_6

- Led Diode output – TC65i GPIO_9

Device connecting instructions: - Output Pins will give GROUND for outside relay when pins are active

- Digital Sensors are activated when positive voltage is connected

- Analog sensors are measuring positive voltage

Device programming instructions: - Output is active when state is HIGH (1)

- Input is in state LOW (0) when positive voltage is connected (reversed)

- If watch dog counter is not reseted for 240 seconds it will reset TC65i

Page 44: Roadstar v2 datasheet

4

Programming MIDlet for Roadstar Make a sync AT Command class (good practice for synchronization)

public class SyncAtCommand extends ATCommand

SyncAtCommand( boolean csdSupport ) throws ATCommandFailedException

super( csdSupport );

public synchronized String send ( String ATCmd ) throws

ATCommandFailedException

return super.send( ATCmd );

public synchronized String sendRval (String ATCmd) throws

ATCommandFailedException

String s = super.send(ATCmd);

s = s.substring(2);

s = s.substring(s.indexOf(':')+2,s.indexOf('\r'));

return s;

Have an instance of class in your “main”

SyncAtCommand ATComm2;

ATComm2 = new SyncAtCommand(false);

ATComm2.send("ATE0\r");

Configure Pins (example):

ATComm2.send("AT^SPIO=1\r");

ATComm2.send("AT^SCPIN=1,0,0\r");//for input GPIO_1

ATComm2.send("AT^SCPIN=1,1,0\r");//for input GPIO_2

ATComm2.send("AT^SCPIN=1,2,0\r");//for input GPIO_3

ATComm2.send("AT^SCPIN=1,4,1\r");//for output GPIO_5

ATComm2.send("AT^SCPIN=1,7,1\r");//for output GPIO_8

Join in port if needed:

INPORT = ATComm2.sendRval("at^scport=0,1,2\r");

InPortCheckCommand = "AT^SGIO=" + INPORT + '\r';

Since hardware input is reversed, if needed ,use bitmask to get “normal”

values:

PinHardwareMask = 7; (1112)

PortValue = PortValue ^ PinHardwareMask;…

Page 45: Roadstar v2 datasheet

5

OutputPin Function(Example)

private void SetPinVal(int PinID, int val)

try

String strRcv;

strRcv = ATComm2.send("AT^SSIO=" + PinID + "," + val + "\r");

if (strRcv.indexOf(OK) < 0) throw new ATCommandFailedException("Value

change failed");

catch(Exception ee)

Input PortReading

InPortCheckCommand = "AT^SGIO=" + INPORT + '\r';

private void CheckInPort()

try

INPORTVALUE=Integer.parseInt(ATComm2.sendRval(InPortCheckCommand));

catch(ATCommandFailedException ee)

Page 46: Roadstar v2 datasheet

6

ADC Reading Input is scaled to TC65i range so calculation factor is needed:

public static final double ADCFaktor = 11.44;

private static final String ADC1READCOMMAND = "AT^SRADC=0\r";

private void ObradiADC(int Koji)

try

String Response = ATComm2.send(ADC1READCOMMAND);

Response = Response.substring(Response.indexOf(":"));

Response = Response.substring(6);

Response = Response.substring(0, Response.indexOf("\r"));

ADC1 = (int)(Integer.parseInt(Response)*ADCFaktor);

catch (Exception ee)

Page 47: Roadstar v2 datasheet

7

PulseCount Reading: private void ActivatePulseCounter()

try

String Resp = ATComm2.send("AT^SCCNT=1,0\r");

if (Resp.indexOf("OK") >= 0)

//////System.out.println("Pulse Count OK");

else

catch (Exception ee)

private void ResetPulse()

try

String Resp = ATComm2.send("AT^SSCNT=0\r");

if (Resp.indexOf("OK") >= 0)

//////System.out.println("Pulse reset OK");

else

catch (Exception ee)

private static final String PULSECHECKCMD="AT^SSCNT=2\r";

ATComm2.send(PULSECHECKCMD);//Send pulse read command and receive answer thru

ATCommand Listener

ATList Listener = new ATList();

ATComm2.addListener(Listener);

class ATList implements ATCommandListener

public void ATEvent(String Event)

try

Page 48: Roadstar v2 datasheet

8

if (Event.indexOf("SSCNT") >= 0)

Event = Event.substring(Event.indexOf(":") + 2, Event.indexOf(":") + 12);

PulseCount = Integer.parseInt(Event);

catch (Exception e)

public void RINGChanged(boolean SignalState)

public void DCDChanged(boolean SignalState)

public void DSRChanged(boolean SignalState)

public void CONNChanged(boolean signalState)

Page 49: Roadstar v2 datasheet

9

GPS Reading: On beginning reset GPS:

SetPinVal(5, 1);

Thread.sleep(100);

SetPinVal(5, 0);

Open Serial port:

CommConnection commConn;

InputStream inStream;

OutputStream outStream;

String strCOM = "comm:com1;blocking=off;baudrate=9600";

commConn = (CommConnection)Connector.open(strCOM);

inStream = commConn.openInputStream();

outStream = commConn.openOutputStream();

Write uBlox start command

byte[] GPSCommandBtCommandHOT = new byte[](byte)0xB5, (byte)0x62, (byte)0x06,

(byte)0x04, (byte)0x04, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x02, (byte)0x00,

(byte)0x10, (byte)0x68;

outStream.write(GPSCommandBtCommandHOT, 0, GPSCommandBtCommandHOT.length);

Read NMEA data:

byte nmea[] = new byte[1000];

int read = inStream.read(nmea);

… Parse data…

Page 50: Roadstar v2 datasheet

10

Reset WatchDog: public void RestartWatchDog()

try

for(int i =0;i<2; i++)

SetPinVal (6,1);

Thread.sleep(1);

SetPinVal(6,0);

Thread.sleep(1);

catch (Exception ee)

Page 51: Roadstar v2 datasheet

11

GPRS Sending: SocketConnection commConn;

InputStream inStream;

OutputStream outStream;

String connProfile = "bearer_type=gprs;access_point="

+ APNString + ";username="

+ GPRSUserString + ";password="

+ GPRSPasswordString + ";timeout=60";

String serv = "socket://" + ServerIPString + ":"

+ ServerPortString + ";" + connProfile;

commConn = (SocketConnection) Connector.open(serv,

Connector.READ_WRITE, true);

outStream = commConn.openOutputStream();

inStream = commConn.openInputStream();

Send and Receive data using streams…

Page 52: Roadstar v2 datasheet

12

Important tips:

TC65i Restart: public void restartMod()

try

String strRcv;

strRcv = ATComm1.send("AT+CFUN=1,1\r");

if (strRcv.indexOf("OK") < 0)

throw new ATCommandFailedException("Couldn't restart");

else

Thread.sleep(10000);

catch (Exception e)

Network Params: If have problems connecting make a routine to check network params

CREG

If CREG==0 you should probably restart TC65i using

AT+CFUN=1,1\r command

ATComandListener: In time to time check is you ATCommandListener working properly by sending

PulseRead command and verify receiving answer. It is a rare problem and in most

cases caused by implementation of lot of code inside listener. If listener stop

working, restart TC65i.

GarbageColector: From time to time activate garbage collector to free up memory:

Runtime.getRuntime().gc();

-