WiaTag
Fleetrun
Hecterra
NimBus
Other apps
Wialon for Android/iOS
Logistics
Wialon Local
Wialon Hosting
Distance Tag
Wialon Hosting
en
en ru es
Contents
How to Send Commands from Wialon to flespi Devices
  • commands





This guide describes the sequence of actions required to send commands from the Wialon system to physical devices registered on the flespi platform, including the creation of devices in flespi (hereinafter flespi devices).

  1. Create a device in flespi. To do this, open the Devices tab in the Telematics Hub, click on the button  in the lower right corner of the screen, fill in the required fields, and click Save.
  2. Create a channel to receive data in flespi: open the Channels tab, click on the button  in the lower right corner of the screen, fill in the name and protocol_id fields (the protocol corresponds to the type of the physical device), and click Save.
  3. Point the physical device (tracker) to the channel address (IP and port).
  4. Create a stream to redirect data. To do this, open the Streams tab, and click . Fill in the сonfiguration and uri (address of the flespi gateway device) fields, activate the ident option.

    IP varies depending on the data centre.

  5. Assign the flespi device created in step 1 to the stream. To do this, go to the Devices tab and click on the line with the flespi device to open the settings window. Next, on the Streams tab, click  and select the required stream.
  6. Copy a token on the flespi platform (the Tokens tab).
  7. In Wialon, paste the copied token into the Token field on the Security tab of the top account settings.
  8. Create a unit in Wialon. The device type should be the one indicated in the Device type field in step 1. It should be marked as flespi in brackets.
  9. Create a new command in the unit properties in Wialon.

    When creating the command, you can configure its parameters in the flespi form. In this way, you will not have to do it manually every time before sending the command to the unit.
  10. Send the command to the unit from the Monitoring tab.
  11. If the parameters of the command were not configured in its settings, specify them in this step.

How to Configure a Unit in Wialon for Obtaining Data from CMSV6
  • hardware





This guide describes the way of obtaining data from CMSV6 in Wialon with the example of video transmission. This process includes creating and configuring a unit and a command with a video request. Other types of commands are enumerated at the end of this document.

For correct video transmission in Wialon, it is required to set up a proxy server on the side of CMSV6 and configure it so that the data is transferred via HTTPS connection.

  1. Create a unit. In the Device type field on the General tab, select CMSV6 Gateway. Enter the unique identification number of the device indicated in CMSV6.
  2. Go to the device configuration by clicking on the icon .
  3. Fill in the required fields in the open dialog box.

    ▪ CMSV6 Web Host. The IP address or domain name from the URL of the CMSV6 website. In case of using a secure connection, you should specify the protocol (for example, https://12.34.56.78 or https://yourcmsv6site.com).
    ▪ CMSV6 Web Port. The port from the URL of the CMSV6 website, if any. You can also indicate the host and port in the CMSV6 Web Host field. In this case, you should not fill in the CMSV6 Web Port field.

    CMSV6 Account. Name of the CMSV6 account.
    CMSV6 Password. Password of the CMSV6 account (twice).

    Prefer Flash Player for Live Stream. The option is enabled by default. Disable it if you want to use HLS instead of RTMP.
    CMSV6 Timezone in minutes. The difference between the time zone of the device and GMT+0 in minutes, if they differ. For example, if the time zone of the device is GMT +3, you should type 180 (without the plus sign) in the field. The device as well as the CMSV6 and Wialon accounts should have the same time zones.
  4. Click ОК.
  5. On the Commands tab of the unit properties, create a command of the Request Live Stream (request_live_stream) type with the name RequestLiveStream#1. Such name (spelled in one word) is required to send the command automatically by clicking on the icon  on the Monitoring tab. Commands with other names can only be sent manually.
  6. In the Channel field, select Virtual.
  7. Deactivate the Without parameters option and indicate the numbers of the required channels without spaces and separating them by commas. For certain devices, numbering can start from 0.

  8. Save the changes.
  9. To start video transmission, click on the icon  in the unit list on the Monitoring tab. The option is available only after the unit sends at least one message with coordinates.

Other command types

The data sent by the device, such as photo and video files, is stored on the CMSV6 server. Only links to these files are sent to Wialon. To get access to them, you should create a command of the corresponding type in the unit properties.

download_video

When this command is sent, video recordings are uploaded from the device to the CMSV6 server. If there is no connection to the device, the query execution is postponed until the device is connected to the server. To see if the video is uploaded to the CMSV6 server, execute a get_video_records_info command.

get_video_records_info

This command allows you to query information about the video that is stored in the device or on the CMSV6 servers. You can select the location of the data in the properties of the command.

After the command is executed, if there are available files, the icon  becomes active on the Monitoring tab (the Media option). Besides, a numeric indicator shows up over the same icon in the bottom panel.

Besides, you can query messages from units for the required interval (the Data messages type, show parameters as raw data). The icon  will be displayed in the Media column of the resulting table. Click on it to view the found photo and video files.

The messages with media files contain the following parameters:

  • video uri: the link for playing the video;
  • loc: the file location (loc=2 indicates that the file is stored on the CMSV6 storage server);
  • cha_n: the number of the video channel.

get_gps_status

This command allows you to query the last GPS location.

get_photo

Using this command, you can query a photograph from the camera in real time.

get_track

The command allows you to query the telematic data of the unit for the indicated period (similarly to the import of messages in Wialon).

How to Prepare JC100/200 Devices and Configure a Unit in Wialon to Download Images and Videos
  • hardware





This guide describes how to prepare a JC100 or JC200 device and to configure a unit which uses this device in order to receive photos and videos. After configuring the unit, you can also execute other commands described in the Other available commands section of the guide.

The JC100 and JC200 devices can only transfer files in real time, that is, it is impossible to receive files from the memory of these devices.

  1. Download the appropriate firmware for the device in Gurtam forum and install it according to the guide which is also available there.
  2. Create a unit. On the Advanced tab, specify the unit name, device type and unique ID. For JC200 devices, choose the JC100 type.
  3. On the Commands tab of the unit properties, create a command to tell the device the address for downloading photo and video files. Select the Send custom message type for the command. In the Channel field, select TCP.
  4. Uncheck the Without parameters option and type in the Message field the IP address and the port of the server indicated in the General tab of the unit properties.
    Use the following format: HSERVICE,http://:/. For example, HSERVICE://193.193.165.165:21607/.
  5. Click OK.
  6. Make sure that the unit is online (a green icon is displayed opposite the unit name in the work list of the Monitoring tab) and click on the icon  to send the command.
  7. In the list of available commands, select the one created at step 3 (HSERVER). Click OK.
  8. In the Chat with Drivers window, you will see a message about sending the command successfully.
  9. On the Commands tab of the unit properties, create a command to download photo or video file. To do this, select the Send custom message (custom_msg) type. In the Channel field, select TCP.
  10. Uncheck the Without parameters option. In the Message field, select one of the available options.
    • Video,in,Ns: to request a video from the internal camera, where N is the duration of the video (not more than 20 s). For example, Video,in,10s.
    • Video,out,Ns: to request a video from the external camera, where N is the duration of the video (not more than 20 s). For example, Video,out,10s.
    • Picture,in: to request a photo from the internal camera.
    • Picture,out: to request a photo from the external camera.
  11. Click ОК.
  12. Make sure that the unit is online and click on the icon  to send the created command.
  13. In the list, select the command you need (Video_OUT_10S) and click OK.
  14. In the Chat with Drivers window, you will see a message about sending a command to download a file.
  15. After downloading is complete, a red indicator is displayed near the icon  in the bottom panel. Click on it to open the file. You can also cick on the icon  opposite the unit name in the work list (the Media option).

Other available commands

Before creating a command, you should prepare the device and configure a unit in Wialon (steps 1 — 8 of the guide). The text of the command should be typed in the Message field when creating the command (see steps 9—10 of the guide).

Video streaming

To stream video, some additional configuration of the unit is required. To do this, fill in the fields described below in the Device configuration window of the unit properties (icon  in the General tab).

RMTP server. Here you should specify the IP and the RTMP port of the server which is set by the user.
Camera aliases. Indicate the unique ID of the unit as the ID of the camera.

The following commands are used to manage the video streaming:

  • RMTP,ON,IN: enable video streaming from the internal camera;
  • RMTP,ON,OUT: enable video streaming from the external camera;
  • RMTP,OFF: disable video streaming.

To watch the video streaming, click on the icon  in the work list of the Monitoring tab.

It is impossible to stream video from two cameras at the same time.

How to Configure a Unit in Wialon for the Eco Driving Application to Work with Teltonika Devices
  • hardware
  • eco_driving
  • teltonika





This guide describes how to prepare a device manufactured by Teltonika and to configure a unit which uses this device so that the Eco Driving application can work with this unit. The guide is suitable for all devices of the FMB, C, M, U lines, except for the FMC640, FMM640, FMB640 models.

  1. Configure the 258 parameter (Eco Driving Maximum) in the device.
  2. Open the Sensors tab of the unit properties in Wialon.

  3. Create a custom Accel_MAX sensor. In the Parameter field, specify the following formula:
    (((io_258:48*const32768)-

    (io_258:33*const1+io_258:34*const2+io_258:35*const4+io_258:36*const8+io_258:37*const16+i

    o_258:38*const32+io_258:39*const64+io_258:40*const128+io_258:41*const256+io_258:42*cons

    t512+io_258:43*const1024+io_258:44*const2048+io_258:45*const4096+io_258:46*const8192+io

    _258:47*const16384))*io_258:48)/const1000

  4. Create a Brk_MAX sensor. In the Parameter field, specify the following formula:
    ((-

    (io_258:33*const1+io_258:34*const2+io_258:35*const4+io_258:36*const8+io_258:37*const16+i

    o_258:38*const32+io_258:39*const64+io_258:40*const128+io_258:41*const256+io_258:42*cons

    t512+io_258:43*const1024+io_258:44*const2048+io_258:45*const4096+io_258:46*const8192+io

    _258:47*const16384))*(io_258:48-const1))/const1000

  5. Create a Crn_MAX sensor. In the Parameter field, specify the following formula:
    (-

    (io_258:17*const1+io_258:18*const2+io_258:19*const4+io_258:20*const8+io_258:21*const16+i

    o_258:22*const32+io_258:23*const64+io_258:24*const128+io_258:25*const256+io_258:26*cons

    t512+io_258:27*const1024+io_258:28*const2048+io_258:29*const4096+io_258:30*const8192+io

    _258:31*const16384))*(io_258:32-const1))/const1000+(((io_258:32*const32768)-

    (io_258:17*const1+io_258:18*const2+io_258:19*const4+io_258:20*const8+io_258:21*const16+i

    o_258:22*const32+io_258:23*const64+io_258:24*const128+io_258:25*const256+io_258:26*cons

    t512+io_258:27*const1024+io_258:28*const2048+io_258:29*const4096+io_258:30*const8192+io

    _258:31*const16384))*io_258:32)/const1000

  6. Open the Eco driving tab and add custom criteria for the created sensors.

    • The Acceleration criterion for the Accel_MAX sensor.

    • The Braking criterion for the Brk_MAX sensor.

    • The Cornering criterion for the Crn_MAX sensor.

      To calculate the acceleration when assessing the driving quality using the io_258 parameter, select the Eco Driving parameters method.

Now you can track the driving quality of the unit in the Eco Driving application.

There are no pictures in the gallery


5
  • 5
  • 10
  • 25
Thank you for your feedback!