Перейти к содержанию

Навигация

CAN/en: различия между версиями

Новая страница: «==== 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...»
(Новая страница: «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».»)
(Новая страница: «==== 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».


==== Стандартными средствами linux (автоматически) ====
==== Using standard linux tools (automatically) ====
Раздел '''Network Interfaces''' веб-интерфейса — это обёртка вокруг файла <code>/etc/network/interfaces</code>, поэтому настройку CAN можно произвести с помощью службы управления сетями ОС debian. Для этого нужно:
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:
# Добавить в <code>/etc/network/interfaces</code> запись вида:
# 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>
# Переключить порт RS-485-2 в режим CAN
# Switch RS-485-2 port to CAN mode
Получим результат, аналогичный настройке через веб-интерфейс.
We will get a result similar to setting through the web-interface.


==== Стандартными средствами linux (вручную) ====
==== Стандартными средствами linux (вручную) ====
translator, wb_editors
4285

правок