User Tools

Site Tools


en:jethub_d1  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:jethub_d1 [2022/01/22 11:06]
Dmitriy [1-Wire]
en:jethub_d1 [2022/02/08 21:00] (current)
Aleksandr Kazantsev [Communications]
Line 11: Line 11:
 ==== General characteristics ==== ==== General characteristics ====
  
-   * Quad-core Amlogic A113X (ARM Cortex-A53) processor with an operating frequency of 1.4GHz;+   * Quad-core Amlogic A113X (ARM Cortex-A53) processor with an operating frequency up to 1.4GHz;
    * RAM 512 MB or 1 GB DDR3;    * RAM 512 MB or 1 GB DDR3;
-   * Non-volatile memory eMMC flash 8 GB or 16 GB.+   * Non-volatile memory eMMC flash 8 GB16 GB or 32GB.
  
 Equipment options: Equipment options:
    * 512MB RAM / 8GB eMMC;    * 512MB RAM / 8GB eMMC;
-   * 1GB RAM / 16GB eMMC.+   * 1GB RAM / 16GB eMMC
 +   * 1GB RAM / 32GB eMMC;
  
 ==== Communications ==== ==== Communications ====
  
-   * Integrated dual-band (2.4GHz and 5GHz) AMPAK AP6255 WiFi/Bluetooth wireless module (Broadcom BCM43455). Supports IEEE 802.11a/b/g/n/ac WiFi standards as well as Bluetooth 4.2 or;+   * Integrated dual-band (2.4GHz and 5GHz) AMPAK AP6255 WiFi/Bluetooth wireless module (for controllers with 8GB and 16GB eMMC) or AMPAK AP6256 (for controllers with 32GB eMMC). Supports IEEE 802.11a/b/g/n/ac WiFi standards as well as Bluetooth 4.2 or Bluetooth 5.0 (for controllers with 32GB eMMC);
    * Ethernet IEEE 802.3 10/100 Mbps;    * Ethernet IEEE 802.3 10/100 Mbps;
    * TI CC2538 + CC2592 or TI CC2652P1 ZigBee wireless module with output power up to 20dBm and supports ZigBee 3.0 standard.    * TI CC2538 + CC2592 or TI CC2652P1 ZigBee wireless module with output power up to 20dBm and supports ZigBee 3.0 standard.
Line 107: Line 108:
 Appearance and elements of the controller: Appearance and elements of the controller:
  
-{{::d1_elements.png?400|}}+{{:d1_elements.png?400|}}
  
 On the top side of the controller are: On the top side of the controller are:
Line 262: Line 263:
  
 ===== 1-Wire ===== ===== 1-Wire =====
- 
-To implement the 1-Wire bus on the JetHome JetHub D1 controller, use the 1-Wire controller [https://datasheets.maximintegrated.com/en/ds/DS2483.pdf|DS2483S-100], connected to the I2C bus of the processor module (in Linux - i2c-0 bus). I2C controller address 1-Wire 0x18. 
- 
-Expansion connector pins used to connect to the 1-Wire controller (see A113 Processor Module Expansion Connector Description): 
- 
-^ Expansion connector pin ^ Purpose ^ Processor port ^ 
-| 17 | I2C_SCK | GPIOAO_10/I2C_SCK_AO | 
-| 18 | I2C_SDA | GPIOAO_11/I2C_SDA_AO | 
- 
  
 **Starting from revision 1.5 of the controller, a 3-pin terminal with a pitch of 3.5mm is used to connect the 1-Wire bus.** Purpose of the 1-Wire terminal pins: **Starting from revision 1.5 of the controller, a 3-pin terminal with a pitch of 3.5mm is used to connect the 1-Wire bus.** Purpose of the 1-Wire terminal pins:
Line 278: Line 270:
 | 2 | data | Data bus 1-Wire | | 2 | data | Data bus 1-Wire |
 | 3 | GND | Common wire | | 3 | GND | Common wire |
 +
 +For reliable operation of 1-Wire devices, it is recommended to connect them to the controller using a three-wire circuit (with power from +5V output).
  
 **In controller revisions up to 1.5, the 1-Wire bus is routed to an external RJ22 connector (4P4C).** RJ22 1-Wire connector pin assignment: **In controller revisions up to 1.5, the 1-Wire bus is routed to an external RJ22 connector (4P4C).** RJ22 1-Wire connector pin assignment:
  
-{{::1wire_connector.png?150|}}+{{:1wire_connector.png?150|}}
  
 ^ Pin number ^ Purpose ^ Description ^ ^ Pin number ^ Purpose ^ Description ^
Line 290: Line 284:
  
 When connecting passively powered 1-Wire devices, use pins 3 and 4 of this connector. When connecting passively powered 1-Wire devices, use pins 3 and 4 of this connector.
-To protect against electrostatic interference, a specialized TVS diode DS9503 is installed on the 1-Wire bus.+ 
 +**Starting with revision 1.8 of the JetHome JetHub D1 controller, GPIOA_14 of the Amlogic A113X processor is used to implement the 1-Wire bus.** 
 + 
 +**In revisions of the JetHome JetHub D1 controller up to 1.8, a 1-Wire chip [[https://datasheets.maximintegrated.com/en/ds/DS2483.pdf|DS2483S-100]] is used to implement the 1-Wire bus**, connected to the I2C bus of the processor module (in Linux - i2c-0 bus)I2C controller address 1-Wire 0x18. 
 + 
 +Expansion connector pins used to connect to the 1-Wire controller (see A113 Processor Module Expansion Connector Description): 
 + 
 +^ Expansion connector pin ^ Purpose ^ Processor port ^ 
 +| 17 | I2C_SCK | GPIOAO_10/I2C_SCK_AO | 
 +| 18 | I2C_SDA | GPIOAO_11/I2C_SDA_AO | 
  
 ===== Linux 1-Wire example ===== ===== Linux 1-Wire example =====
  
-A description of working with 1-wire devices in Linux can be found, for example, [[https://seahu.webnode.cz/_files/200000083-58f3659ef7/How%20to%20use%201-Wire%20bus-5.pdf|here] ].+A description of working with 1-wire devices in Linux can be found, for example, [[https://seahu.webnode.cz/_files/200000083-58f3659ef7/How%20to%20use%201-Wire%20bus-5.pdf|here]].
  
-To initialize the 1-Wire DS2482 driver on the controller, you need to execute the following commands (by default, in JetHome Armbian, the 1-Wire bus is configured at system boot and no additional configuration is required):+To initialize the 1-Wire DS2482 driver (on the controller of revision up to 1.8), you must execute the following commands (by default, in JetHome Armbian, the 1-Wire bus is configured at system boot and this operation is not required):
  
 <code> <code>
Line 303: Line 307:
 </code> </code>
  
-After that, the 1-wire devices connected to the bus will be available in the /sys/bus/w1/devices/ directory. For instance:+1-wire devices connected to the bus will be available in the /sys/bus/w1/devices/ directory. For instance:
  
 <code> <code>
Line 347: Line 351:
 =====Zigbee Wireless Module===== =====Zigbee Wireless Module=====
  
-The JetHome JetHub D1 controller has a Zigbee wireless communication module based on the TI CC2538 + CC2592 or TI CC2652P1 chip. See module description: [[::zb3cx_v1]] or [[::zb6c_v1]]+The JetHome JetHub D1 controller has a Zigbee wireless communication module based on the TI CC2538 + CC2592 or TI CC2652P1 chip. See module description: [[zb3cx_v1]] or [[zb6c_v1]]
  
 The module is connected to the UARTAO_B port of the processor (the device is displayed in the system as /dev/ttyAML2, in some cases as /dev/ttyAML1), hardware receive/transmit control (RTS and CTS lines) is not used. It is possible to control the hardware reset of the wireless module (RESET line) and control its boot mode (BOOT line) using the GPIO processor. The module is connected to the UARTAO_B port of the processor (the device is displayed in the system as /dev/ttyAML2, in some cases as /dev/ttyAML1), hardware receive/transmit control (RTS and CTS lines) is not used. It is possible to control the hardware reset of the wireless module (RESET line) and control its boot mode (BOOT line) using the GPIO processor.
Line 368: Line 372:
 To flash the module, a two-row 10-pin connector (2x5) with a pin pitch of 1.27mm (WM DBG) is installed on the board, designed for debugging and flashing the wireless module using the JTAG interface: To flash the module, a two-row 10-pin connector (2x5) with a pin pitch of 1.27mm (WM DBG) is installed on the board, designed for debugging and flashing the wireless module using the JTAG interface:
  
-{{::jtag_connector_pinout_mini.png?200|}}+{{:jtag_connector_pinout_mini.png?200|}}
  
 Connecting the pins of the "WM DBG" connector to the wireless module: Connecting the pins of the "WM DBG" connector to the wireless module:
Line 440: Line 444:
 === Module firmware === === Module firmware ===
  
-To flash the ZigBee CC2538 module, you can use the python utility [[https://github.com/JelmerT/cc2538-bsl|cc2538-bsl]]. See manual [[::cc2538_bsl_manual]]+To flash the ZigBee CC2538 module, you can use the python utility [[https://github.com/JelmerT/cc2538-bsl|cc2538-bsl]]. See manual [[cc2538_bsl_manual]]
  
-See [[::cc2538_firmware]] or [[::cc2652p_firmware]] for recommended firmware+See [[cc2538_firmware]] or [[cc2652p_firmware]] for recommended firmware
  
 ** Procedure for firmware: ** ** Procedure for firmware: **
Line 465: Line 469:
 </code> </code>
  
-===== Светодиоды =====+===== LEDs =====
  
-На лицевой панели контроллера установлено два светодиодаодин для индикации наличия напряжения питаниявторой пользовательский двухцветный светодиод.+There are two LEDs on the front panel of the controllerone to indicate the presence of supply voltagethe second is a custom two-color LED. 
 +==== Controlling LEDs from Linux ====
  
-==== Управление светодиодами из Linux ====+Linux GPIO numbers to which custom LEDs are connected:
  
-Номера GPIO в Linux, к которым подключены пользовательские светодиоды:+^ LED ^ Processor pin ^ GPIO number in Linux ^ Number in gpiolib ^ Active Low ^ 
 +| Red | GPIOA_0 | 452 | 26 | 1 (YES) | 
 +| Green | GPIOA_1 | 453 | 27 | 1 (YES) |
  
-^ Светодиод ^ Вывод процессора ^ Номер GPIO в Linux ^ Номер в gpiolib ^ Active Low ^ +The LEDs are turned on by a low logic level on the processor pin.
-| Красный   | GPIOA_0          | 452                | 26              | 1 (YES)    | +
-| Зеленый   | GPIOA_1          | 453                | 27              | 1 (YES)    |+
  
-Светодиоды включаются низким логическим уровнем на выводе процессора.+An example of initialization and control of the red LED.
  
-Пример инициализации и управления красным светодиодом. +GPIO initialization (by default, in JetHome ArmbianGPIO pins are configured at system boot and no additional configuration is required):
- +
-Инициализация GPIO (по-умолчанию в JetHome Armbian выводы GPIO конфигурируются при загрузке системы и дополнительной настройки не требуется):+
  
 <code> <code>
Line 490: Line 493:
 </code> </code>
  
-Включение и выключение светодиода (0 - выключить светодиод, 1 - включить светодиод):+Turning the LED on and off (0 - turn off the LED, 1 - turn on the LED):
 <code> <code>
 # echo 1 > gpio452/value # echo 1 > gpio452/value
Line 496: Line 499:
 </code> </code>
  
-Настройка и управление зеленым светодиодом производится аналогичным образом.+The green LED is configured and controlled in the same way. 
 +===== Custom Button =====
  
-===== Пользовательская кнопка =====+There is one user button on the front panel of the controller. 
 +==== Reading custom button state from Linux ====
  
-На лицевой панели контроллера установлена одна пользовательская кнопка.+GPIO number in Linux to which the button is connected:
  
-==== Чтение состояния пользовательской кнопки из Linux ====+^ Button ^ Processor pin ^ GPIO number in Linux ^ Number in gpiolib ^ 
 +| Custom | GPIOZ_10 | 436 | 10 |
  
-Номер GPIO в Linux, к которому подключена кнопка:+GPIO pin and button status:
  
-Кнопка             Вывод процессора ^ Номер GPIO в Linux ^ Номер в gpiolib +Button state Processor pin state 
-Пользовательская   GPIOZ_10         436                10              |+Not pressed 1 | 
 +Pressed |
  
-Состояние вывода GPIO и кнопки:+An example of initializing and reading the state of a custom button.
  
-^ Состояние кнопки ^ Состояние вывода процессора ^ +GPIO initialization (by default, in JetHome ArmbianGPIO pins are configured at system boot and no additional configuration is required):
-| Не нажата        | 1                           | +
-| Нажата           | 0                           | +
- +
-Пример инициализации и чтения состояния пользовательской кнопки. +
- +
-Инициализация GPIO (по-умолчанию в JetHome Armbian выводы GPIO конфигурируются при загрузке системы и дополнительной настройки не требуется):+
 <code> <code>
 # cd /sys/class/gpio # cd /sys/class/gpio
Line 525: Line 526:
 </code> </code>
  
-Чтение состояния кнопки:+Reading button state:
  
 <code> <code>
Line 532: Line 533:
 </code> </code>
  
-Вывод команды в случае, если вход сконфигурирован как "active_low" (по-умолчанию в системе JetHome Armbian): 0 - кнопка не нажата, 1 - кнопка нажата. +Command output in case the input is configured as "active_low" (by default in the JetHome Armbian system): 0 - the button is not pressed, 1 - the button is pressed
- +===== Real Time Clock (RTC) =====
- +
-===== Часы реального времени (RTC) =====+
  
-В качестве часов реального времени (RTC) используется микросхема [[https://www.nxp.com/docs/en/data-sheet/PCF8563.pdf|PCF8563]], подключенная к внутренней шине I2C процессорного модуля A113 (шина I2C_B процессора).+The [[https://www.nxp.com/docs/en/data-sheet/PCF8563.pdf|PCF8563]] chip connected to the internal I2C bus of the A113 processor module (I2C_B bus of the processor ).
  
-Для питания RTC на процессорном модуле установлен литиевый элемент питания с напряжением В типоразмера CR1220.+To power the RTC, a V lithium battery of CR1220 standard size is installed on the processor module.
  
-=== Работа с RTC из Linux ===+=== Working with RTC from Linux ===
  
-Чтение информации из RTC:+Reading information from RTC:
  
 <code> <code>
Line 550: Line 549:
 </code> </code>
  
-или+or
  
 <code> <code>
-# timedatectl +#timedatectl 
-               Local time: Вт 2020-09-01 15:35:48 MSK +               Local time: Tue 2020-09-01 15:35:48 MSK 
-           Universal time: Вт 2020-09-01 12:35:48 UTC +           Universal time: Tue 2020-09-01 12:35:48 UTC 
-                 RTC time: Вт 2020-09-01 12:35:49    +                 RTC time: Tue 2020-09-01 12:35:49
                 Time zone: Europe/Moscow (MSK, +0300)                 Time zone: Europe/Moscow (MSK, +0300)
-System clock synchronized: yes                        +System clock synchronized: yes 
-              NTP service: active                    +              NTP service: active
           RTC in local TZ: no           RTC in local TZ: no
 </code> </code>
  
-ВНИМАНИЕНа новом контроллере информация о времени и дате может быть еще не сохранена в микросхеме RTC. Поэтому при попытке чтения данных из нее будет выводится сообщение об ошибкеДля устранения данной ошибки необходимо записать информацию о дате и времени в микросхему RTC.+ATTENTIONOn a new controller, the time and date information may not yet be stored in the RTC chipTherefore, when trying to read data from it, an error message will be displayedTo fix this error, you need to write the date and time information to the RTC chip.
  
-Запись в RTC информации о текущих системных дате и времени выполняется командой:+Writing information about the current system date and time to the RTC is performed by the command:
  
 <code> <code>
Line 571: Line 570:
 </code> </code>
  
-Предварительно системное время должно быть правильно установленоКонтроллер настроен на синхронизацию времени через Интернет по протоколу NTP. Если у контроллера есть доступ в Интернет и установлен верный часовой поясто настраивать ничего не нужно.+The system time must be set correctly beforehandThe controller is configured to synchronize time over the Internet using the NTP protocolIf the controller has Internet access and the correct time zone is setthen nothing needs to be configured.
  
-Если контроллер не имеет доступ в Интернетто установить часовой пояс можно командой:+If the controller does not have Internet accessthen you can set the time zone with the command:
  
 <code> <code>
Line 579: Line 578:
 </code> </code>
  
-(список доступныых часовых поясов можно посмотреть командой "timedatectl list-timezones"), а дату и время командой:+(the list of available time zones can be viewed with the "timedatectl list-timezones" command), and the date and time with the command:
  
 <code> <code>
 # timedatectl set-time '2020-09-01 15:35:48' # timedatectl set-time '2020-09-01 15:35:48'
 </code> </code>
 +===== Processor Module Expansion Slot =====
  
-===== Разъем расширения процессорного модуля ===== +As an expansion connector, a pin connector with a pin pitch of 1.27mmthe number of pins is 40.
- +
-В качестве разъема расширения используестя штырьевой разъем с шагом контактов 1.27ммколичество контактов 40.+
    
-Сигналы, выведенные на разъём расширения:+Signals output to the expansion connector:
  
-  * Ethernet (x4 линии PHY); +  * Ethernet (x4 PHY lines); 
-  * Ethernet LED (х2 линии); +  * Ethernet LED (x2 lines); 
-  * USB (х2 линии); +  * USB (x2 lines); 
-  * SPI (х4 линии); +  * SPI (x4 lines); 
-  * I2C (х2 линии); +  * I2C (x2 lines); 
-  * x2 UART (х4 линий); +  * x2 UART (x4 lines); 
-  * x11 GPIO;+  *x11GPIO;
   * CPU RESET;   * CPU RESET;
-  * +.+  * +5V.
  
-=== Назначение выводов разъёма расширения ===+=== Expansion connector pin assignments ===
  
-Вывод разъема Назначение вывода разъема Вывод/периферия микропроцессора Функция контроллера +Connector pin Connector pin assignment Microprocessor pin/peripheral Controller function 
-| 1 | +5.0V |   +| 1 | +5.0V | | | 
-| 2 | +5.0V |   +| 2 | +5.0V | | | 
-| 3 | GND |   +| 3 | GND | | | 
-| 4 | GND |   +| 4 | GND | | | 
-| 5 | ETH_TXN |   +| 5 | ETH_TXN | | | 
-| 6 | ETH_TXP |   +| 6 | ETH_TXP | | | 
-| 7 | ETH_RXN |   +| 7 | ETH_RXN | | | 
-| 8 | ETH_RXP |   +| 8 | ETH_RXP | | | 
-| 9 | ETH_LED3 |   +| 9 | ETH_LED3 | | | 
-| 10 | ETH_LED0 |   +| 10 | ETH_LED0 | | | 
-| 11 | GND |   |+| 11 | GND | | |
 | 12 | SPI_MOSI | GPIOX_17/SPI_MOSI_B | | | 12 | SPI_MOSI | GPIOX_17/SPI_MOSI_B | |
 | 13 | SPI_CS | GPIOX_16/SPI_SS0_B | | | 13 | SPI_CS | GPIOX_16/SPI_SS0_B | |
 | 14 | SPI_MISO | GPIOX_18/SPI_MISO_B | | | 14 | SPI_MISO | GPIOX_18/SPI_MISO_B | |
 | 15 | SPI_CLK | GPIOX_19/SPI_CLK_B | | | 15 | SPI_CLK | GPIOX_19/SPI_CLK_B | |
-| 16 | GND |   |+| 16 | GND | | |
 | 17 | I2C_SCK | GPIOAO_10/I2C_SCK_AO | | | 17 | I2C_SCK | GPIOAO_10/I2C_SCK_AO | |
 | 18 | I2C_SDA | GPIOAO_11/I2C_SDA_AO | | | 18 | I2C_SDA | GPIOAO_11/I2C_SDA_AO | |
-| 19 | GND |   |+| 19 | GND | | |
 | 20 | UART1_RX | GPIOAO_1/UART_RX_AO_A | Linux_console RX | | 20 | UART1_RX | GPIOAO_1/UART_RX_AO_A | Linux_console RX |
 | 21 | UART1_TX | GPIOAO_0/UART_TX_AO_A | Linux_console TX | | 21 | UART1_TX | GPIOAO_0/UART_TX_AO_A | Linux_console TX |
 | 22 | UART2_TX | GPIOAO_4/UART_TX_AO_B | | | 22 | UART2_TX | GPIOAO_4/UART_TX_AO_B | |
 | 23 | UART2_RX | GPIOAO_5/UART_RX_AO_B | | | 23 | UART2_RX | GPIOAO_5/UART_RX_AO_B | |
-| 24 | GND |   |+| 24 | GND | | |
 | 25 | GPIO1 | GPIOA_14 | | | 25 | GPIO1 | GPIOA_14 | |
 | 26 | GPIO2 | GPIOA_16 | | | 26 | GPIO2 | GPIOA_16 | |
-| 27 | GND |   |+| 27 | GND | | |
 | 28 | GPIO3 | GPIOA_19 | Discrete input 2 | | 28 | GPIO3 | GPIOA_19 | Discrete input 2 |
 | 29 | GPIO4 | GPIOA_18 | Discrete input 3 | | 29 | GPIO4 | GPIOA_18 | Discrete input 3 |
Line 636: Line 634:
 | 31 | GPIO6 | GPIOA_15 | Zigbee module reset | | 31 | GPIO6 | GPIOA_15 | Zigbee module reset |
 | 32 | GPIO7 | GPIOA_17 | Discrete input 4 | | 32 | GPIO7 | GPIOA_17 | Discrete input 4 |
-| 33 | GPIO8 | GPIOA_3 | Relay 2 |+| 33 | GPIO8 | GPIOA_3 | relay 2 |
 | 34 | GPIO9 | GPIOA_4 | Relay 1 | | 34 | GPIO9 | GPIOA_4 | Relay 1 |
 | 35 | GPIO10 | GPIOA_10 | Zigbee module boot | | 35 | GPIO10 | GPIOA_10 | Zigbee module boot |
-| 36 | GPIO11  | GPIOA_2 | Relay 3 | +| 36 | GPIO11 | GPIOA_2 | Relay 3 | 
-| 37 | CPU_RESET |   +| 37 | CPU_RESET | | | 
-| 38 | GND |   |+| 38 | GND | | |
 | 39 | USB_DN | USB_DN | USB data - | | 39 | USB_DN | USB_DN | USB data - |
 | 40 | USB_DP | USB_DP | USB data + | | 40 | USB_DP | USB_DP | USB data + |
  
-{{::a113x_cpu_module_ext_connector_pinout.png?262|}}+{{:a113x_cpu_module_ext_connector_pinout.png?262|}} 
 +===== UART Console =====
  
 +The UART console is routed to a 3-pin male connector located on the controller's peripheral board and labeled "CONSOLE". The pin assignment of the connector is also printed on the controller board.
  
-=====  UART-консоль =====+The controller cover must be opened to access the connector. To connect to a computer, you can use any USB-UART interface converter:
  
-UART-консоль выведена на 3-х контактный штырьевой разъем, расположенный на периферийной плате контроллера и отмеченный как "CONSOLE". Назначение контактов разъема также нанесено на плату контроллера.+{{:usb_to_uart_converter.jpg?195|}}
  
-Для доступа к разъему необходимо открыть крышку контроллера. Для подключения к компьютеру можно использовать любой преобразователь интерфейсов USB-UART:+Port configuration: 
 +  * Speed ​​115200 bps; 
 +  * Data length 8 bits; 
 +  * Stop bit 1; 
 +  * Parity is not used; 
 +  * Hardware flow control is not used. 
 +===== Controller Firmware =====
  
-{{::usb_to_uart_converter.jpg?195|}}+=== Flashing from Windows using Amlogic Burning Tool ===
  
-Конфигурация порта: +To flash the software image, you can use the Amlogic Burning Tool program (see [[burning_tool_manual|Instructions for using the Burning Tool]]).
-  * Скорость 115200 бит/сек; +
-  * Длина данных 8 бит; +
-  * Стоп-бит 1; +
-  * Контроль четности не используется; +
-  * Аппаратное управление потоком не используется.+
  
-===== Прошивка контроллера =====+The latest JetHome Armbian firmware can be downloaded at http://update.jethome.ru/armbian/
  
-=== Прошивка из Windows с помощью Amlogic Burning Tool ===+**<color #ed1c24>JetHub D1 controller requires Armbian firmware variant with «j100» suffix</color>**
  
-Для прошивки образа ПО можно использовать программу Amlogic Burning Tool (см. [[burning_tool_manual|Инструкцию по использованию Burning Tool]]).+The controller firmware is performed in the following order: 
 +  * Install and prepare the program USB Burning Tool
 +  * In the Burning Tool, open the menu "File" - "Import image" and select the firmware file (for D1 controllers, the firmware file must have the j100 suffix)
 +  * Power off the controller; 
 +  * Press and hold down the "BOOT" button on the front panel of the controller (the button is accessed through a hole on the front panel of the controller); 
 +  * While holding down the "BOOT" button, connect the controller with a USB cable to a computer running the USB Burning Tool; 
 +  * In the window of the running Burning Tool program, if the bootloader built into the controller is successfully launched and the controller is connected to the computer, the inscription "Connect" will be displayed; 
 +  * Release the "BOOT" button; 
 +  * Press the "Start" button in the Burning Tool; 
 +  * The firmware procedure will begin, which may take a long time; 
 +  * Upon completion of the firmware procedure, press the "Stop" button in the program; 
 +  * Disconnect the USB cable from the controller.
  
-Последнюю прошивку JetHome Armbian можно скачать по адресу http://update.jethome.ru/armbian/ +=== Firmware from Ubuntu Linux ===
  
-**<color #ed1c24>Для контроллера JetHub D1 необходим вариант прошивки Armbian с суффиксом "j100"</color>**+For flashing from Linux, you can use the burn-tool utility from the repository [[https://github.com/khadas/utils]]
  
-Прошивка контроллера выполняется в следующем порядке: +Documentation for using the utility [[https://docs.khadas.com/vim1/UpgradeViaUSBCable.html#Upgrade-On-Ubuntu]]
-  * Установите и подготовьте к работе программу USB Burning Tool; +
-  * В программе Burning Tool откройте меню "File" - "Import image" и выберите файл прошивки (для контроллеров D1 файл прошивки обязательно с суффиксом j100); +
-  * Отключите питание контроллера; +
-  * Нажмите и удерживайте нажатой кнопку "BOOT" на лицевой панели контроллера (доступ к кнопке осуществляется через отверстие на лицевой панели контроллера); +
-  * Удерживая кнопку "BOOT" нажатой, подключите контроллер с помощью кабеля USB к компьютеру с запущенной программой USB Burning Tool; +
-  * В окне запущенной программы Burning Tool при успешном запуске встроенного в контроллер загрузчика и подключении контроллера к компьютеру будет выведена надпись "Connect"; +
-  * Отпустите кнопку "BOOT"; +
-  * Нажмите кнопку "Start" в программе Burning Tool; +
-  * Начнется процедура прошивки, которая может занять продолжительное время; +
-  * По завершению процедуры прошивки нажмите кнопку "Stop" в программе; +
-  * Отключите кабель USB от контроллера.+
  
-=== Прошивка из Ubuntu Linux === +To install the utility, run the following commands:
- +
-Для прошивки из Linux можно воспользоваться утилитой burn-tool из репозитария [[https://github.com/khadas/utils]] +
- +
-Документация по использованию утилиты [[https://docs.khadas.com/vim1/UpgradeViaUSBCable.html#Upgrade-On-Ubuntu]] +
- +
-Для установки утилиты выполните команды:+
 <code> <code>
 $ git clone https://github.com/khadas/utils khadas-utils $ git clone https://github.com/khadas/utils khadas-utils
Line 699: Line 694:
 </code> </code>
  
-Для прошивки контроллера переведите его в режим загрузчика способомописанным вышеДалее выполните команду:+To flash the controllerput it into bootloader mode using the method described aboveNext, run the command:
 <code> <code>
-burn-tool -i <FIRMWARE_IMAGE_FILE>+burn tool -i <FIRMWARE_IMAGE_FILE>
 </code> </code>
  
-где <FIRMWARE_IMAGE_FILE> - файл прошивки+where <FIRMWARE_IMAGE_FILE> is the firmware file
  
-Примерный вывод программы:+Sample program output:
 <code> <code>
 $ burn-tool -i ~/firmware/D1/JetHome_1.0.14_Armbian_20.08_Arm-64_focal_current_5.7.16_j100.img $ burn-tool -i ~/firmware/D1/JetHome_1.0.14_Armbian_20.08_Arm-64_focal_current_5.7.16_j100.img
Line 713: Line 708:
 Unpacking image [OK] Unpacking image [OK]
 Initializing ddr ........[OK] Initializing ddr ........[OK]
-Running u-boot ........[OK]+Running u-boot........[OK]
 Create partitions [OK] Create partitions [OK]
 Writing device tree [OK] Writing device tree [OK]
 Writing bootloader [OK] Writing bootloader [OK]
-Wiping  data partition [OK] +Wiping data partition [OK] 
-Wiping  cache partition [OK] +Wiping cache partition [OK] 
-Writing boot partition [OK]+Write boot partition [OK]
 Writing rootfs partition [OK] Writing rootfs partition [OK]
 Resetting board [OK] Resetting board [OK]
Line 726: Line 721:
 </code> </code>
  
-=== Возможные проблемы при прошивке контроллера === +=== Possible problems with controller firmware ===
- +
-Программа USB Burning Tool не определяет подключенный контроллер. +
-  * Убедитесь, что в момент подключения кабеля USB кнопка "BOOT" нажата. Не рекомендуется использовать для этого острые предметы (иголки и т.д.), используйте предметы с тупым концом (скрепки и т.д.); +
-  * Подключайте кабель USB быстро и до упора. Разъем USB устроен так, что при подключении кабеля сначала подключаются контакты питания, затем контакты для передачи данных. При этом может возникать ситуация когда при подаче питания процесс загрузки уже начался, а линии передачи данных USB еще не были подключены; +
-  * Используйте кабель USB 2.0 вместо кабеля USB 3.0. +
- +
- +
-===== Первый запуск JetHome Armbian ===== +
- +
-Настройка контроллера при его первом запуске или после его перепрошивки может осуществляться следующими способами: +
-  * По сети Ethernet; +
-  * Через UART-консоль.+
  
-Для настройки нонтроллера по сети Ethernet подключите контроллер к локальной сети с настроенным и работающим сервером DHCPОпределите новый IP-адрес контроллера (MAC-адрес контроллера указан на нижней части корпуса контроллера). Напримерв маршрутизаторах Mikrotik это можно сделать в меню IP -> DHCP Server -> LeasesДалее подключитесь к контроллеру с помощью любого ssh-клиентанапримерPutty под ОС Windows.+The USB Burning Tool does not detect the connected controller. 
 +  * Make sure the "BOOT" button is pressed when connecting the USB cable. It is not recommended to use sharp objects for this (needles, etc.), use objects with a blunt end (paper clips, etc.); 
 +  * Connect the USB cable quickly and fully. The USB connector is designed so that when you connect the cablethe power contacts are connected first, then the data contactsIn this casea situation may arise whenwhen the power is turned on, the boot process has already begun, and the USB data lines have not yet been connected; 
 +  * Use a USB 2.0 cable instead of a USB 3.0 cable. 
 +===== First launch of JetHome Armbian =====
  
-Для подключения через UART-консоль подключите контроллер к компьютеру с помощью любого преобразователя USB-UART (см. п. "UART консоль").+Setting up the controller at its first start or after flashing it can be done in the following ways: 
 +  * Via Ethernet network; 
 +  * Via UART console.
  
-По-умолчанию пароль для пользователя "root" "1234".+To configure the controller over Ethernet, connect the controller to a local area network with a configured and running DHCP server. Determine the new IP address of the controller (the MAC address of the controller is located on the bottom of the controller case). For example, in Mikrotik routers, this can be done in the menu IP -> DHCP Server -> Leases. Next, connect to the controller using any ssh client, for example, Putty under Windows OS.
  
-При первом запуске будет предложено: +To connect via the UART consoleconnect the controller to the computer using any USB-UART converter (see p. "UART console").
-  * Задать новый пароль для пользователя root; +
-  * Если контроллер подключен к сети с доступом в сеть Internetто будет автоматически определен часовой пояс, язык для системы и раскладка клавиатуры; +
-  * Далее будет предложено зарегистрировать в системе нового пользователя и задать для него пароль (рекомендуется это сделать). Ввод данных о пользователе можно пропустить, нажав клавишу Enter на запрос о полном имени пользователя.+
  
 +The default password for the "root" user is "1234".
  
-===== Полезные ссылки =====+On first launch, you will be prompted for: 
 +  * Set a new password for the root user; 
 +  * If the controller is connected to a network with access to the Internet, the time zone, language for the system and keyboard layout will be automatically determined; 
 +  * Next, you will be prompted to register a new user in the system and set a password for him (it is recommended to do this). User data entry can be skipped by pressing the Enter key when prompted for the user's full name. 
 +===== Useful Links =====
  
     * [[hassio-addon-jethub-mqtt-io]]     * [[hassio-addon-jethub-mqtt-io]]
     * [[mqtt-io]]     * [[mqtt-io]]
en/jethub_d1.1642838809.txt.gz · Last modified: 2022/01/22 11:06 by Dmitriy