translator, wb_editors
4285
правок
Matveevrj (обсуждение | вклад) (Новая страница: «The CAN interface will rise by itself when: * system boot - service <code>wb-hwconf-manager</code> is responsible for this, * change the RS-485/2 port mode to «CAN».») |
Matveevrj (обсуждение | вклад) (Новая страница: «==== Using standard linux tools (automatically) ==== The '''Network Interfaces''' section of the web interface is a wrapper around the <code>/etc/network/interfaces</code> file, so CAN configuration can be done using the debian network management service. For this you need: # Add to <code>/etc/network/interfaces</code> an entry like this: #:<syntaxhighlight lang="bash"> allow-hotplug can0 iface can0 can static bitrate 125000 </syntaxhighlight> # Switch RS-48...») |
||
Строка 16: | Строка 16: | ||
* change the RS-485/2 port mode to «CAN». | * change the RS-485/2 port mode to «CAN». | ||
==== | ==== Using standard linux tools (automatically) ==== | ||
The '''Network Interfaces''' section of the web interface is a wrapper around the <code>/etc/network/interfaces</code> file, so CAN configuration can be done using the debian network management service. For this you need: | |||
# | # Add to <code>/etc/network/interfaces</code> an entry like this: | ||
#:<syntaxhighlight lang="bash"> | #:<syntaxhighlight lang="bash"> | ||
allow-hotplug can0 | allow-hotplug can0 | ||
Строка 24: | Строка 24: | ||
bitrate 125000 | bitrate 125000 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
# | # Switch RS-485-2 port to CAN mode | ||
We will get a result similar to setting through the web-interface. | |||
==== Стандартными средствами linux (вручную) ==== | ==== Стандартными средствами linux (вручную) ==== |