Can not read input from DIO

Topics about the Hardware of Revolution Pi
Post Reply
RobM
Posts: 2
Joined: 08 Mar 2020, 19:33

Can not read input from DIO

Post by RobM »

Hi, I have a Connect 3+ hooked into the DIO via the bridge. Everything seems to be configured correctly (see the piTest -d below). In addition, I am able to set the outputs and verify the voltage at 24 (it actually said 23.9) with my multimeter when the output is set. Currently, I have verified that output-3 (second pin down) is definitely at 24v. For testing, I have wired the output into one of the inputs just to see what input/output i am dealing with and to verify that i can read the input. However, input 3 (second pin down) is not reading and, after trying all of the inputs just to be sure, i can verify that none of the inputs are set to 1 when output 3 is set to 1.

My question is: is this due to the fact that I am using one power supply for the connect, DIO and for the X2 connections on the inputs and outputs? I have green lights for both and do not see any overt errors being detected anywhere. I also had tried wiring a button from my breadboard and that also did not work.

I apologize in advance if I am doing something stupid here, I am a software engineer and am still learning the electrical side of things. Attached is an image that has my wiring (ignore the arduino, i am not using it for this project).

below is piTest -d and dmesg, i have also confirmed that i am on the latest image and have also done an apt-get update and upgrade when i first received the connect +.

pi@RevPi32417:~/connect $ piTest -d
Found 2 devices:

Address: 0 module type: 95 (0x5f) RevPi Core V1.2
Module is present
input offset: 113 length: 6
output offset: 119 length: 5

Address: 31 module type: 96 (0x60) RevPi DIO V1.4
Module is present
input offset: 0 length: 70
output offset: 70 length: 18

dmesg:

