Troubleshooting


We have listed some of the issues that are associated with the ThingPlus IoT.


 If the registered gateway or sensor is not visible on the page

Because it takes several tens of seconds to perform the registration procedure, the page is refreshed after waiting for about one minute If the symptom persists after a few minutes, use Terminal/Putty to connect to the device and check the contents by executing the following command.

@shell:$ tail -F -n 300 /opt/thingplus/gateway/log/thingplus.log

If more than one sensor is not registered

Restarting the gateway automatically registers the unregistered sensor.

Even though the devices registered in Thing + Portal are powered on, If the status is OFF

Connect to the device using terminal / Putty and check the contents by executing the following command. Verify that the device’s current time is the same as UTC time reference [(link)] (http://www.worldtimeserver.com/current_time_in_UTC.aspx).

@shell:$ date
Thu 26 Nov 00:00:00 UTC 2015    # The system time of the current device is displayed.

If the time on the device is different from the UTC time, update the time.

@shell:$ ntpdate -u ntp.ubuntu.com
@shell:$ hwclock -w -u

If the system time update fails, update the time directly.

UTC timeframe [(link)] (http://www.worldtimeserver.com/current_time_in_UTC.aspx): January 01, 2015 00:00:00, 2015-01-01 00:00:00

@shell:$ date --set '20XX-XX-XX XX:XX:XX'

Reboot the device.

@shell:$ reboot

[Windows][Arduino] Error on ./thingplus.sh start

Version issues with node: Issue the following command to check the version. node js must be v0.10.16.

node --version

Make sure app.min.exe is running with the command below.

tasklist | grep app.min  

If you see running app.min.exe, kill the process and run it again.

tasklist /f /pid [pid of app.min.exe] 

cd $HOME/thingplus/openhardware/arduino/grove-starter-kit
./thingplus_device.sh restart
cd $HOME/thingplus/gateway
./thingplus.bat restart

 Failure message occurred when registering gateway.

Make sure Gateway is pre-registered.

  • Go to Sensor List in the upper menu and check whether the gateway you have registered is already registered.

  • If it is already registered and does not operate normally, delete the gateway from Gateway Management.

  • ./getmac` to get the API KEY and make sure that APIKEY is entered at first execution.

    cd [Location where thingplus is installed]/gateway/thingplus-gateway/device/config
    cat runtime.json
    
  • You will see something like this: Make sure the APIKEY part is the same as the APIKEY you have been issued.
  • If you do copy and paste, typing directly will result in confusion between the lower case I and upper case I.

    ...
    
    "Gateway": {
    "name": "Gateway name"
    },
    "Server": {
       "APIKEY": "uL0................00r4="
     ...
    
    

  • Make sure that the duration and flash time are not set incorrectly.

  • Duration means the whole flashing time.

  • For example, if the duration is set to 10 seconds and the flashing interval is set to 1 second, it means the following. It will be lit 5 ~ 6 times actually.

1 second on - 1 second off - 1 second on - 1 second off - 1 second on - 1 second off - 1 second on - 1 second off - 1 second on - 1 second off

In the source, the durationMs in ~/thingplus/openhardware/arduino/grove-starter-kit/led.js is part of the duration. led.js

If the setting is greater than the blink interval, the blinking should be activated. If it still does not work, please see below.

In the case of Aduino, It is recommended that you run it as an example of arduino except ThingPlus. arduino ide

Select File> Example> 01.Basics> Blink and upload after compile, you can see that led blink.

If this does not blink, it may be a device problem.

If blink works, please contact us at contact@thingplus.net.

If the connection is not by the base shield, the LED should be plugged to + 13 and GND to +. arduino_led

Rpc error occurs when registering gateway.

  • If rpc timeout occurs during gateway registration, gateway and cloud are not communicating.

    1. If APIKEY is not entered normally

    2. Thingplus_device.sh or thingplus.sh did not run

    3. This is probably one of the cases where no network is connected to the gateway.

  • Here’s how to check the logs to see if there are any problems.

    $ tail -F -n 300 /opt/thingplus/gateway/log/thingplus.log
    
  • If you find it difficult to find the problem, please send us the log and we will check it.

I am following the arduino guide but the LED does not light up.

  • In PubSubClient, make sure to change the settings of MQTT_MAX_PACKET_SIZE and MQTT_KEEPALIVE.

  • reference