Lantronix FOX3-3G-BLE Application Note Download Page 9

How to Use BLE with the FOX3-3G-BLE Device 

 

SYS.BLE.sDisconnected 

True,  as  long  as  the  BLE  connection  state  of  the  FOX3-3G-BLE  (slave)  to  a  BLE 
master (Smartphone/Tablet/PC) has changed from connected to disconnected. It 
may  happen  that  after  the  master  device  has  disconnected  an  established 
connection, the connection of FOX3-3G-BLE (slave) to a master is lost. 

Commands syntax  

Description 

Sys.Ble.Scan 

Starts scanning for new BLE devices in your near environment. The FOX3-3G-BLE 
scans  for  12  seconds  long  for  around  iBeacons.  This  value  of  12  seconds  is 
predefined in the firmware and ca

nn’t be customized by the users.

 

Sys.Ble.List 

Shows all available BLE devices listed by names. Depending on the length of the 
advertised  friendly  names  of  the  BLE  iBeacons,  the  device  can  store  up  to  28 
names, if the name for each iBeacon has a length of max. 24 bytes. 

SYS.BLE.ClearList 

Clears  the  list  of  BLE  sensors  saved  in  the  dynamic  variables  &(BLE.List)  and 
&(BLE.List2) during the last device scan. 

SYS.BLE.Select,<

index

Selects  the  user  specified  index  from  the  list  saved  in  the  dynamic  variable 
&(BLE.List) and &(BLE.List2) during the last device scan. 

SYS.BLE.Show,<

index

>,<"

text

"> 

Reports the received attributes  of iBeacon which is in the selected list. <”text”> 

can include attributes of the selected iBeacon using dynamic entries. 

Sys.Ble.Send,<protocol>,"<text+dynamic 
entries>" 

Sends the specified protocols and/or user text to the BLE connected devices. 

Msg.Send.Ble,<protocol>,"<text+dynamic 
entries>" 

Sends the specified protocols and/or user text to the BLE connected devices 

Dynamic Entries Syntax 

Entries Description 

&(BLE.Name) 

Used to report the name of last registered BLE device. 

&(BLE.RSSI) 

Used to report the RSSI value in dbm from last registered BLE device. 

&(BLE.Released) 

Used to report the name of last released BLE device. 

&(BLE.List) 

Used to report the devices found at last scan. 

&(BLE.List2) 

Reports list of beacon MACs which were successfully scanned. 

&(BLE.MAC) 

Reports the MAC address of the registered iBeacon. 

&(BLE.UUID) 

Reports the universally unique identifier (UUID) of the registered iBeacon. This is 
a  16-byte  value  that  identifies  the  manufacturing  organization.  For  example,  all 
iBeacons  from  the  same  organization  will  have  the  same  UUID.  This  field  is  a 
mandatory part in the advertisement packet. 

&(BLE.Major) 

Reports the Major value of the registered iBeacon sensor.  This is an optional field 
in  the  advertisement  packet  of  iBeacons  and  not  mandatory  to  advertise  every 
time  and  some  iBeacons  do  not  advertise  it  at  all.  This  is  a  2  byte  field  that 
specifies  a  certain  group  under  an  UUID.  If  the  beacons  from  same  UUID  are 
deployed in different cities then each city might a have unique major ID. 
It is set to 0 if not available. 

&(BLE.Minor) 

Reports  the  Minor  value  of  the  registered  iBeacon  sensor.  This  2-byte  field 
identifies  a  particular  beacon  and  is  unique  for  each  beacon.  This  is  also  an 
optional  field  and  some  iBeacons  do  not  advertise  it  at  all.  When  the  FOX3-3G-
BLE  detects  iBeacons,  the  above  mentioned  IDs  will  inform  the  master  which 
beacons are in the vicinity. The RSSI values give additional information to localize 
mobile assets using these identification parameters and RSSI. 
It is set to 0 if not available. 

&(BLE.relName)  

Reports the name of the last released beacon. 

&(BLE.relMAC)  

Reports the MAC address of the last released beacon. 

&(BLE.relUUID) 

Reports the UUID of the last released beacon. 

&(BLE.relMajor)  

Reports the major value of the last released beacon. 

&(BLE.relMinor)  

Reports the minor value of the last released beacon. 

Summary of Contents for FOX3-3G-BLE

Page 1: ...Application Note How to Use BLE with the FOX3 3G BLE Device Part Number APP 0012 Revision A October 2019 ...

Page 2: ...Sales Offices For a current list of our domestic and international sales offices go to the Lantronix web site at www lantronix com about contact Disclaimer All information contained herein is provided AS IS Lantronix undertakes no obligation to update the information in this publication Lantronix does not make and specifically disclaims all warranties of any kind express implied or otherwise regar...

Page 3: ...y 2019 1 0 3 Document throughout updated Added sections 1 2 and 1 3 and 1 4 1 to 1 4 4 Added new commands events dynamic variables see table in section 1 5 Extended section 1 7 June 2018 1 0 4 Added new dynamic entries for the released iBeacons see table in section 1 5 Added new configuration parameter BLE SCANDURATION ScanDuration see table in section 1 5 October 2019 A Initial Lantronix document...

