Mapping Inputs - Globalstar ST150M User Manual

Hide thumbs Also See for ST150M:
Table of Contents

Advertisement

9150-0125-01 R-1
Reserve key 1 as active low:
AT+GPIOCFGIN=1,1,0
Reserve key 2 as active low (note, omitting the "active high" Boolean defaults to active low): AT+GPIOCFGIN=1,2
To get a list of enabled inputs, use the command "AT+INLIST=<source_type>".
For input source type: 0 = All, 1 = GPIO, 2= BLE, 3 = Accelerometer.
Example of issuing "AT+INLIST=0" after issuing the GPIOCFGIN commands shown above:
AT+INLIST=0
+INLIST 3,48,0,Accel Motion Event
+INLIST: 3,49,0,Accel Vibration Event
+INLIST: 3,50,1,Accel In-Motion
+INLIST: 3,51,1,Accel Orientation Match
+INLIST: 3,52,0,Accel Orientation Changed Event
+INLIST: 1,2,1,P0.02
+INLIST: 1,3,1,P0.03
+INLIST: 1,4,1,P0.04

7.12.3 MAPPING INPUTS:

To map inputs into the on air messages.
Up to 8 inputs can be mapped.
The input mapping command:
AT+INMAP=<input_source_id>,<input_num> Where:
<input_source_id> is the Nordic pin number (not the "key") of the input you want to map. There are also "virtual pins"
available with the following pin numbers:
48:Accel Motion Event
49:Accel Vibration Event
50:Accel In-Motion
51:Accel Orientation Match
52:Accel Orientation Changed Event
Examples:
Map Accel Motion event to input 1 in OTA messages:
AT+INMAP=48,1
Map actual pin 3 to input 2 in OTA messages:
AT+INMAP=3,2
"AT+INMAP?" Returns the mapped inputs. For example, issuing this query after doing the mappings listed above results in:
AT+INMAP?
+INMAP: 3,2
+INMAP: 48,1 OK
ST150M User Manual
Confidential & Proprietary Information
40

Advertisement

Table of Contents
loading

Table of Contents