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

Материал из Wiren Board
(Новая страница: «==== 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...»)
 
(нет различий)

Текущая версия на 22:58, 3 октября 2022

Определение сообщения (CAN)
==== Стандартными средствами linux (автоматически) ====
Раздел '''Network Interfaces''' веб-интерфейса — это обёртка вокруг файла <code>/etc/network/interfaces</code>, поэтому настройку CAN можно произвести с помощью службы управления сетями ОС debian. Для этого нужно:
# Добавить в <code>/etc/network/interfaces</code> запись вида:
#:<syntaxhighlight lang="bash">
allow-hotplug can0
iface can0 can static
bitrate 125000
</syntaxhighlight>
# Переключить порт RS-485-2 в режим CAN
Получим результат, аналогичный настройке через веб-интерфейс.

Using standard linux tools (automatically)

The Network Interfaces section of the web interface is a wrapper around the /etc/network/interfaces file, so CAN configuration can be done using the debian network management service. For this you need:

  1. Add to /etc/network/interfaces an entry like this:
    allow-hotplug can0
    iface can0 can static
    bitrate 125000
    
  2. Switch RS-485-2 port to CAN mode

We will get a result similar to setting through the web-interface.