USB Config Files

From Idrive
Jump to navigation Jump to search

USB Configuration Files

ASCII files that can be used to change the X2 configuration using a USB Stick.

To have the camera read the USB stick the idrive.cert must be present


adresa.cfg - Sets Base Station Address

192.168.0.10 is default


ip.cfg - Sets IP Address & Netmask of the camera

192.168.0.11 - 192.168.254.254 Standard IP Address Range

255.255.0.0 Standard Network Mask

Note: If the device is run through factory tool the setting will reset to what is set in AC


limit.cfg

Not sure


mac.cfg - changes the MAC Address for the Wifi

00127B4B5F4E


port.cfg - Sets the Port for transfers

9090


reg1.cfg

Not Sure


router.cfg - Sets SSID for Wifi connection (X1 Only)

bwifi is the default

Note: For X2 see wifi-settings.cfg


shock.cfg - Setting of G-force in old X1

#//eveniment pe acceleratie
#WriteRegistru(CTRL_REG1,0x87);
0x20  0x85  0x00
#WriteRegistru(CTRL_REG2,0x88);
0x21  0x08  0x00
#WriteRegistru(CTRL_REG3,0x22);
0x22  0x22  0x00
#WriteRegistru(FF_WU_THS_L, 0x99);
0x34  0x99  0x00
#WriteRegistru(FF_WU_THS_H, 0x29);
0x35  0x29  0x00
#WriteRegistru(FF_WU_DURATION, 0x00);
0x36  0x00  0x00
#ReadRegistru(HP_FILTER_RESET); //dummy read
0x23  0x00  0x01
#WriteRegistru(FF_WU_CFG, 0x4A);
0x30  0x62	0x00
#ReadRegistru(FF_WU_ACK);
0x32  0x00  0x01


size.cfg for X1P

size.cfg File Format

File Contents by line as shown in example below

Event Types, Length, Gforces (lines 1 - 7)

8,0.5,0.3 sock[\n] - Shock event size/2 , G-force Value for event mode, G-force Value for sleep mode
8 door[\n] - Door event size/2
10 panic[\n] - Panic event size/2
10 wpanic[\n] - Wire panic event size/2
6 alarm[\n] - Alarm event size/2
6 shutdown[\n] - Power off event size/2
6 start[\n] - NOT USED


Event Led ON/OFF (line 8)

1111111111[\n] - Event Led ON/OFF (1=ON, 0=OFF)
from left to right, each character
[0/1] shock event;
[0/1] door event;
[0/1] panic event;
[0/1] wpanic event;
[0/1] alarm event;
[0/1] Power off event;
[0/1] NOT USED;
[0/1] Scheduled event;
[0/1] speed event;
[0/1] super speed event;

Periodic events (line 9)

0,4,0,2,3[\n] - Scheduled events
comma separated values, from left to right
[0/1] disable/enable event;
[1-120] event size / 2;
[0/1] 0 = Periodic, 1 = Random ;
[10-1440] interval min
[10-1440] interval max

SPEED EVENTS (Line 10)

0,8,27,5[\n] - SPEED EVENTS
comma separated values, from left to right
[0/1] disable/enable event;
[1-120] event size / 2;
[1-120] speed limit(KNOTS);
[1-120] time limit(seconds);

SUPER SPEED EVENTS (Line 11)

0,9,38,5[\n] - SUPER SPEED EVENTS
comma separated values, from left to right
[0/1] disable/enable event;
[1-120] event size / 2;
[1-120] speed limit(KNOTS);
[1-120] time limit(seconds);

SLEEP MODE TIME (Line 12)

1800[\n] - SLEEP MODE TIME(see details)

[0-86400] time period(seconds)

Resolution Mode , Sound ON/OFF , Log ON/OFF (Line 13)

3,1,0[\n]
Image capture modes(resolution, frames per second) Values 1 - 9
1 1600x1200, 8 fps
2 1200x960, 8 fps
3 1024x768, 8 fps (DEFALUT)
6 800x600, 8 fps
9 640x480, 8 fps
Sound ON/OFF (1=ON, 0=OFF)
Log ON/OFF (1=ON, 0=OFF)

(accelerometer Forward on/off, acc Lateral on/off, acc Vertical on/off) (Line 14)

1,1,0
Forward ON/OFF (1=ON, 0=OFF)
Lateral ON/OFF (1=ON, 0=OFF)
Vertical ON/OFF (1=ON, 0=OFF)



wifi-settings.cfg

Wifi Configuration settings

[{
"ap_scan":false,
"priority": 0,
"ssid":"\"bwifi\"",
"key_mgmt":"NONE",
"scan_ssid":"1"
},
{
"priority": 1,
"ssid":"\"bwifi5g\"",
"scan_ssid":"1",
"key_mgmt":"WPA-PSK",
"proto":"WPA RSN",
"pairwise":"CCMP TKIP",
"group":"CCMP TKIP",
"psk":"895a426a1cef3bd98bbc6bb6a7d057b046a3edf2c375ebfc4f41f2230fac3875"
}]


wpa.cfg

Updates the wifi configuration


ctrl_interface=DIR=/var/run/wpa_supplicant
update_config=1