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 11:31] tomhora |
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 66: | Line 66: | ||
* 2.a - Using SCP | * 2.a - Using SCP | ||
* Copy if from your PC to the unit using SCP (a WinSCP, Filezilla or other software can be used) to the /tmp/ folder | * Copy if from your PC to the unit using SCP (a WinSCP, Filezilla or other software can be used) to the /tmp/ folder | ||
- | * Install the package using dpkg, for example <code>dpkg -i /tmp/unipi-firmware_5.32_all.deb</code> | + | * Install the package using dpkg, for example <code>dpkg -i /tmp/unipi-firmware_5.50_all.deb</code> |
* 2.b - Via USB flash | * 2.b - Via USB flash | ||
* Copy the downloaded file from your PC to the root of the FAT32 formated USB flash and insert the USB flash to any USB port of the unit. | * Copy the downloaded file from your PC to the root of the FAT32 formated USB flash and insert the USB flash to any USB port of the unit. | ||
Line 73: | Line 73: | ||
* Create a mount folder for the disk <code>mkdir /media/usbflash</code> | * Create a mount folder for the disk <code>mkdir /media/usbflash</code> | ||
* Mount the disk to the newly created folder <code>mount /dev/sda /media/usbflash</code> | * Mount the disk to the newly created folder <code>mount /dev/sda /media/usbflash</code> | ||
- | * Install the package using dpkg, for example <code>dpkg -i /media/usbflash/unipi-firmware_5.32_all.deb</code> | + | * Install the package using dpkg, for example <code>dpkg -i /media/usbflash/unipi-firmware_5.50_all.deb</code> |
* 3. Check the current FW version installed in the HW <code>/opt/unipi/tools/fwspi -i 0</code> | * 3. Check the current FW version installed in the HW <code>/opt/unipi/tools/fwspi -i 0</code> | ||
* 4. Update to the latest obtained FW version <code>/opt/unipi/tools/fwspi -i 0 -P</code> | * 4. Update to the latest obtained FW version <code>/opt/unipi/tools/fwspi -i 0 -P</code> | ||
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> | ||
=== Upgrading firmware in RS485 Modbus extensions === | === Upgrading firmware in RS485 Modbus extensions === | ||
- | xS/xG series extensions can be upgraded similarly. Instead of **fwspi** utility, just use the alternative named **fwserial** which is also included in the //unipi-firmware-tools// package (installed automatically with //unipi-firmware//). The command-line arguments are very similar as for the fwspi, except RS485 port specification. | + | xS/xG series extensions can be upgraded similarly. Instead of **fwspi** utility, just use the alternative named **fwserial** which is also included in the //unipi-firmware-tools// package (installed automatically with //unipi-firmware//). The command-line arguments are very similar as for the fwspi, except serial port specification. |
- | <WRAP center round info 60%> | + | <WRAP center round alert 80%> |
- | The -p (path) parameter must be set according to the RS485 used for the extension. See section [[en:hw:01-axon:portmap|]] to resolve the appropriate path for each RS485 available 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>. | + | 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 center round info 80%> | ||
+ | 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> |