Use your GL.iNet devices for WiFi detection

December 6, 2017 admin News

GL.iNet is a leading manufacturer for WiFi routers with openWRT pre-installed. This means that out of the box GL.iNet routers run openWRT. The BlueMark Zero firmware is supported by these devices. It means that with a few steps you can turn your GL.iNet device(*) into a device that detect WiFi devices. BlueMark Zero supports the full range of GL.iNet routers.


(*) The GL-MT300N-V2 device is not supported (directly) as it is shipped with a binary WiFi driver that does not provide monitor mode; needed for detection of devices. It can be solved by installing/upgrading the OEM firmware by one of the LEDE project.

Install BlueMark Zero

Installing BlueMark Zero is easy.

  1. Setup your GL.iNet device (set up password, timezone)
  2. Login to the GL.iNet device by SSH (e.g. ssh root@
  3. Retrieve the installation scrip and execute itt, enter this commands.
    1. cd /tmp; wget
    2. sh
  4. The installation script will ask two questions, enter a sensor ID and a software license. The sensorID is a number to identify the sensor. For instance if you enter 100, all collected data will be assigned to sensor with sensorID 100. It is wise to choose sensor IDs unique. So you won’t have project with the same sensor IDs. The other questions is to enter a software license. This license is needed to unlock the firmware.  Once installed the firmware will check roughly every 4 hours if the license is valid and if successful will unlock the firmware. Licenses can be generated at our license portal.
  5. After (automatic) rebooting your GL.iNet router will start sensing!
  6. Check the BlueMark detection settings at (The regular URL does not work due to the GL.iNet firmware.)
  7. The BlueMark firmware supports different ways of outputting data. The firmware can act as TCP server and output the data as JSON or XML objects. The default output mode is to write the detected devices to SQL text strings. Periodically those files are compressed and sent to the server via SCP communication. To set this mode up, a SSH key has to be generated at the sensor. Its public key is needed at the server to authorise uploads
    1. By default the sensor has a demo SSH key installed, it allows to upload data to our demo server.
    2. At the sensor perform this command to generate a unique key: dropbearkey -t rsa -i /root/.ssh/id_rsa 
    3. Use the public key at the server to allow the sensor to upload data. It is advised to use one key per project for security reasons.
  8. For more information please visit our wiki. (Ask our team for a login code.)