• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. romainletendart
    3. Topics
    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 5
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by romainletendart

    • R

      Retrieve PLC coprocessor board status programmatically
      UniPi Neuron Series • • romainletendart

      2
      0
      Votes
      2
      Posts
      22
      Views

      M

      Hello @romainletendart ,

      as the first point, let me briefly describe the device architecture:

      Every Neuron device consists of one, two or three coprocessor boards. In the device-tree overlay, the full three-boards configuration is always supposed. During the driver-load phase (probe), the driver tries to contact all three boards (messages in the syslog come from this phase). In case of success, the driver creates the sysfs structure for every responding board (called io_groupX). This routine is invoked at driver load only - ie. at the boot time.

      To your questions:

      There is no way how to check the presence of a non-coprocessor board. These boards are just simple I/Os without any "intelligence". In case a co-processor board does not present at the boot time, no sysfs structure is created for this io_group. This status is a link to the currently loaded device tree. As mentioned above, all three boards are still active there, so you always read the "okay" string. In case the board is not found during the boot phase, no sysfs structure is created.

      Maybe standard Linux SPI subsystem statistics can be useful for you, e.g.:

      /sys/devices/platform/unipi_plc/io_group1/driver/spi0.1/statistics

      If you provide more details about your application, I can try to give you some more specific tips.

    • R

      Retrieve PLC's serial number programmatically
      UniPi Neuron Series • • romainletendart

      2
      0
      Votes
      2
      Posts
      22
      Views

      Martin Kudláček

      Hi @romainletendart,
      the serial number is available in the hostname of the PLC, which is set by the unipicheck service.

      The serial number is unique per model, e.g Neuron S103, Neuron M103 and Axon L505 can have serial number 10.

      Best regards,
      Martin

    • R

      Mender support for OpenSource OS on Neuron M203
      UniPi Neuron Series • • romainletendart

      3
      0
      Votes
      3
      Posts
      21
      Views

      R

      Hi Martin,

      Just for the record, we successfully menderized neuron-opensource-os_image-20210806.0 and the PLC now boots up. There seems to be an issue with u-boot 2020.01 that mender uses by default. Using version 2019.01 works just fine.

      Best regards,

      Romain