background image

Vantron VT-M2M-BTA-DE ThingWorx Installation and Setup Guide

 

Copyright © 2015 PTC Inc. and/or Its Subsidiary Companies. All Rights Reserved.

 

10   

This completes the setup of the Vantron VT-M2M-BTA-DE device with a demo data-acquisition program 
named lvdemo. 

You may write and copy your own executable programs to interface with ThingWorx Platform using the 
TW C SDK, to suit your needs. 

Troubleshooting 

 

Problem 

Solution(s) 

Encounter “No such file” error 
when attempting to copy the 
MicroServer folder to the VT-
M2M-BTA-DE device. 

Ensure that the Microserver directory downloaded from the 
PTC Downloads site is located in the proper directory of the 
terminal program you are using; otherwise, reference it as 
appropriate.  For Cygwin, ensure the MicroServer directory is 
located in the 

home/username/

 directory. 

The VT-M2M-BTA-DE board 
cannot connect to the 
internet via Ethernet cable. 

1.

 

Verify that the Ethernet cable is connected to a port with 
a valid Internet connection (verify with another 
computer). 

2.

 

Verify that the VT-M2M-BTA-DE board is configured to 
manually set an IP address. 

3.

 

Verify that the default gateway for the VT-M2M-BTA-DE 
board is correct. 

Error while attempting to 
open a WebSocket connection 
(VT-M2M-BTA-DE device). 

1.

 

Confirm that the VT-M2M-BTA-DE device has access to 
the Internet. 

2.

 

Confirm the accuracy of the IP address and port numbers 
in the 

settings.json

 file. 

3.

 

Confirm the appKey authenticity in the 

settings.json

 file. 

4.

 

Confirm that ThingWorx Platform at the IP address 
specified in the 

settings.json

 file is up and running. 

5.

 

Ensure that you have a valid certificate for an SSL 
connection to the server running ThingWorx. 

6.

 

Check the hardware time and ensure that it shows the 
correct local time zone. 

The run.sh program does not 
execute on the VT-M2M-BTA-
DE device. 

1.

 

Ensure that the “lvdemo”, “settings.json”, “run.sh”, and 
“so” directories (containing libraries) are all located 
within the 

/data/lv-demo/

 folder on the VT-M2M-BTA-DE 

device 

2.

 

Ensure that the “run.sh” directory references the correct 
filename of the 

lvdemo

 executable. Use the “vi” 

command to check and update the filename of the 

lvdemo

 as appropriate. 

3.

 

Ensure you have compiled the executable using the latest 
version of the C-SDK. 

Содержание VT-M2M-BTA-DE

Страница 1: ...Vantron VT M2M BTA DE ThingWorx Installation and Setup Guide October 2015 ...

Страница 2: ...ed for in the software licenses agreement except with written prior approval from PTC UNAUTHORIZED USE OF SOFTWARE OR ITS DOCUMENTATION CAN RESULT IN CIVIL DAMAGES AND CRIMINAL PROSECUTION PTC regards software piracy as the crime it is and we view offenders accordingly We do not tolerate the piracy of PTC software products and we pursue both civilly and criminally those who do so using all legal m...

Страница 3: ... Introduction 2 About the Vantron VT M2M BTA DE 2 Installation 2 Compile the Vantron lvdemo Executable 2 Prerequisites 2 Connect the VT M2M BTA DE to a local machine and peripheral 5 Configuration and Setup 6 Import Demo Entities into your ThingWorx Platform 6 Set up a WebSocket Connection 7 Troubleshooting 10 Compatibility 11 Revision History 11 ...

Страница 4: ... Note This guide was written for a computer running Microsoft Windows Modify procedures as needed for your environment Refer to the Troubleshooting section of this guide for help with frequently asked questions Compile the Vantron lvdemo Executable This guide explains how to connect ThingWorx to the Vantron VT M2M BTA DE gateway device using a custom executable that establishes a secure WebSocket ...

Страница 5: ...Create a directory named tw c sdk b Put all the files and directories within ThingWorx C SDK 1 1 1 38 tw c sdk and all the files within lvdemo_src tw c sdk into the tw c sdk directory c Confirm that no files are overwritten 6 Move the newly created tw c sdk directory into the debootstrap squeeze i386 directory 7 Using the chroot command limit the compile environment to the debootstrap squeeze i386...

Страница 6: ...c From the terminal program connect to the Ubuntu machine and copy the file to the VT M2M BTA DE using SCP Note Ensure that the run sh settings json and lvdemo and so directories are located under the same directory on the VT M2M BTA DE device preferably all in the opt lv demo directory Please see the next section for connecting to the Vantron device Please note that you should NOT move on to sect...

Страница 7: ...t the VT M2M BTA DE device is connected to a cable which has an internet connection In this sample ETH1 port is preferred Note ETH1 port is eth0 in OS ETH2 port is eth1 in OS The eth0 port is set to obtain an IP address automatically via DHCP The static IP address of eth1 is 192 168 1 1 2 Connect the VGA display to VT M2M BTA DE 3 Connect the USB keyboard to VT M2M BTA DE 4 Login to the device Ent...

Страница 8: ...antron Demo ThingWorx mashup You need to set up those entities in your ThingWorx Platform Import Demo Entities into your ThingWorx Platform 1 Log into your ThingWorx Platform Composer 6 0 or later and import the entities as a whole package 2 Note the URL and port of your ThingWorx Platform server 3 Create an Application Key on the ThingWorx server Make note of the Application Key or AppKey as you ...

Страница 9: ...ddress of the Ethernet connection 2 Verify an internet connect Type ping 8 8 8 8 or some other public Internet address The following steps are needed for testing out how the data gathered from the VT M2M BTA DE device is reported These steps are to be used with a sense plate or similar sensor connected to the VT M2M BTA DE via USB cable 3 Connect the Sense plate by USB cable to the VT M2M BTA DE d...

Страница 10: ...n Be sure to supply the correct Application Key as well If you haven t already created one it may be generated in the ThingWorx Platform from the Application Key section in the Home Composer screen 6 To start the data reporting demo program run the run sh file by typing the following command bash run sh If the program executes properly and the configuration is correct you should see an output in t...

Страница 11: ...nd do the following a Click the Monitoring drop down and select Subsystems b Click WS Communications and then click Refresh Now In the displayed list you will see an active WebSocket or an additional WebSocket 8 Navigate to the VantronMainUI_US mashup if included and choose the monitor name on the left that matches that specified earlier in the settings json file You will see a mashup with reporte...

Страница 12: ... that the VT M2M BTA DE board is configured to manually set an IP address 3 Verify that the default gateway for the VT M2M BTA DE board is correct 3 Error while attempting to open a WebSocket connection VT M2M BTA DE device 1 Confirm that the VT M2M BTA DE device has access to the Internet 2 Confirm the accuracy of the IP address and port numbers in the settings json file 3 Confirm the appKey auth...

Страница 13: ...ompanies All Rights Reserved 11 Compatibility This guide has been tested for compatibility with the Vantron VT M2M BTA DE and the following ThingWorx Platform and operating system ThingWorx Platform Version OS ThingWorx 6 0 1 Windows 7 Service Pack 1 Revision History Date Revision 10 22 2015 Initial Release ...

Отзывы: