The CC3200 Wi-Fi SensorTag was officially released towards the end of last month. Being super excited about its small form factor and not having to bridge it to an internet gateway like the CC2650 SensorTag,
I ordered one along with the Watch DevPack, to aid in debugging. I also ordered a Debug DevPack, but since the Wi-Fi SensorTag firmware has not been released, I’ve left connecting it for later. This writeup is based on TI SensorTag documentation and playing with the tag. If you find errors or questions, please comment below or post the question in the SensorTag sub-forum.
Excited? For more updates on the SensorTag, sign up below:
Contents
- Watch DevPack Interface
- Sensortag Initial Start-up
- Turning the SensorTag On/Off
- Toggling between AP and Station Mode
- Provisioning
- Over the Air(OTA) Firmware Update
- Links
Watch DevPack Interface
The above image shows the SensorTag with the Watch DevPack. The DevPack is just a display which is a Sharp Memory LCD. The LCD is a Polymer Networked Liquid Crystal(PNLC), which is very reflective and mirror like. I wish TI went with the TFT version of the display. The PNLC is very hard to read.
The DevPack mounts behind the SensorTag via a high density connector. Removing the red silicone sleeve exposes the connector. The DevPack also comes with an extra sleeve which can be cut to fit the display outline.
For the moment, I’ve found that the red protective sleeve can slide over the LCD, with a tiny bulge. In any case, I plan to use the screen for debugging and leave it covered most of the time.
Initial Start-up
Pressing the power button starts up the tag. When the SensorTag is first turned on, it boots up with version 0.98a. This is the factory default firmware and starts up in Access Point(AP) mode. The display shows the Wi-Fi SSID that can be used to connect to the tag – SensorTag-A3.
You can now use the phone application to connect to the SensorTag. The first thing the application will ask you to do is to upgrade the firmware via Over the Air(OTA). Connecting a system to a known Wi-Fi network is known as provisioning. I tried provisioning the SensorTag using the factory firmware, but was not successful. Once the tag firmware was updated to the latest version, provisioning was successful. The latest firmware as of today is 1.003.
Turning the SensorTag On/Off
The SensorTag can be turned on by pressing either of the two buttons. To turn off the SensorTag, press the power button for five seconds. If the Watch DevPack is present, the time for button press is displayed as:
BTN -U- [3 s]
The “U” stands for User. If the power button is pressed, “P” gets displayed as:
BTN –P [3 s]
If both buttons are pressed, you will see:
BTN -UP [3 s]
Toggling between AP and Station Mode
Most of the time the Wi-Fi SensorTag will be used in Station mode, which means it connects to a local Wi-Fi network. However, there are times that you would want the SensorTag in AP or Access Point mode. This allows for changing properties or performing a firmware update over the air.
To toggle, press the user button for 5 seconds. You should hear the tag beep. If the Watch DevPack is present, you will see “WLAN toggle” displayed as shown below:
Restoring Factory Default Firmware
If anything goes wrong with your provisioning process or OTA firmware update, don’t panic. The SensorTag can easily be restored to factory by pressing the POWER and USER button for 6 seconds. This will restore firmware to 0.98a. Note that I was not able to force a factory reset if the firmware was already at 0.98a.
Provisioning
Provisioning is the process of connecting the SensorTag to your local Wi-Fi network, eg your home network. To provision, download the iOS or Android application from their respective stores.
- If the tag has never been provisioned, it should come up in AP mode, ready for provisioning.
- If the tag has already provisioned before, press the USER button until you head a beep to switch to AP mode.
- Go to the phone’s Wi-Fi settings and select the SensorTag.
- Open the application and select the discovered SensorTag.
- This will bring up a new menu. Select “Wi-Fi Setup” and put in the Wi-Fi details.
- The tag will now start provisioning itself to the new network.
- After provisioning, you can view SensorTag details ans sensor data by using the phone application.
Over the Air(OTA) Firmware Update
OTA updates are seamless and the application guides you through it. The following images show the SensorTag side, while the phone application tries to update it.
The following sequence of events take place on the phone application side:
Links
- TI SensorTag tool – Technical
- Wi-Fi SensorTag – User Guide
- TI SensorTag wiki – CC3200 SensorTag Users Guide
- TI Store – CC3200STK-WIFIMK
- iOS – TI SensorTag App Store
- Andorid – Simplelink SensorTag Play Store
- 43oh Sensortag Discussion
- 43oh SensorTag posts
Nice tutorial! Now the real challenge is to upload a customised program to the CC3200 SensorTag.
Hello,
I have just received today my CC3200 SensorTag with its WATCH-Pack but I couldn’t update the firmware through OTA using both iPad or S6. The display shows in addition “HALT” in the AP-mode and the OTA always fails. Would it be possible to use the DUBUG-Dev-Pack to update the firmware instead of OTA?
I have purchased 10 no. of cc3200 sensor tag . I want to connect all tags with Raspberrypi3, hence i have to configure all tags from AP mode to STA mode..Kindly guide me how to do it …
If you hold down the user button for 6 seconds, the SensorTag toggles between AP and STA mode.
I have connected the Sensor Tag with Raspberry pi3 via WiFi ,here Sensor Tag remains as AP mode .I can able to ping the sensor tag’s ip with RPI3 . Now i want to read the sensor data , hence i supposed to know the port No. of Sensor tag(Like Sensor tag android app).
I am using python(Socket Program) code to do it . Is it possible to get the source of Android app..
can i use this with arduino?
Hello,
I have just received today my CC3200 SensorTag with its WATCH-Pack but I couldn’t update the firmware through OTA using both iPad or S6. The display shows in addition “HALT” in the AP-mode and the OTA always fails. Would it be possible to use the DUBUG-Dev-Pack to update the firmware instead of OTA?
Hi, I have problems connecting.
I could do it, update firmware, but then change access settings with WPA with a short password (5 characters) and I can not connect. I tried factory reset, but it does not do anything. Change to STA mode seems to do (beep) but in that case how do I connect via wifi, manually configuring the IP of the adapter to be in the same network ?, I do not have a Wi-Fi router ..
I am using python(Socket Program) code to do it . Is it possible to get the source of Android app..
It is very useful