Skip to content

Setup a communication channel between a Tap and IoTize Studio

Your PC and Tap can communicate with each other with varying levels of complexity. All methods are shown below:

PC Tap communication methods

Update firmware

It is good practise to first apply any firmware updates.

1. Direct BLE communication

An easy way to work with Taps is to use BLE, for which you need a BLE enabled PC and Windows 10 OS (version 10586 or higher). If your PC does not support Bluetooth, simply purchase a USB Bluetooth Adapter Dongle (note: some dongles are incompatible with Windows 10 BLE peripheral manager).

  1. Enable BLE on Windows 10.

  2. Configure IoTize Studio to use BLE protocol to connect to Tap.

2. Direct UART communication

  1. Configure IoTize Studio: Set IOTZ Explorer | Studio | Connection to Tap | Protocol to 'UART'.

  2. Connect Taps via UART using pins P1B7 (TxUART) and P1B8 (RxUART). See Host technologies: UART for details.

3. Direct Socket communication (Access Point/Network)

You can use direct Socket communication to connect IoTize Studio directly to your Tap either via the local WiFi network or an Access Point (default method).

  1. Connect the Primer Kit to the PC with a USB cable (to power the Tap) and check that these settings are correct:

  2. Set IOTZ Explorer | Studio | Connection to Tap | Protocol to 'Socket', and check Socket host name\IP is correct (default is as long as you are in Access Point mode).

  3. Set IoTized Application | Incoming communication (Wireless) | WiFi | Enable WiFi to Yes.
  4. Set WiFi mode to 'P2P(Access Point)' to use the Taps WiFi, or 'Network (station)' to use another WiFi network.

  5. Connect to the Sensor demo (you need both the Tap and Studio connected to the same network):

  6. Connect your PC to the right network. In Access Point mode, you have to be connected directly to the Tap by WiFi. Click on the Internet access icon on your PC.

  7. Select the network offered by your Tap (named 'Sensor demo_xxxxx' where xxxxx are the last digits of its Serial Number) and connect to it using the default security key ABCD1234. See How to change password if you have problems connecting.
  8. In IoTize Studio, go to IOTZ Explorer | Studio | Connection to Tap. Select 'Socket' as Connection Protocol and enter as Socket hostname/Ip.
  9. If you are already in station mode and you have a common access to the network, you just have to enter the IP address of your Tap. To find it, use Tap Manager, connect using either NFC or BLE, and read the IP address it in the WiFi section of the 'Info' page.

  10. Click first on Test connection button to check that the communication works, then click on the Monitor button in Studio to start running the Sensor demo on the Primer.

Why use a Socket / MQTT relay between your Tap and IoTize Studio

If you have an 'NFC-only' Tap, or your PC does not have Windows 10 (or can't use BLE), you must setup a relay. This relay connects your smartphone to the Tap via BLE or NFC, and to your PC via your IP network/cloud, and allows you to:

  • Apply the configuration from IoTize Studio to the Tap (through the mobile as relay).
  • Test your monitoring HTML pages from IoTize Studio.

There are 2 relay modes:

Socket relay
  • This is the simplest mode to implement
  • It offers the highest data transfer rate
  • It is recommended by default
  • It requires that your mobile device and your PC have access to a common IP network, for example through:
    • A company WiFi network
    • The WiFi hotspot of your mobile device
    MQTT relay
    • This mode is based on an MQTT broker
    • An implementation is provided by IoTize for TapNLink Primers (and more generally for Taps which have been provisioned in IoTize cloud platforms)
    • For standard Taps you have to implement your own broker (contact us)
    • It can work in ALL network configurations
    • It is not yet available from an iOS device

    4. Socket relay

    1. Start a socket relay using Tap Manager either on an Android device or an iOS device.
    2. Configure IoTize Studio to use the same IP as your socket relay.
    3. You can now use the relay to configure your Tap and to test your monitoring app from IoTize Studio:
    4. Tap Manager (Monitoring menu) shows the number of packets which have been exchanged.
    5. In Studio, click on Monitor, and see the Webapp view.

    5. MQTT relay

    Both the PC and the mobile device must access the MQTT broker through an internet access. See How to use an MQTT broker for details. Note:

    • a MQTT relay will be much slower than a Socket relay.
    • You can also use MQTT to communicate directly between the Tap and Studio if your TAP has an internet access (WiFi model only).
    Back to top