Page 4: ...e to your PC 6 1 4 2 Installing the Workbench software and loading the configuration into the device 7 1 4 3 Powering up the FOX3 3G BLE with the help of either CA70 or CA69 8 1 4 4 Testing the BLE modes of the FOX3 3G BLE device 8 1 4 4 1 PFAL commands implemented for BLE in the AVL firmware 3 0 x and 3 1 x 8 1 4 4 2 Setup your FOX 3G BLE device as a slave to send specific data to a master server...

Page 5: ...n sent out from other BLE iBeacons peripherals slaves collects their data and sends this information over TCP to a remote server This mode can be used for example for IoT solutions in transportation and logistics to connect iBeacon sensors attached to objects and identify them on a remote platform server The combination of FOX3 3G BLE and iBeacons allows fleet operators to build solution that can ...

Page 6: ...s 4 Workbench software to load the configuration into the FOX3 device 5 Power source from 12 to 32 VDC e g 12 VDC in your vehicle 1 4 Hardware setup This chapter explains how to connect and get started with FOX3 3G BLE Follow this four step process to get started with BLE 1 Connect FOX3 3G BLE device to your PC with the help of Control box or USB cable 2 Install the Workbench software and load the...

Page 7: ...fter completing the installation double click on Workbench exe to start it Open a new COM Port from the Toolbar 1 on the COM Port view 2 choose the port where FOX3 2G 3G 4G is connected go to Device Manager Ports USB Serial Port COMxx where xx is the COM port to use define the port settings 115200 bps 8 Data bits No Parity bit 1 Stop bit None Flow control and finally click the connect play icon 2 ...

Page 8: ...Defines the BLE device name Default FOX3 3G AVL e g PFAL CNF Set Ble AdvName FOX3 BLE BLE WHITELIST None Public Name MAC Sets the whitelist mode after scanning iBeacons None Disables checking the attributes of iBeacon sensors to be inserted into the whitelist Public Lists only iBeacon sensors advertising their name s after scan Name Lists all iBeacon sensors that advertise and don t advertise thei...

Page 9: ...e BLE RSSI Used to report the RSSI value in dbm from last registered BLE device BLE Released Used to report the name of last released BLE device BLE List Used to report the devices found at last scan BLE List2 Reports list of beacon MACs which were successfully scanned BLE MAC Reports the MAC address of the registered iBeacon BLE UUID Reports the universally unique identifier UUID of the registere...

Page 10: ...equest 1 Turn on the FOX3 3G BLE and configure it with such alarm configuration lines PFAL CNF Set AL1 SYS BLE eConnected Sys Timer0 start cyclic 5000 AL1 starts a cyclic timer with a timeout of 5000 ms once the device is connected to the BLE server tablet PFAL CNF Set AL2 Sys Timer e0 Msg Send Ble 8 Name Devicename IMEI IMEI Date Date Time Time AL2 sends the name IMEI date and time of the device ...

Page 11: ...nal Demo starts up you will see this window see Figure below Figure 3 Main user interface after starting the BLE Terminal Demo 6 Click on the scan symbol to start scanning the BLE devices near the tablet 7 The App should find FOX3 3G AVL Please note that the maximum length for the FOX3 3G BLE advertised name is 10 characters 8 Click on the name FOX3 3G AVL see Figure below ...

Page 12: ...rface on the BLE Spp Demo 10 Click on the connect disconnect symbol to establish the BLE connection 11 Once the BLE connection between the FOX3 3G BLE and the tablet is established the FOX3 3G BLE generates the event SYS BLE eConnected and starts sending its data periodically every 5 seconds see Figure below Figure 6 The tablet receives data from the FOX3 3G BLE ...

Page 13: ...e BLE beacons detections you can automate the BLE scan procedure by using the action command Sys Ble Scan in PFAL alarm lines iBeacons can be used in application such as container identification trailer identification pallet tracking and more iBeacons are attached to your pallets containers trailers and the FOX3 3G BLE devices are wired permanently onto trucks Figure 8 IoT solutions when using FOX...

Page 14: ... server Data transferred to the server BLE REGISTER MAC 7C 2F 80 AA 63 82 UUID 80010215123480AA638CBBC5 MAJOR 1 MINOR 10 51 GPRMC 083157 000 A 5040 4185 N 01058 8433 E 2 42 169 88 250618 00 BLE REGISTER MAC 7A 2F 80 A0 63 00 UUID 4C000102030405060708090A0B0C0D0E0F10 MAJOR 10 MINOR 267 65 GPRMC 083157 000 A 5040 4185 N 01058 8433 E 2 42 169 88 250618 00 PFAL Cnf set AL4 Sys Ble eRelease TCP Client ...

Page 15: ...egrated NFC chipset for programming You must change their format from ID temp into iBeacon The id and temp formats are currently not supported in the FOX3 3G BLE Operating temperature 40 C to 85 C 2 mounting 4mm holes Ø57mm H 18mm W 36g RoHS compliant ...

Reviews: