Changes

Created page with "==DualCam RS232 camera support== DualCam camera support was introduced from firmware version 03.27.06.Rev.360. A new RS232 mode "DualCam" was added with parameters for setting..."
==DualCam RS232 camera support==
DualCam camera support was introduced from firmware version 03.27.06.Rev.360. A new RS232 mode "DualCam"
was added with parameters for setting control. The details of the RS232 mode parameter are provided in the table below.
{| class="wikitable"
|+
! rowspan="1" style="width: 400px; background: #0054A6; color: white;" |'''Parameter name'''
! rowspan="1" style="width: 400px; background: #0054A6; color: white;" |'''Parameter ID'''
! rowspan="1" style="width: 400px; background: #0054A6; color: white;" |'''Parameter value'''
|-
| rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |RS232 Mode
| rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |151
| rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |18
|}
[[Image:DualCamCFG.PNG|{{{general|size}}}|right]]
Configuration version 8.14.1.0 has to be used if configuration is being made in offline mode.
<br>
<br>
<be>

==Camera Feature Settings Parameters ID==
[[Image:CameraFeatureSettings.PNG|{{{general|size}}}|right]]
Once this mode is enabled, new tab “Camera Settings” appears on the left sidebar. This will contain the main parameters for configuring the camera settings The parameter IDs and values are provided in the table below. Once configuration is
saved to device, these parameters are updated.
<br>
{| class="wikitable"
|+
! rowspan="1" style="width: 400px; background: #0054A6; color: white;" |'''Parameter name'''
! rowspan="1" style="width: 400px; background: #0054A6; color: white;" |'''Parameter ID'''
! rowspan="1" style="width: 400px; background: #0054A6; color: white;" |'''Parameter values'''
! rowspan="1" style="width: 400px; background: #0054A6; color: white;" |'''Default values'''
|-
| colspan="1" rowspan="6" style="text-align: center; style=" width: 150px; background: white; color: black;" |Camera Picture Resolution
| colspan="1" rowspan="6" style="text-align: center; style=" width: 150px; background: white; color: black;" |66000
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |0 - 160 x 120
| colspan="1" rowspan="5" style="text-align: center; style=" width: 150px; background: white; color: black;" |3
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |1 - 320 x 240
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |2 - 640 x 480
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |3 - 1280 x 720
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |4 - 1920 x 1080
|-
| colspan="1" rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |Camera Picture Compression
| colspan="1" rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |66001
| rowspan="1" style="text-align: center; vertical-align: center;" |[0 - 100] (%)
| colspan="1" rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |50
|-
| colspan="1" rowspan="2" style="text-align: center; style=" width: 150px; background: white; color: black;" |OSD Display
| colspan="1" rowspan="2" style="text-align: center; style=" width: 150px; background: white; color: black;" |66002
| rowspan="1" style="text-align: center; vertical-align: center;" |0 - Disabled
| colspan="1" rowspan="2" style="text-align: center; style=" width: 150px; background: white; color: black;" |0
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |1 - Enabled
|-
| colspan="1" rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |Video Frame Rate
| colspan="1" rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |66003
| colspan="1" rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |20, 25 and 30 (frames per second)
| colspan="1" rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |30
|}
'''OSD display''' - On Screen Display feature displays date and time in the upper left corner of the photo. This feature can be enabled or disabled.
<be>

==Camera Scenario Settings Parameters ID==
[[Image:CameraScenarioSettings.PNG|{{{general|size}}}|right]]
"Camera settings" tab also contains scenario settings that trigger camera video/photo capture when specific condition is met.
<br>
{| class="wikitable"
|+
! rowspan="1" style="width: 350px; background: #0054A6; color: white;" |'''Parameter name'''
! rowspan="1" style="width: 350px; background: #0054A6; color: white;" |'''Parameter ID'''
! rowspan="1" style="width: 350px; background: #0054A6; color: white;" |'''Parameter values'''
! rowspan="1" style="width: 350px; background: #0054A6; color: white;" |'''Default values'''
|-
| colspan="1" rowspan="4" style="text-align: center; style=" width: 150px; background: white; color: black;" |Periodic Image sending
| colspan="1" rowspan="4" style="text-align: center; style=" width: 150px; background: white; color: black;" |66006
| rowspan="1" style="text-align: center; vertical-align: center;" |0 - Disabled
| colspan="1" rowspan="4" style="text-align: center; style=" width: 150px; background: white; color: black;" |0
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |1 - Front Camera
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |2 - Rear Camera
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |3 - Both Cameras
|-
| colspan="1" rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |Sending interval
| colspan="1" rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |66007
| colspan="1" rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |[10-1800] (seconds)
| colspan="1" rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |600
|-

|-
| colspan="1" rowspan="10" style="text-align: center; style=" width: 150px; background: white; color: black;" |Image Sending Trigger
| colspan="1" rowspan="10" style="text-align: center; style=" width: 150px; background: white; color: black;" |66022
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |0 - None
| colspan="1" rowspan="9" style="text-align: center; style=" width: 150px; background: white; color: black;" |0
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |2 - DIN1
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |4 - DIN2
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |8 - Crash
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |16 - Towing
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |32 - Idling
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |64 - Geofence
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |128 - Unplug
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |256 - Green Driving
|-
| colspan="1" rowspan="5" style="text-align: center; style=" width: 150px; background: white; color: black;" |Video sending trigger
| colspan="1" rowspan="5" style="text-align: center; style=" width: 150px; background: white; color: black;" |66023
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |0 - None
| colspan="1" rowspan="4" style="text-align: center; style=" width: 150px; background: white; color: black;" |0
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |2 - DIN1
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |4 - DIN2
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |8 - Crash
|-
| colspan="1" rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |Video duration before trigger
| colspan="1" rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |66009
| colspan="1" rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |[1-10] (seconds)
| colspan="1" rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |5
|-
| colspan="1" rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |Video duration after trigger
| colspan="1" rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |66010
| colspan="1" rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |[1-10] (seconds)
| colspan="1" rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |5
|-
| colspan="1" rowspan="3" style="text-align: center; style=" width: 150px; background: white; color: black;" |Camera Scenario Mode
| colspan="1" rowspan="3" style="text-align: center; style=" width: 150px; background: white; color: black;" |66020
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |0 - On Ignition
| colspan="1" rowspan="2" style="text-align: center; style=" width: 150px; background: white; color: black;" |0
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |1 - Always
|-

| colspan="1" rowspan="5" style="text-align: center; style=" width: 150px; background: white; color: black;" |Video source for trigger DIN1
| colspan="1" rowspan="5" style="text-align: center; style=" width: 150px; background: white; color: black;" |66040
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |0 - None
| colspan="1" rowspan="4" style="text-align: center; style=" width: 150px; background: white; color: black;" |0
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |1 - Front
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |2 - Rear
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |3 - Front and Rear
|-

| colspan="1" rowspan="5" style="text-align: center; style=" width: 150px; background: white; color: black;" |Video source for trigger DIN2
| colspan="1" rowspan="5" style="text-align: center; style=" width: 150px; background: white; color: black;" |66041
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |0 - None
| colspan="1" rowspan="4" style="text-align: center; style=" width: 150px; background: white; color: black;" |0
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |1 - Front
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |2 - Rear
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |3 - Front and Rear
|-

| colspan="1" rowspan="5" style="text-align: center; style=" width: 150px; background: white; color: black;" |Video source for trigger Crash
| colspan="1" rowspan="5" style="text-align: center; style=" width: 150px; background: white; color: black;" |66042
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |0 - None
| colspan="1" rowspan="4" style="text-align: center; style=" width: 150px; background: white; color: black;" |0
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |1 - Front
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |2 - Rear
|-
| rowspan="1" style="text-align: center; vertical-align: center;" |3 - Front and Rear
|-
|}
<br>
===Video sending by trigger===
Video sending by trigger camera scenario monitors the selected trigger (video sending trigger parameter) and captures video from front, rear or both cameras before and after the event (video duration before trigger and video duration after trigger parameters). If the previously captured video has not finished downloading, then a new video capture is skipped until the old one has been sent. When this scenario is triggered, high priority eventual record is generated with the value corresponding to what triggered the scenario. See the table below.
{| class="wikitable"
|+
! rowspan="1" style="width: 400px; background: #0054A6; color: white;" |'''Parameter name'''
! rowspan="1" style="width: 400px; background: #0054A6; color: white;" |'''Parameter AVL ID'''
! rowspan="1" style="width: 400px; background: #0054A6; color: white;" |'''Parameter value'''
|-
| rowspan="9" style="text-align: center; style=" width: 150px; background: white; color: black;" |SOS trigger
| rowspan="9" style="text-align: center; style=" width: 150px; background: white; color: black;" |499
| rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |0 - Server request
|-
| rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |1 - DIN1
|-
| rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |2 - DIN2
|-
| rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |3 - Crash
|-
|}

===Image sending trigger===

'''Added''' Image sending trigger option (works the same way as Video sending trigger just triggers image sending). Both front and rear images will be sent.

For selecting multiple options using SMS/GPRS commands, add values of every option and set that value for this parameter.

For example, to set DIN1 (2), Crash (8), and Unplug (128) scenarios as triggers, add their values (2 + 4 + 128 = 138) and set the sum as the parameter value
{| class="wikitable"
|+
! rowspan="1" style="width: 400px; background: #0054A6; color: white;" |'''Parameter name'''
! rowspan="1" style="width: 400px; background: #0054A6; color: white;" |'''Parameter AVL ID'''
! rowspan="1" style="width: 400px; background: #0054A6; color: white;" |'''Parameter value'''
|-
| rowspan="9" style="text-align: center; style=" width: 150px; background: white; color: black;" |SOS trigger
| rowspan="9" style="text-align: center; style=" width: 150px; background: white; color: black;" |499
| rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |0 - Server request
|-
| rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |1 - DIN1
|-
| rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |2 - DIN2
|-
| rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |3 - Crash
|-
| rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |4 - Towing
|-
| rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |5 - Idling
|-
| rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |6 - Geofence
|-
| rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |7 - Unplug
|-
| rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |8 - Green Driving
|}

===Camera firmware version===

Additional SMS/GPRS command for cameras’ firmware checking. Since both cameras are separate, there are two versions returned.

{| class="wikitable"
|+
! rowspan="1" style="width: 400px; background: #0054A6; color: white;" |'''Command'''
! rowspan="1" style="width: 400px; background: #0054A6; color: white;" |'''Arguments'''
! rowspan="1" style="width: 400px; background: #0054A6; color: white;" |'''Explanation'''
|-
| rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |camgetver
| rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |None
| rowspan="1" style="text-align: left; style=" width: 150px; background: white; color: black;" |Used to check firmware versions.
Returns version in the format: '''V<major>.<minor>.<revision>.'''
For example, '''V1.9.3.'''

Because there are two cameras, two versions are returned.
The complete response would look like this:
'''Front camera V1.9.3. Rear camera V1.9.3.'''

If there are problems reading the version or if the camera is not responding/connected, the return would be this:
'''The front camera camgetver failed. The rear camera camgetver failed.'''

|}