pi@RevPi32417:~/connect $ dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.76-rt60-v7+ (admin@kunbus.de) (gcc version 8.2.0 (Debian 8.2.0-11) ) #1 SMP PREEMPT RT Tue, 12 Mar 2019 15:19:36 +0100
[ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt:Machine model: Raspberry Pi Compute Module 3 Plus Rev 1.0
[ 0.000000] cma: Reserved 8 MiB at 0x3ac00000
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] On node 0 totalpages: 242688
[ 0.000000] free_area_init_node: node 0, pgdat 80c74740, node_mem_map ba3a1000
[ 0.000000] Normal zone: 2133 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 242688 pages, LIFO batch:31
[ 0.000000] percpu: Embedded 14 pages/cpu @ba35a000 s27552 r8192 d21600 u57344
[ 0.000000] pcpu-alloc: s27552 r8192 d21600 u57344 alloc=14*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 240555
[ 0.000000] Kernel command line: bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:B1:51:A2 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait nosplash plymouth.ignore-serial-consoles
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 939820K/970752K available (7168K kernel code, 490K rwdata, 2116K rodata, 1024K init, 795K bss, 22740K reserved, 8192K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xbb800000 - 0xff800000 (1088 MB)
lowmem : 0x80000000 - 0xbb400000 ( 948 MB)
modules : 0x7f000000 - 0x80000000 ( 16 MB)
.text : 0x80008000 - 0x80800000 (8160 kB)
.init : 0x80b00000 - 0x80c00000 (1024 kB)
.data : 0x80c00000 - 0x80c7a9b0 ( 491 kB)
.bss : 0x80c7c000 - 0x80d42e08 ( 796 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 19.20MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[ 0.000006] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[ 0.000015] Switching to timer-based delay loop, resolution 52ns
[ 0.000291] Console: colour dummy device 80x30
[ 0.001923] console [tty1] enabled
[ 0.001947] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[ 0.001953] pid_max: default: 32768 minimum: 301
[ 0.002106] Security Framework initialized
[ 0.002112] Yama: becoming mindful.
[ 0.002327] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.002337] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.003319] Disabling memory control group subsystem
[ 0.003439] CPU: Testing write buffer coherency: ok
[ 0.003446] ftrace: allocating 23025 entries in 68 pages
[ 0.059331] CPU0: update cpu_capacity 1024
[ 0.059808] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.059888] Setting up static identity map for 0x100000 - 0x100058
[ 0.299453] CPU1: update cpu_capacity 1024
[ 0.299459] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.399594] CPU2: update cpu_capacity 1024
[ 0.399600] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.499762] CPU3: update cpu_capacity 1024
[ 0.499768] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.499936] Brought up 4 CPUs
[ 0.500217] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[ 0.500265] CPU: All CPU(s) started in HYP mode.
[ 0.500307] CPU: Virtualization extensions available.
[ 0.501383] devtmpfs: initialized
[ 0.517461] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[ 0.517950] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.518045] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.518718] pinctrl core: initialized pinctrl subsystem
[ 0.520141] NET: Registered protocol family 16
[ 0.523536] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 0.534563] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.534642] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.534858] Serial: AMBA PL011 UART driver
[ 0.537499] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[ 0.597310] bcm2835-dma 3f007000.dma: DMA legacy API manager at bb80f000, dmachans=0x1
[ 0.599835] SCSI subsystem initialized
[ 0.600083] usbcore: registered new interface driver usbfs
[ 0.600232] usbcore: registered new interface driver hub
[ 0.600414] usbcore: registered new device driver usb
[ 0.609890] raspberrypi-firmware soc:firmware: Attached to firmware from 2019-02-12 19:42
[ 0.611680] clocksource: Switched to clocksource arch_sys_counter
[ 0.691601] VFS: Disk quotas dquot_6.6.0
[ 0.691824] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.692160] FS-Cache: Loaded
[ 0.692496] CacheFiles: Loaded
[ 0.708397] NET: Registered protocol family 2
[ 0.709382] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.709559] TCP bind hash table entries: 8192 (order: 5, 229376 bytes)
[ 0.710242] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.710391] UDP hash table entries: 512 (order: 3, 32768 bytes)
[ 0.710539] UDP-Lite hash table entries: 512 (order: 3, 32768 bytes)
[ 0.711005] NET: Registered protocol family 1
[ 0.711790] RPC: Registered named UNIX socket transport module.
[ 0.711841] RPC: Registered udp transport module.
[ 0.711886] RPC: Registered tcp transport module.
[ 0.711929] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.713162] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[ 0.716467] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[ 0.737432] FS-Cache: Netfs 'nfs' registered for caching
[ 0.738730] NFS: Registering the id_resolver key type
[ 0.738812] Key type id_resolver registered
[ 0.738858] Key type id_legacy registered
[ 0.742130] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 0.742373] io scheduler noop registered
[ 0.742420] io scheduler deadline registered (default)
[ 0.743055] io scheduler cfq registered
[ 0.751010] BCM2708FB: allocated DMA memory fad10000
[ 0.751225] BCM2708FB: allocated DMA channel 0 @ bb80f000
[ 0.809989] Console: switching to colour frame buffer device 240x67
[ 0.846273] bcm2835-rng 3f104000.rng: hwrng registered
[ 0.846604] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[ 0.847572] vc-sm: Videocore shared memory driver
[ 0.868257] brd: module loaded
[ 0.890360] loop: module loaded
[ 0.890502] Loading iSCSI transport class v2.0-870.
[ 0.891348] usbcore: registered new interface driver smsc95xx
[ 0.891544] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 1.120006] Core Release: 2.80a
[ 1.120133] Setting default values for core params
[ 1.120307] Finished setting default values for core params
[ 1.320990] Using Buffer DMA mode
[ 1.321107] Periodic Transfer Interrupt Enhancement - disabled
[ 1.321287] Multiprocessor Interrupt Enhancement - disabled
[ 1.321460] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 1.321601] Dedicated Tx FIFOs mode
[ 1.322360] WARN::dwc_otg_hcd_init:1032: FIQ DMA bounce buffers: virt = 0xbad04000 dma = 0xfad04000 len=9024
[ 1.322676] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
Interrupt/Control Split Transaction hack enabled
[ 1.323312] dwc_otg: Microframe scheduler enabled
[ 1.323372] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x805bd7a8
[ 1.323378] WARN::hcd_init_fiq:460: FIQ ASM at 0x805bdb14 length 36
[ 1.323388] WARN::hcd_init_fiq:486: MPHI regs_base at 0xbb87a000
[ 1.323458] dwc_otg 3f980000.usb: DWC OTG Controller
[ 1.324181] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[ 1.324548] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[ 1.324763] Init: Port Power? op_state=1
[ 1.324889] Init: Power Port (0)
[ 1.325260] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.325473] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.333250] usb usb1: Product: DWC OTG Controller
[ 1.340873] usb usb1: Manufacturer: Linux 4.9.76-rt60-v7+ dwc_otg_hcd
[ 1.348537] usb usb1: SerialNumber: 3f980000.usb
[ 1.357309] hub 1-0:1.0: USB hub found
[ 1.365036] hub 1-0:1.0: 1 port detected
[ 1.373519] dwc_otg: FIQ enabled
[ 1.373526] dwc_otg: NAK holdoff enabled
[ 1.373532] dwc_otg: FIQ split-transaction FSM enabled
[ 1.373550] Module dwc_common_port init
[ 1.374139] usbcore: registered new interface driver usb-storage
[ 1.382134] mousedev: PS/2 mouse device common for all mice
[ 1.391628] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[ 1.399703] bcm2835-cpufreq: min=600000 max=1200000
[ 1.407908] sdhci: Secure Digital Host Controller Interface driver
[ 1.415536] sdhci: Copyright(c) Pierre Ossman
[ 1.423783] sdhost-bcm2835 3f202000.sdhost: could not get clk, deferring probe
[ 1.431874] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.441029] hidraw: raw HID events driver (C) Jiri Kosina
[ 1.449127] usbcore: registered new interface driver usbhid
[ 1.456981] usbhid: USB HID core driver
[ 1.465829] vchiq: vchiq_init_state: slot_zero = 0xbad80000, is_master = 0
[ 1.475440] [vc_sm_connected_init]: start
[ 1.485868] [vc_sm_connected_init]: end - returning 0
[ 1.494084] Initializing XFRM netlink socket
[ 1.501775] NET: Registered protocol family 17
[ 1.509645] Key type dns_resolver registered
[ 1.517761] Registering SWP/SWPB emulation handler
[ 1.526485] registered taskstats version 1
[ 1.544434] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[ 1.557856] rtc-pcf2127-i2c 1-0051: rtc core: registered rtc-pcf2127-i2c as rtc0
[ 1.566734] sdhost: log_buf @ bad07000 (fad07000)
[ 1.595550] Indeed it is in host mode hprt0 = 00021501
[ 1.671740] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[ 1.675316] random: fast init done
[ 1.690379] rtc-pcf2127-i2c 1-0051: setting system clock to 2020-03-08 16:30:14 UTC (1583685014)
[ 1.700662] of_cfs_init
[ 1.710956] of_cfs_init: OK
[ 1.722094] Waiting for root device /dev/mmcblk0p2...
[ 1.801753] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 1.809929] Indeed it is in host mode hprt0 = 00001101
[ 1.883072] mmc0: new high speed MMC card at address 0001
[ 1.892192] mmcblk0: mmc0:0001 BJTD4R 29.1 GiB
[ 1.900583] mmcblk0boot0: mmc0:0001 BJTD4R partition 1 4.00 MiB
[ 1.909051] mmcblk0boot1: mmc0:0001 BJTD4R partition 2 4.00 MiB
[ 1.917403] mmcblk0rpmb: mmc0:0001 BJTD4R partition 3 4.00 MiB
[ 1.927021] mmcblk0: p1 p2
[ 1.974646] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[ 1.985344] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[ 2.042316] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[ 2.045774] EXT4-fs (mmcblk0p2): orphan cleanup on readonly fs
[ 2.046037] EXT4-fs (mmcblk0p2): 1 orphan inode deleted
[ 2.046043] EXT4-fs (mmcblk0p2): recovery complete
[ 2.053748] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 2.053878] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 2.055254] devtmpfs: mounted
[ 2.058500] Freeing unused kernel memory: 1024K
[ 2.110111] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.119883] hub 1-1:1.0: USB hub found
[ 2.128605] hub 1-1:1.0: 5 ports detected
[ 2.268509] random: crng init done
[ 2.451811] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 2.582578] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 2.590684] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.614513] smsc95xx v1.0.5
[ 2.624945] NET: Registered protocol family 10
[ 2.656664] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 2.689044] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[ 2.699397] systemd[1]: Detected architecture arm.
[ 2.738746] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, c8:3e:a7:01:56:ae
[ 2.755049] systemd[1]: Set hostname to <RevPi32417>.
[ 3.294931] systemd[1]: Listening on Journal Socket.
[ 3.315132] systemd[1]: Created slice User and Session Slice.
[ 3.333813] systemd[1]: Listening on udev Control Socket.
[ 3.352389] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 3.370989] systemd[1]: Listening on Journal Socket (/dev/log).
[ 3.390697] systemd[1]: Created slice System Slice.
[ 3.414484] systemd[1]: Mounting Debug File System...
[ 3.512834] i2c /dev entries driver
[ 3.570370] spi0.1 supply vdd-io not found, using dummy regulator
[ 3.570508] spi0.1 supply vdd not found, using dummy regulator
[ 3.661835] ks8851 spi0.1: message enable is 0
[ 3.675997] ks8851 spi0.1 pieth0: revision 1, MAC da:7c:87:8d:10:26, IRQ 0 (polling), no EEPROM
[ 3.676855] spi0.0 supply vdd-io not found, using dummy regulator
[ 3.677013] spi0.0 supply vdd not found, using dummy regulator
[ 3.677123] ks8851 spi0.0: message enable is 0
[ 3.680991] ks8851 spi0.0 pieth1: revision 1, MAC 12:43:e6:d4:13:09, IRQ 0 (polling), no EEPROM
[ 3.878174] piControl: loading out-of-tree module taints kernel.
[ 3.884287] piControl: built: Tue Mar 12 15:40:55 CET 2019
[ 3.884306] piControl: RevPi Core
[ 3.884317] piControl: MAJOR-No. : 244
[ 3.889642] piControl: MAJOR-No. : 244 MINOR-No. : 0
[ 3.904060] piControl: kernel_read returned 0: b8c66a00, 6055
[ 3.904110] piControl: 2 devices found
[ 3.904115] piControl: 95 entries in total
[ 3.904514] piControl: cl-comp: 0 addr 70 bit ff len 8
[ 3.904523] piControl: cl-comp: 1 addr 71 bit ff len 8
[ 3.904528] piControl: cl-comp: 2 addr 119 bit ff len 8
[ 3.913459] uart-pl011 3f201000.serial: no DMA platform data
[ 3.913549] piControl: filp_open -1192896512
[ 3.913629] piControl: set priority of spi0 to 54
[ 3.916673] piControl: piIO thread started
[ 3.916680] piControl: RevPiDevice_init()
[ 3.916688] piControl: Enter Init State
[ 3.916872] piControl: PADS 0 = 0x1b slew=1 hyst=1 drive=3
[ 3.916878] piControl: PADS 1 = 0x1b slew=1 hyst=1 drive=3
[ 3.916902] piControl: PADS 2 = 0x1b slew=1 hyst=1 drive=3
[ 3.916902] piControl: piControlInit done
[ 3.917394] piControl: Enter PresentSignalling1 State
[ 3.956232] piControl: Enter InitialSlaveDetectionRight State
[ 3.956770] piControl: Enter InitialSlaveDetectionLeft State
[ 3.957311] piControl: Enter ConfigLeftStart State
[ 3.967370] piControl: Enter ConfigDialogueLeft State
[ 4.001752] piControl: GetDeviceInfo: Id 96
[ 4.031741] piControl: found 2. device on left side. Moduletype 96. Designated address 31
[ 4.031746] piControl: input offset 11 len 70
[ 4.031752] piControl: output offset 81 len 18
[ 4.032295] piControl: Enter SlaveDetectionLeft State
[ 4.042370] piControl: Enter EndOfConfig State

[ 4.042382] piControl: Device 0: Addr 0 Type 95 Act 1 In 6 Out 5
[ 4.042386] piControl: input offset 0 len 6
[ 4.042391] piControl: output offset 6 len 5
[ 4.042396] piControl: serial number 1 version 1.2
[ 4.042403] piControl: Device 1: Addr 31 Type 96 Act 1 In 70 Out 18
[ 4.042408] piControl: input offset 11 len 70
[ 4.042412] piControl: output offset 81 len 18
[ 4.042417] piControl: serial number 32033 version 1.4
[ 4.042420] piControl:
[ 4.042440] piControl: Adjust: base 113 in 113 out 119 conf 0
[ 4.042447] piControl: Adjust: base 0 in 0 out 70 conf 88
[ 4.042451] piControl: After Adjustment
[ 4.042458] piControl: Device 0: Addr 0 Type 95 Act 1 In 6 Out 5
[ 4.042463] piControl: input offset 113 len 6
[ 4.042467] piControl: output offset 119 len 5
[ 4.042474] piControl: Device 1: Addr 31 Type 96 Act 1 In 70 Out 18
[ 4.042478] piControl: input offset 0 len 70
[ 4.042482] piControl: output offset 70 len 18
[ 4.042484] piControl:
[ 4.161726] piControl: start data exchange
[ 4.404426] piControl: piDIOComm_Init done 0
[ 4.406222] piControl: set BridgeState to running
[ 4.557361] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 4.672291] systemd-journald[161]: Received request to flush runtime journal from PID 1
[ 5.101817] ks8851 spi0.1 piright: renamed from pieth0
[ 5.846615] ks8851 spi0.0 pileft: renamed from pieth1
[ 7.295023] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[ 11.931923] IPv6: ADDRCONF(NETDEV_UP): piright: link is not ready
[ 11.940290] IPv6: ADDRCONF(NETDEV_UP): pileft: link is not ready
[ 12.027359] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 12.027888] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 269.710523] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 269.711360] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
[ 281.886739] smsc95xx 1-1.1:1.0 eth0: link down
[ 289.999087] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
[ 293.206753] smsc95xx 1-1.1:1.0 eth0: link down
[ 303.751221] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
[ 522.079786] fuse init (API version 7.26)
[ 6139.390843] smsc95xx 1-1.1:1.0 eth0: link down
[ 6146.143188] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
[ 6257.182844] smsc95xx 1-1.1:1.0 eth0: link down
[ 6267.791038] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE
Attachments
IMG_0234.jpg
IMG_0234.jpg (238.41 KiB) Viewed 15217 times
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

Re: Can not read input from DIO

Post by dirk »

Hi RobM and a warm welcome to the RevPi community - there are no stupid questions. Ok I can see the problem it is good that you have provided a picture. You have unfortunately connected two outputs.
Have a look at the tutorial Overview RevPi I/O modules there is a picture. The inputs start from the bottom to top.
RobM
Posts: 2
Joined: 08 Mar 2020, 19:33

Re: Can not read input from DIO

Post by RobM »

Thank you. Hahahah. I did figure that out after a while. Anyway, thanks for the reply. If you are interested, I posted my python module for controlling and monitoring the outputs and inputs here:

https://gitlab.com/xapa/revpy-dio

If you'd like to share with the community feel free!
Post Reply