Difference between revisions of "ADAS SMS commands"
(5 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
==Camera SMS/GPRS commands== | ==Camera SMS/GPRS commands== | ||
− | + | ==File transfer== | |
− | |||
A new camera request was added, which allows server to request files from camera. The format is as provided below: | A new camera request was added, which allows server to request files from camera. The format is as provided below: | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 68: | Line 67: | ||
'''File upload procedure''' | '''File upload procedure''' | ||
When video/snapshot file is requested via SMS/GPRS command firstly the device checks if it has SD card inserted and if it has the requested video/snapshot in the SD card. The file is present, file upload is immediately triggered, otherwise the device checks if MDAS9 camera is connected to FMB640 and tries to download the file – file upload to the server starts only after the file was saved to FMBs SD card. | When video/snapshot file is requested via SMS/GPRS command firstly the device checks if it has SD card inserted and if it has the requested video/snapshot in the SD card. The file is present, file upload is immediately triggered, otherwise the device checks if MDAS9 camera is connected to FMB640 and tries to download the file – file upload to the server starts only after the file was saved to FMBs SD card. | ||
− |
Revision as of 11:41, 23 September 2022
Main Page > Video Solutions > Teltonika ADAS > ADAS SMS commandsCamera SMS/GPRS commands
File transfer
A new camera request was added, which allows server to request files from camera. The format is as provided below:
Command | Arguments | Explanation | ||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
mdas_camreq: | <file_type>,
<file_source>, <timestamp>, <duration>, <domain>,<port>1 |
Captures appropriate file with the provided details. If the connection to server is opened, then files immediately become available for download. If not, then the connection is tried to be made.
If <domain> and <port> parameters are included, the device will send footage of the command to that address. |
The arguments are as follows:
- <file_type>
- 0 – Video
- 1 – Snapshot
- <file_source>
- 0 – hardcoded MDAS. 1, 2 and 3 are reserved for DualCam project.
- <timestamp>
- Unix timestamp in decimal
- <duration>
- Video duration in seconds from provided timestamp (not required for photo download) (up to 30 s)
- <domain>
- Optional – domain to where file has to be sent
- <port>
- Only required if domain is used
*<domain> and <port> variables are optional and command can be used without them. Only available since 03.27.06.Rev.360. These parameters DO NOT work for SpecID160.
Camera firmware version This command can be used to retrieve the current camera FW version via SMS/GPRS.
Command | Arguments | Explanation | ||||||||||||||||||||||||||||||||||||||||||||||||||||
mdas_fwreq | None | Used to check camera’s firmware version |
General camera information This command sends these values, retrieved from the camera: date/time, error code, recording state, SD card status, camera state.
Command | Arguments | Explanation | ||||||||||||||||||||||||||||||||||||||||||||||||||||
mdas_getinfo | None | Used to get general camera information |
File upload procedure When video/snapshot file is requested via SMS/GPRS command firstly the device checks if it has SD card inserted and if it has the requested video/snapshot in the SD card. The file is present, file upload is immediately triggered, otherwise the device checks if MDAS9 camera is connected to FMB640 and tries to download the file – file upload to the server starts only after the file was saved to FMBs SD card.