===Camera request command===
A new camera request has been added, which allows the server to request files from a camera. The format is as provided below in the table:
{| class="wikitable"
|+
! rowspan="1" style="width: 400px; background: #0054A6; color: white;" |'''Command'''
! rowspan="1" style="width: 400px; background: #0054A6; color: white;" |'''Arguments'''
! rowspan="1" style="width: 400px; background: #0054A6; color: white;" |'''Explanation'''
|-
| rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |camreq:
| rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |<file_type>,<file_source>,<timestamp>,<duration>
,<domain>,<port>
| rowspan="1" style="text-align: left; style=" width: 150px; background: white; color: black;" |Captures appropriate file with the provided details. If the connection to server is opened, them files immediately become available for download. If not, then 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 - Photo
*<file_source>
**1 - Front camera
**2 - Rear camera
**3 - Both cameras
*<timestamp>
**Unix timestamps in decimal (not required for photo download)
*<duration>
**Video duration in seconds from provided timestamps (not required for photo download), (max 30 sec)

'''Structure examples:'''

'''camreq:<file type>,<file source>(if video, add ",<timestamp>,<duration>)'''

However, if there is a need to send to the specific server without configuring, you can add two extra parameters.
The complete structure:

'''camreq:<file type>,<file source>(if video, add ",<timestamp>,<duration>),<domain>,port'''

For example: camreq:0,1,1624960616,5,212.59.13.226,7160


{| class="wikitable"
|+
! rowspan="1" style="width: 600px; background: #0054A6; color: white;" |'''Conditions'''
! colspan="3" rowspan="1" style="width: 600px; background: #0054A6; color: white;" |'''Command response'''
|-
| rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |Request successful and server connection successful. Device is ready to send selected file
| rowspan="14" style="text-align: left; style=" width: 150px; background: white; color: black;" |Photo request from source <1-3>.

'''(If photo request)'''


Video request from source <1-3> for <1-255> seconds since YYYY-MM-DD HH:MM:SS.

'''(If video request)'''
| colspan="2" |Preparing to send file from timestamp <timestamp of the file>
|-
| rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |Request successful but the device was already connected to the server. Device is ready to send selected file
| colspan="2" |Already connected. Preparing to send file from timestamp <timestamp of the file>
|-
| rowspan="1" style="text-align: center; style=" width: 150px; background: white; color: black;" |Request received but the capture failed
| colspan="2" |Error: capture failed
|-
|Request received but the device cannot proceed with the capture and sending because ignition is off
| colspan="2" |Error: Cannot capture because ignition is off
|-
|Request received but the previously captured and prepared photo/video was not sent. New media is not captured. The device is ready to send the previous capture
| colspan="2" |Warning: Photo / Video already captured previously, trying to send it
|-
|Request received but the device was already connected to the server. New media is not captured. The device is ready to send previous capture
| colspan="2" |Already connected. Warning: Photo / Video already captured previously, trying to send it
|-
|Request received but the camera doesn’t acknowledge sent command. Nothing will be sent
| colspan="2" |Error: DualCam NAK
|-
|Request received but the camera is not connected or not working
| colspan="2" |Error: DualCam not present
|-
|Request received but the camera is not connected or not working
| colspan="2" |Error: requested file does not exist
|-
|Request received but the device cannot connect to the server
| colspan="2" |Error: connect to server
|-
|Request received but the modem is not ready for operation (network or modem issue)
| colspan="2" |Error: modem not ready to start send
|-
|Request received but the device cannot proceed with the capture and sending because the camera is being reconfigured
| colspan="2" |Cannot send, DualCam configuration is in progress
|-
|Request received but file capture time was exceeded.
| colspan="2" |Error: Media request timeout
|-
|Request received but capture completed incorrectly
| colspan="2" |Error: Media request problem
|-
|File type parameter incorrect in the request command
| rowspan="4" |Error: Invalid
|File Type
| rowspan="4" |argument in camera request cmd!
|-
|File Source parameter incorrect in the request command
|File Source
|-
|Timestamp parameter incorrect in the request command
|Timestamp
|-
|Duration parameter incorrect in the request command
|Duration
|-
|Cannot proceed with the request, ignition is off
| colspan="3" |Error: Ignition not detected!
|-
|Request command structure incorrect
| colspan="3" |Error: Invalid camera request command!
|-
|RS232 and DualCam mode is not enabled
| colspan="3" |Error: DualCam is not configured!
|-
|Front or rear camera not found
| colspan="3" |Error: Front / Rear Camera not present
|}
<br>