User manual

B onrisctool.py
B.2. Configure OTG/CFast
Both VS-860 and Alekto2 use USB OTG port in two modes: OTG and CFast. The mode can be
switched both via jumper and GPIO pin (software). The software settings “overwrite” the jumper.
Executing onrisctool.py will show the status of hardware/software settings. Following output
says, that the USB port is in OTG mode set over jumper:
OTG automatic mode: OTG
You can switch to CFast via executing:
onrisctool.py -o cfast
If you then execute onrisctool.py without parameter you’ll see following output, indicating, that
CFast mode is set via software:
OTG force mode: CFast
B.3. Configure RTC
onrisctool.py lets you read the RTC directly and also write current system time to it.
Reading RTC:
onrisctool.py --readrtc
RTC read: 2013-06-03 12:44:47
Writing system time to RTC:
onrisctool.py --systohc
B.4. Configuring Digital I/O
As described in Section 6.1.2 Alekto2 provides 8 digital I/O pins. With onrisctool.py you can
set direction and data.
Set direction “output” for the first group:
onrisctool.py -c out -g 0
Set pin 0 to 1:
onrisctool.py -m 0x01 -d 0x01
Set pin 0 to 0 and pin 1 to 1:
onrisctool.py -m 0x03 -d 0x02
May 2014 OnRISC User Manual 74