• Can't connect to RS485 without being root

    Moved
    11
    0 Votes
    11 Posts
    6k Views
    F
    Thanks for your help! I have to execute the command in sudo for the LEDs, but it works fine! So, I will execute a chmod command after boot time.
  • Setting Static IP Address on Neuron

    2
    0 Votes
    2 Posts
    3k Views
    T
    @mikeardy The IP address should be changed in /etc/network/interfaces
  • Can't get runnig RS-485 on jessie

    Moved
    4
    0 Votes
    4 Posts
    3k Views
    T
    You can compile a kernel driver module for Neuron, which should work on Jessie. You can find the source code here: http://git.unipi.technology:3000/UniPi/neuron-kernel If you can provide us with the exact kernel version (run "uname -a" as root) we can even compile it for you, the process is relatively trivial.
  • Expansion Modbus I/O and RS232 Module

    Moved
    2
    0 Votes
    2 Posts
    2k Views
    T
    @mikeardy It's not good idea to mix RS232 and Modbus. You would need something like this for Modbus RTU RS485 extension https://www.unipi.technology/extension-modules-c13
  • L203 not starting

    4
    0 Votes
    4 Posts
    3k Views
    J
    @tomas_knot Thank you for resolving this issue. I am indeed running the latest Open Source OS image.
  • This topic is deleted!

    2
    0 Votes
    2 Posts
    14 Views
  • xS10 timeout's on RS485

    5
    0 Votes
    5 Posts
    3k Views
    T
    @Negropo This might be an issue with the xS10. Please contact me via support@unipi... and we will figure this out.
  • Loxone RS485 connection

    2
    0 Votes
    2 Posts
    2k Views
    T
    @tvleminc If you have a Neuron extension, just connect the RS485 of Loxone to the Extension, configure the RS485 baudrate, parity and Modbus address and just map the Registers/Coils from the Modbus registers map of the extension which is available to download here https://www.unipi.technology/helpcenter/download/
  • Change Device ID of Neuron xS10

    Moved
    4
    0 Votes
    4 Posts
    2k Views
    T
    @Negropo There are no prototypes for Neuron Extetensions in FHEM yet, so you have to define it first according to the FHEM documentation. https://wiki.fhem.de/wiki/Modbus
  • FHEM with Modbus over Network on Neuron L403 / a first step

    Moved
    3
    0 Votes
    3 Posts
    3k Views
    N
    Hi, I tried to control a Neuron xS10 directly via ModbusRTU over FHEM but I can't get it work :-( I tried this in my fhem.cfg #Neuron xS10 define NeuronModbus Modbus /dev/ttyUSB0@19200,8,N,1 define NeuronxS10 ModbusAttr 0 60 RTU define DigitalOut1 ModbusCoil 0 0 attr DigitalOut1 IODev NeuronxS10 attr DigitalOut1 event-on-change-reading .* The RX-Led on the extension stay's green. But I can't get a relay to change between on/off. No LED of an relay ist getting on. So is there anybody who could help me please or give me an hint to an conclusion? Thx a lot Negropo
  • I2C connections to UniPi Neuron

    2
    0 Votes
    2 Posts
    2k Views
    T
    Hello @VariableEmployee, I2C is not designed to run on long lines - so theoretically you can connect 30 devices if the addresses do not collide but it is not a good idea to do it like this due to the long wires. Also, there is no direct access to the I2C on Neurons, it is available only on UniPi 1. If you want to use it as a PLC, meant as a robust and reliable automation controller, I suggest connecting the peripherals via RS485... UART is also a low-level interface (such as I2C), in installation cabinets, these kinds of protocols is used only for the communication within one device. Protocols like RS485, RS232 and others are used to communicate with other devices.
  • 1-wire and 30 sensors

    Moved
    2
    0 Votes
    2 Posts
    2k Views
    T
    @sidoor This always depends on the environment where the installation is done. If you use shielded cables than it might work...
  • Neuron and Codesys

    Moved
    5
    0 Votes
    5 Posts
    4k Views
    D
    @tomas_hora When do you expect to release the firmware required to make Neuron operational with @DavidCozens codesys port? We are all waiting not so patiently. Thanks
  • SSD on Neuron

    Moved
    4
    0 Votes
    4 Posts
    4k Views
    N
    Here is what I did to get the UniPi Neuron running the UniPi Mervis OS image on a SSD connected to USB. Use the info below on your own risk. The Neuron should already be running on a SD card using the UniPi Mervis OS image. No additional software were added to the SD card to complete the steps below. All steps were done using ssh. Default ssh login = root:unipi 1: Enable writing to the /boot partition # mount -o remount,rw /boot 2: Enable Raspberry Pi 3 booting from USB connected mass storage. Please see here for more details. # echo 'program_usb_boot_mode=1' >> /boot/config.txt Please be aware that this command is not reversible. Reboot the Neuron, and log in again. Verify success by issuing the command: # vcgencmd otp_dump | grep 17: The output should read: 17:3020000a After reboot it is a good idea to remove the line added to /boot/config.txt above. This can be done using this command: # mount -o remount,rw /boot; sed -i '$d' /boot/config.txt 3: Prepare the USB connected disk Make sure there is only one USB connected mass storage device connected to the Neuron. Identify the disk by issuing the command: # lsblk The output should look something like this: root@unipi:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 111.8G 0 disk |-sda2 8:2 0 1G 0 part |-sda3 8:3 0 1G 0 part `-sda1 8:1 0 60M 0 part mmcblk0 179:0 0 7.4G 0 disk |-mmcblk0p2 179:2 0 1G 0 part / |-mmcblk0p3 179:3 0 1G 0 part /var `-mmcblk0p1 179:1 0 60M 0 part /boot root@unipi:~# sda is the USB connected disk, and in this case it has three partitions sda1-sda3 mmcblk0 is the SD card. We can also see that none of the partitions on sda is mounted. Wipe the disk by issuing the command: # wipefs -a /dev/sda The disk I used was 120 Gb. Partition sizes should be adjusted accordingly. Create the following partitions by using: fdisk -c -u /dev/sda A 150 Mb Fat32 partition set as bootable. This will become /boot A 58 Gb Linux partition. This will become / A 52 Gb Linux partition. This will become /var A 1.7 Gb swap partition (the rest of the disk). 4: Format the partitions # mkfs -t vfat -n BOOT -F 32 /dev/sda1 # mkfs -t ext4 /dev/sda2 # mkfs -t ext4 /dev/sda3 # mkswap /dev/sda4 Make sure TRIM is a default mount option # tune2fs -o discard /dev/sda1 # tune2fs -o discard /dev/sda2 # tune2fs -o discard /dev/sda3 # tune2fs -o discard /dev/sda4 5: Make directories and mount the new partitions Create a mount point for the partition that will become / # mkdir /tmp/myssd Mount the partition that will become / # mount /dev/sda2 /tmp/myssd Create mount point for the partition that will become /boot # mkdir /tmp/myssd/boot Mount the partition that will become /boot # mount /dev/sda1 /tmp/myssd/boot Create mount point for the partition that will become /var # mkdir /tmp/myssd/var Mount the partition that will become /var # mount /dev/sda3 /tmp/myssd/var 6: Copy all content on the SD card to the USB disk # rsync -ax —progress / /boot /var /tmp/myssd 7: Chroot into the new file system to do required changes Enter the new file system and mount special file systems prior to chroot # cd /tmp/myssd/ # mount --bind /dev dev # mount --bind /sys sys # mount --bind /proc proc Chroot into the new file system # chroot /tmp/myssd 8: Make new ssh keys Remove ssh keys copied from the SD card # rm /etc/ssh/ssh_host_* Generate new keys # dpkg-reconfigure openssh-server Just ignore perl warnings. 9: Edit /etc/fstab and /boot/cmdlline.txt to replace SD card with SSD # sed -i "s,/dev/mmcblk0p1,/dev/sda1,” /etc/fstab # sed -i "s,/dev/mmcblk0p2,/dev/sda2,” /etc/fstab # sed -i "s,/dev/mmcblk0p3,/dev/sda3,” /etc/fstab # echo '/dev/sda4 none swap sw 0 0' >> /etc/fstab # sed -i "s,root=/dev/mmcblk0p2,root=/dev/sda2,” /boot/cmdline.txt 10: Exit chroot, move out of the SSD filesystems and power off the Neuron # exit # cd ~ # poweroff 11: Remove power from the Neuron and remove the SD card. 12: Boot from SSD 13: Remove local ssh key Prior to logging in to the Neuron you should remove your locally stored ssh key for the Neuron from your known_hosts file. 14: Modify /etc/fstab to use UUID instead of partition names Use UUID instead of partition names in /etc/fstab. It is wise to do this modification to the fstab in case you attach another USB mass storage device to the Neuron, and what used to be /dev/sda has suddenly become /dev/sdb. Please see here for details about the use of UUID in /etc/fstab 15: Have fun! -- Joran
  • Node Red compatibility with Neuron/Unipi

    2
    0 Votes
    2 Posts
    2k Views
    T
    @Meethos https://www.npmjs.com/package/node-red-contrib-unipi-evok https://github.com/phillipsnick/unipi-evok
  • Permanent 24v from impulse relay to DI

    Moved
    4
    0 Votes
    4 Posts
    3k Views
    T
    @dgajic Sorry, I did not understand that the relays are like this. If the relays react to an rising or falling edge of 24V to change the state then it's OK and it should work well. You would not use the DirectSwitch of Neuron and just simulate the press of a button from the Neuron relay.
  • SD card

    7
    0 Votes
    7 Posts
    4k Views
    T
    Ok thx !
  • Enable RS485 on Raspbian Stretch

    Moved
    4
    0 Votes
    4 Posts
    3k Views
    T
    Hello everyone, if you use the UniPian image, than the RS485 is available in /dev/extcomm/0/0 (symlink to /dev/pts...). You do not need to do anything with the RPi UART interface. If you have your own image, than the neuron_tcp_server is taking care of the RS485 (so the neuron tcp server must be running) but the port configuration has to be done using the Modbus registers (as described in the Modbus maps).
  • PT1000 in Neuron

    Moved
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Uniupi Neuron S103G - Feedback

    Moved
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied