Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:sw:04-unipi-firmware [2020/05/22 12:02] tomhora [Firmware] |
en:sw:04-unipi-firmware [2021/08/06 06:58] (current) avsetula |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Unipi Software ====== | ====== Unipi Software ====== | ||
- | This section includes topics related to Unipi software (repository, FW tools, etc.) | + | This article includes topics related to Unipi software (repository, FW tools, etc.) |
===== APT Repository ==== | ===== APT Repository ==== | ||
Line 8: | Line 8: | ||
<WRAP center round info 90%> | <WRAP center round info 90%> | ||
- | Currently, the packages are supported only for all controllers except Unipi 1.1 and Unipi 1.1. lite - those should be [[en:sw:02-sdks:01-evok|installed as described here.]] | + | Currently, the packages are supported only for all units except Unipi 1.1 and Unipi 1.1. lite - those should be [[en:sw:02-apis:01-evok|installed as described here.]] |
</WRAP> | </WRAP> | ||
Line 23: | Line 23: | ||
===== Application interfaces ===== | ===== Application interfaces ===== | ||
- | Available APIs are described in the [[en:sw:02-sdks:01-evok|SDK section]]. | + | Available APIs are described in the [[en:sw:02-apis:01-evok|SDK section]]. |
===== Firmware ===== | ===== Firmware ===== | ||
Line 32: | Line 32: | ||
The internal firmware is NOT automatically flashed to the latest version installed using apt. This has to be done manually. | The internal firmware is NOT automatically flashed to the latest version installed using apt. This has to be done manually. | ||
- | === Upgrading firmware in Neuron/Axon family PLC controllers === | + | === Upgrading firmware in Patron/Neuron/Axon line units === |
The firmware can be manually upgraded or checked using the fwspi tool which resides in /opt/unipi-bin/ (newly in /opt/unipi/tools/). | The firmware can be manually upgraded or checked using the fwspi tool which resides in /opt/unipi-bin/ (newly in /opt/unipi/tools/). | ||
- | To check the firmware on the first group of IOs: | + | To check the firmware on the first section of IOs: |
<code> | <code> | ||
/opt/unipi/tools/fwspi -i 0 | /opt/unipi/tools/fwspi -i 0 | ||
Line 41: | Line 41: | ||
<WRAP center round info 60%> | <WRAP center round info 60%> | ||
- | To check the FW of other IO groups run <code>/opt/unipi/tools/fwspi -i 1</code> alternatively <code>/opt/unipi/tools/fwspi -i 2</code>. | + | To check the FW of other IO sections run <code>/opt/unipi/tools/fwspi -i 1</code> alternatively <code>/opt/unipi/tools/fwspi -i 2</code>. |
</WRAP> | </WRAP> | ||
<WRAP center round info 60%> | <WRAP center round info 60%> | ||
- | Firmware upgrade can be done automatically on all groups available using command <code>/opt/unipi/tools/fwspi -v --auto</code> | + | Firmware upgrade can be done automatically on all sections available using command <code>/opt/unipi/tools/fwspi -v --auto</code> |
</WRAP> | </WRAP> | ||
Line 79: | Line 79: | ||
<WRAP center round info 60%> | <WRAP center round info 60%> | ||
- | The configuration of the group can be erased to the default state. This is done during the firmware upgrade by calling the fwspi utility also with -R parameter. E.g. /opt/unipi/tools/fwspi -i 0 -PR | + | The configuration of the section can be erased to the default state. This is done during the firmware upgrade by calling the fwspi utility also with -R parameter. E.g. /opt/unipi/tools/fwspi -i 0 -PR |
</WRAP> | </WRAP> | ||
Line 86: | Line 86: | ||
<WRAP center round alert 80%> | <WRAP center round alert 80%> | ||
- | Make sure that there is no other application using/communicating on the used port and do not disconnect power to the Controller or Extension. Any of this will lead to bricking the extension. | + | Make sure that there is no other application using/communicating on the used port and do not disconnect power to the unit or Extension. Any of this will lead to bricking the extension. |
</WRAP> | </WRAP> | ||
<WRAP center round info 80%> | <WRAP center round info 80%> | ||
- | The -p (path) parameter must be set according to the used serial for the extension - see the [[en:hw:01-axon:portmap|]] to find proper serial port within your unit. For example, if extension is connected to //RS485-1/RS485-1.1//: <code>/opt/unipi/tools/fwserial -p /dev/ttyNS0 -P </code>. | + | The -p (path) parameter must be set according to the used serial for the extension - see the [[en:hw:007-patron:portmap|]], [[en:hw:02-neuron:portmap|]] or [[en:hw:01-axon:portmap|]] to find proper serial port within your unit. For example, if extension is connected to //RS485-1/RS485-1.1//: <code>/opt/unipi/tools/fwserial -p /dev/ttyNS0 -P </code>. |
Note that the fwserial assumes that extension‘s Modbus address, baud rate and parity are in the factory-default state, ie **19200 baud 8N1 with address 15**. | Note that the fwserial assumes that extension‘s Modbus address, baud rate and parity are in the factory-default state, ie **19200 baud 8N1 with address 15**. | ||
</WRAP> | </WRAP> |