• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    After upgrading the M503, circuit 1 completely disappeared.

    Official EVOK API
    4
    11
    1204
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Vesa Kauppinen
      Vesa Kauppinen last edited by

      Hi,

      I did the following for the Neuron M503 with Raspbian Stretch Lite and old EVOK:

      sudo su 
      systemctl stop neurontcp && systemctl stop evok
      
      bash /opt/evok/uninstall-evok.sh
      rm -rf /var/www/evok
      rm /etc/systemd/system/evok.service
      
      sudo su 
      echo "deb https://repo.unipi.technology/debian stretch main" >> /etc/apt/sources.list.d/unipi.list
      wget https://repo.unipi.technology/debian/unipi_pub.gpg -O - | apt-key add
      apt update
      apt upgrade -y
      reboot
      
      sudo su
      apt install -y neuron-kernel unipi-firmware unipi-modbus-tools
      apt autoremove -y
      
      apt install nginx -y
      rm -f /etc/nginx/sites-enabled/default
      apt install evok -y
      systemctl enable evok
      reboot
      

      Firmware:

      root@residevice:/opt/unipi/tools# ./fwspi -i 0
      Boardset:     0 B-1000                         (v1.0)
      Baseboard:    0 B-1000                         (v1.0)
      Firmware: v5.31
      

      After update there is no circuit 1_ :

      root@residevice:~# wget http://localhost:8080/rest/all
      
      [{
      		"counter_modes": ["Enabled", "Disabled"],
      		"glob_dev_id": 1,
      		"modes": ["Simple", "DirectSwitch"],
      		"value": 0,
      		"circuit": "2_05",
      		"debounce": 50,
      		"counter": 0,
      		"counter_mode": "Enabled",
      		"dev": "input",
      		"mode": "Simple"
      	}, {
      		"counter_modes": ["Enabled", "Disabled"],
      		"glob_dev_id": 1,
      		"modes": ["Simple", "DirectSwitch"],
      		"value": 0,
      		"circuit": "2_04",
      		"debounce": 50,
      		"counter": 0,
      		"counter_mode": "Enabled",
      		"dev": "input",
      		"mode": "Simple"
      	}, {
      		"counter_modes": ["Enabled", "Disabled"],
      		"glob_dev_id": 1,
      		"modes": ["Simple", "DirectSwitch"],
      		"value": 0,
      		"circuit": "2_06",
      		"debounce": 50,
      		"counter": 0,
      		"counter_mode": "Enabled",
      		"dev": "input",
      		"mode": "Simple"
      	},
      	{
      		"counter_modes": ["Enabled", "Disabled"],
      		"glob_dev_id": 1,
      		"modes": ["Simple", "DirectSwitch"],
      		"value": 0,
      		"circuit": "2_01",
      		"debounce": 50,
      		"counter": 0,
      		"counter_mode": "Enabled",
      		"dev": "input",
      		"mode": "Simple"
      	},
      	{
      		"counter_modes": ["Enabled", "Disabled"],
      		"glob_dev_id": 1,
      		"modes": ["Simple", "DirectSwitch"],
      		"value": 0,
      		"circuit": "2_03",
      		"debounce": 50,
      		"counter": 0,
      		"counter_mode": "Enabled",
      		"dev": "input",
      		"mode": "Simple"
      	}, {
      		"counter_modes": ["Enabled", "Disabled"],
      		"glob_dev_id": 1,
      		"modes": ["Simple", "DirectSwitch"],
      		"value": 0,
      		"circuit": "2_02",
      		"debounce": 50,
      		"counter": 0,
      		"counter_mode": "Enabled",
      		"dev": "input",
      		"mode": "Simple"
      	},
      	{
      		"glob_dev_id": 1,
      		"modes": ["Simple"],
      		"value": 0,
      		"circuit": "2_05",
      		"pending": false,
      		"relay_type": "physical",
      		"dev": "relay",
      		"mode": "Simple"
      	}, {
      		"glob_dev_id": 1,
      		"modes": ["Simple"],
      		"value": 0,
      		"circuit": "2_04",
      		"pending": false,
      		"relay_type": "physical",
      		"dev": "relay",
      		"mode": "Simple"
      	}, {
      		"glob_dev_id": 1,
      		"modes": ["Simple"],
      		"value": 0,
      		"circuit": "2_01",
      		"pending": false,
      		"relay_type": "physical",
      		"dev": "relay",
      		"mode": "Simple"
      	},
      	{
      		"glob_dev_id": 1,
      		"modes": ["Simple"],
      		"value": 0,
      		"circuit": "2_03",
      		"pending": false,
      		"relay_type": "physical",
      		"dev": "relay",
      		"mode": "Simple"
      	},
      	{
      		"glob_dev_id": 1,
      		"modes": ["Simple"],
      		"value": 0,
      		"circuit": "2_02",
      		"pending": false,
      		"relay_type": "physical",
      		"dev": "relay",
      		"mode": "Simple"
      	},
      	{
      		"glob_dev_id": 1,
      		"unit": "V",
      		"value": 3.858161211013794,
      		"circuit": "2_04",
      		"range_modes": ["0.0", "2.5", "10.0"],
      		"modes": ["Voltage", "Current", "Resistance"],
      		"range": "10.0",
      		"dev": "ai",
      		"mode": "Voltage"
      	}, {
      		"glob_dev_id": 1,
      		"unit": "V",
      		"value": 3.7661192417144775,
      		"circuit": "2_01",
      		"range_modes": ["0.0", "2.5", "10.0"],
      		"modes": ["Voltage", "Current", "Resistance"],
      		"range": "10.0",
      		"dev": "ai",
      		"mode": "Voltage"
      	},
      	{
      		"glob_dev_id": 1,
      		"unit": "V",
      		"value": 3.1529541015625,
      		"circuit": "2_03",
      		"range_modes": ["0.0", "2.5", "10.0"],
      		"modes": ["Voltage", "Current", "Resistance"],
      		"range": "10.0",
      		"dev": "ai",
      		"mode": "Voltage"
      	}, {
      		"glob_dev_id": 1,
      		"unit": "V",
      		"value": 3.2787086963653564,
      		"circuit": "2_02",
      		"range_modes": ["0.0", "2.5", "10.0"],
      		"modes": ["Voltage", "Current", "Resistance"],
      		"range": "10.0",
      		"dev": "ai",
      		"mode": "Voltage"
      	}, {
      		"modes": ["Voltage"],
      		"value": 0.0,
      		"glob_dev_id": 1,
      		"dev": "ao",
      		"circuit": "2_04",
      		"unit": "V",
      		"mode": "Voltage"
      	},
      	{
      		"modes": ["Voltage"],
      		"value": 0.0,
      		"glob_dev_id": 1,
      		"dev": "ao",
      		"circuit": "2_01",
      		"unit": "V",
      		"mode": "Voltage"
      	}, {
      		"modes": ["Voltage"],
      		"value": 0.0,
      		"glob_dev_id": 1,
      		"dev": "ao",
      		"circuit": "2_03",
      		"unit": "V",
      		"mode": "Voltage"
      	}, {
      		"modes": ["Voltage"],
      		"value": 0.0,
      		"glob_dev_id": 1,
      		"dev": "ao",
      		"circuit": "2_02",
      		"unit": "V",
      		"mode": "Voltage"
      	},
      	{
      		"interval": 15,
      		"value": 57.75,
      		"circuit": "2812F9A708000074",
      		"address": "2812F9A708000074",
      		"time": 1570600764.403386,
      		"typ": "DS18B20",
      		"lost": false,
      		"dev": "temp"
      	}, {
      		"interval": 15,
      		"value": 41.55,
      		"circuit": "28DEBFA7080000E3",
      		"address": "28DEBFA7080000E3",
      		"time": 1570600765.947099,
      		"typ": "DS18B20",
      		"lost": false,
      		"dev": "temp"
      	},
      	{
      		"interval": 15,
      		"value": 1.95,
      		"circuit": "28753F5F070000BE",
      		"address": "28753F5F070000BE",
      		"time": 1570600769.176165,
      		"typ": "DS18B20",
      		"lost": false,
      		"dev": "temp"
      	},
      	{
      		"interval": 15,
      		"value": 50.55,
      		"circuit": "28FC53C107000006",
      		"address": "28FC53C107000006",
      		"time": 1570600770.86114,
      		"typ": "DS18B20",
      		"lost": false,
      		"dev": "temp"
      	},
      	{
      		"interval": 15,
      		"value": 52.75,
      		"circuit": "287E8DA9080000AD",
      		"address": "287E8DA9080000AD",
      		"time": 1570600767.631405,
      		"typ": "DS18B20",
      		"lost": false,
      		"dev": "temp"
      	},
      	{
      		"circuit": "2_01",
      		"value": 0,
      		"glob_dev_id": 1,
      		"dev": "wd",
      		"timeout": 5000,
      		"was_wd_reset": 0,
      		"nv_save": 0
      	}, {
      		"glob_dev_id": 1,
      		"last_comm": 0.03416609764099121,
      		"ver2": "1.0",
      		"sn": 104,
      		"circuit": "1",
      		"model": "M503",
      		"dev": "neuron",
      		"board_count": 1
      	}
      ]
      

      Suggestions?

      Br,
      Vesa

      1 Reply Last reply Reply Quote 0
      • T
        tomas_hora administrators last edited by tomas_hora

        So what do you see when you run /opt/unipi/tools# ./fwspi -i 0 ... /opt/unipi/tools# ./fwspi -i 1 and /opt/unipi/tools# ./fwspi -i 2?

        Vesa Kauppinen 1 Reply Last reply Reply Quote 0
        • Vesa Kauppinen
          Vesa Kauppinen @tomas_hora last edited by

          Hi @tomas_hora

          root@residevice:/opt/unipi/tools# ./fwspi -i 0
          Boardset:     0 B-1000                         (v1.0)
          Baseboard:    0 B-1000                         (v1.0)
          Firmware: v5.31
          
          root@residevice:/opt/unipi/tools# ./fwspi -i 1
          Unable to create the arm[1] context
          
          root@residevice:/opt/unipi/tools# ./fwspi -i 2
          Unable to create the arm[2] context
          

          /Vesa

          1 Reply Last reply Reply Quote 0
          • T
            tomas_hora administrators last edited by

            Just to be sure... Is the RUN2 LED blinking or not? What is the output of "dmesg | grep UNIPISPI" ?

            Vesa Kauppinen 2 Replies Last reply Reply Quote 0
            • Vesa Kauppinen
              Vesa Kauppinen @tomas_hora last edited by

              @tomas_hora said in After upgrading the M503, circuit 1 completely disappeared.:

              dmesg | grep UNIPISPI

              The device is hundreds of miles away, so I can't watch the LEDs.

              dmesg | grep UNIPISPI doesn't output anything.

              /Vesa

              1 Reply Last reply Reply Quote 0
              • Vesa Kauppinen
                Vesa Kauppinen @tomas_hora last edited by

                Hi @tomas_hora,

                Have you come up with new ideas in this regard?

                Br,
                Vesa

                1 Reply Last reply Reply Quote 0
                • M
                  martin_triska administrators last edited by

                  Hello @Vesa-Kauppinen,

                  it seems you do not have the unipi kernel module loaded. Can you try "lsmod | grep unipi"? If it still does not give any output, try to update unipi packages again.

                  Vesa Kauppinen 1 Reply Last reply Reply Quote 0
                  • Vesa Kauppinen
                    Vesa Kauppinen @martin_triska last edited by

                    @martin_triska said in After upgrading the M503, circuit 1 completely disappeared.:

                    lsmod | grep unipi

                    Hi @martin_triska,

                    Thank you for your answer! I got the following answer:

                    root@residevice:~# lsmod | grep unipi
                    unipi                  94208  0
                    industrialio           73728  1 unipi
                    
                    Martin Kudláček 1 Reply Last reply Reply Quote 0
                    • Martin Kudláček
                      Martin Kudláček @Vesa Kauppinen last edited by

                      Hi @vesa-kauppinen,
                      can you send us SSH access to the PLC? Let's continue over support@unipi.technology

                      Thanks,
                      Martin

                      Vesa Kauppinen 2 Replies Last reply Reply Quote 0
                      • Vesa Kauppinen
                        Vesa Kauppinen @Martin Kudláček last edited by

                        Hi @martin-kudláček

                        I sent email to support@unipi.technology

                        Br,
                        Vesa

                        1 Reply Last reply Reply Quote 0
                        • Vesa Kauppinen
                          Vesa Kauppinen @Martin Kudláček last edited by

                          Hi @martin-kudláček !

                          Did you receive my email?

                          Br,
                          Vesa

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post