open_source:ccgx:commandline
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
open_source:ccgx:commandline [2021-03-02 09:30] – [4.4 vreg: changing settings from the command line] mvader | open_source:ccgx:commandline [2021-03-03 11:46] – [4.4 vreg: changing settings from the command line] mvader | ||
---|---|---|---|
Line 344: | Line 344: | ||
</ | </ | ||
- | Example of switching a solar charger | + | Switching all devices on VE.Can |
< | < | ||
- | OFF: (vreg 0x0200, value 4) | + | vreg -c socketcan:can0 -s 0x0200 |
- | ccgx:~# vreg -n 0x45 -s 0x0200 | + | </ |
- | # NAD 0x45, reg=0x200 | + | |
- | 0x04 0x00 0x00 0x00 | + | |
- | ON: (vreg 0x0200, value 1) | + | switching a specific device off: |
- | root@ccgx: | + | < |
- | # NAD 0x45, reg=0x200 | + | vreg -c socketcan: |
- | 0x01 0x00 0x00 0x00 | + | |
- | root@ccgx: | + | |
</ | </ | ||
+ | Note that in above example the VREG data field (un32) is padded with zeros; current firmware requires that, future fw won't any more. | ||
+ | |||
+ | Switch a specific device on: | ||
+ | < | ||
+ | vreg -c socketcan: | ||
+ | </ | ||
+ | |||
+ | Seeing which devices are off and which are on goes like this. Press ctrl-C to stop the command. | ||
+ | < | ||
+ | vreg -c socketcan: | ||
+ | </ | ||
+ | |||
===== 5. VE.Direct products ===== | ===== 5. VE.Direct products ===== | ||
open_source/ccgx/commandline.txt · Last modified: 2023-05-07 10:00 by mvader