Gemalto is now part of the Thales Group, find out more.

You are here

Preparing a SensorLogic demo

Tutorial, September 10, 2014 - 3:35pm, 3164 views

DangerShield

Hi all,
this tutorial shows how to setup a SensorLogic demo.

First thing to do is to request an account to the SensorLogic demo portal (adminportal.sensorlogic.com) to SL champions team or via Technical Sales representative of your region.

Once got the account, SL champion team can ship you a DangerShield board. Please NOTE that all components need to be soldered on the board. This is very easy operation and takes about 40 minutes.
The instructions about how to solder the DangerShield are contained at following link:

https://www.sparkfun.com/tutorials/274

The old DIYP board is not produced anymore by Gemalto. This is the reason why we need to use the commercial Dangershield for the demonstration.

DangerShield

Just follow the instructions and then connect the DangerShield to a ConceptBoard through the Arduino connectors. NOTE that Dangershield has 2 pins less with respect to ConceptBoard so you need to plug it by skipping I2C pins.

Once done you can power-on the concept board and verify that DangerShield power led (the red one) is ON. Don't care if the display does not power on yet. It will power-on after loading the Midlet.


Now we need to load our Java Midlet (running SL agent library) or DIYP Midlet v1.6.0 (internal demo version adapted for DangerShield) into the module (i.e. EHS6) using MES. All files can be put in A:/ directory of module but before that some parameters need to be changed:

Sensorlogic.config:

DEVICE_ID = DANGERSHIELD_XX -> change XX with your initials

SL_PORTAL_URL = 199.167.39.10

SL_PORTAL_PORT = 17198

SL_PORTAL_URL_BACKUP = 95.143.247.145

SL_PORTAL_PORT_BACKUP = 1235

SimAndNetwork.config: <- to be filled according to operator APN and SIM credentials

# pin code for the current SIM card, if SIM is not pin protected it is ignored
PIN=

# apn value for current SIM
APN=

# apn credentials - user name
APN_USER=

# apn credentials - password
APN_PASS=

Once done you can install the Midlet with AT^SJAM or just run it will AT^SJRA:

AT^SJRA="a:/PocketDemoMIDlet.jad"

Restart module and you will see the display power on with default value (9).

If SIM is inserted it will start sending sensor data to SensorLogic portal.

Next step is to connect to SL portal account and create a new device with same device id used in Sensorlogic.config file. You can follow the instructions contained in previously published SL user guide:

https://developer.gemalto.com/documentation/sensorlogic-agent-user-guide-v01a

If all done you can start playing with sensors on the board, see the values change in the portal or force new values from the portal.

Enjoy it!

Regards,

Paolo

lbonvarl's picture
lbonvarl

Paolo, Thanks for this great tutorial, very useful for the upcoming IOT World Event Hackaton in San Francisco Moscone Center on May 12,13 that Gemalto is supporting ! Please look for further info here in our Developer Forum.

pfuccell