Quick Start Guide

All rights reserved. No part of this work may be reproduced or copied in any form or by any means (graphic, electronic, or mechanical, including photocopying,
recording, recording taping, or information and retrieval systems) without the written permission of the copyright owner
12
Software support
We can provide serial port apk and NFC demo. Pls contact our Sales for details.
1. Pls also see the software setting for serial port
two serial ports are available on the device :
one shares the the USB data pins of the mini A/B USB connector. Only TX and RX pins are
available, voltage is TTL 3.3V.
one is on the Pogopin interface (pins 3, 5, 6 and 7). TX, RX CTS and RTS are available, voltage is
RS232.
On the software side, the tty devices corresponding to these ports are :
for the RS232 port, /dev/user_external_tty
for the TTL port, /dev/user_tty
In addition, one I2C port is available both on the USB and Procopin connectors.
The I2C interface is accessible through /dev/user_i2c
2. if your application want to read the ignition state, pls use below API.
the 12V input is reported to the application as a key press (high level pressed, low level depressed)
in the java Android API, this key is KeyEvent.KEYCODE_TV_INPUT
A second way to access the ignition state is to register a broadcast receiver for the action
"hk.topicon.intent.action.IGNITION"
The current ignition status is given by the extra boolean "state".
This intent is sticky, ie the application will be immediately notified of the current status at registration,
even if no transition occurred.
Here is a code sniplet :
private static final String ACTION_IGNITION = "hk.topicon.intent.action.IGNITION";
private BroadcastReceiver mIgnitionReceiver = new BroadcastReceiver() {
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if(!action.equals(ACTION_IGNITION))
return;
boolean state = intent.getBooleanExtra("state", false);
if(state)
Log.d(TAG, "ignition event is on");
else
Log.d(TAG, "ignition event is off");
}
};