Ethernet connection

Thanks, John! This is great info.

  1. I’ll look into the the FTDI RS-232 converter. I know them well.
  2. The laptop enjoy full range internet upon connecting.
  3. Yeah, I double-checked all of the WebApp servers. I have not changed them from the defaults provided by the Configurator.
  4. I’ll see if I can snag another RPi for testing. That’s where my my current thinking is as well. I think in the short term, I’m going to find a known good Enet cable and by pass the in-ground link that has all of the grounding and multiple connections. My first priority is to consistently get link lights. The RPi 3 is a Fast Enet (10/100) and not Gigabit. This is important b/c the Gigabit Enet has auto-sensing goodness that figures our the wiring. 10/100 does not and is sensitive to wiring schemes. If I am incorrect about the RPi3’s Enet, please let me know!

@RickCarlino Thanks for the info and the reply!! I’ll give the logs a try.

We have rainy weather here so it may be a few days before I can get out back and try all of this, save the logs. That can be done from inside :slight_smile:

1 Like

@fuzzynickel I was able to use ethernet on a device configured via DHCP. It seems that Ethernet still works on v10. I will hold off on investigating any further until we see some error logs.

1 Like

Yes, you’re right about that and in accord with the official RPi 3B tech specs . . but as I mentioned I’m using an RPi 3 B+ which does have Gigabit PHY ( but it runs over USB 2.0 internally, so they say expect around 300 Mbps :slight_smile: )

Note that this page is also present when the Configurator AP is running ! ( 192.168.24.1 )

1 Like

Ok fellas, I ran the logger, both from the configurator and from the Wirelessly configured FB. Nothing popped out to me about an aborted wired ethernet interface, successful or otherwise. I tried connecting and reconnecting the cabling a few times for good measure (no link lights became lit). Curiously, going to the configured FB on the local IP address got me back to the configurator. You can see the HTTP requests in the after config log file.Debug Logger - after config.html (2.6 KB) Debug Logger - before config.html (8.2 KB)

I also tried to do a log dump, as per https://developer.farm.bot/docs/gathering-a-log-dump but that gave me a 404 error. Perhaps that’s been replaced by the /logger url?

Finally, I attempted to SSH in. In the configurator, it asks me for the use name/pass, which per https://developer.farm.bot/docs/farmbot-os-faq, is not available. At this point, there is no public key available, so … is there a way to ssh into the Configurator?

I supplied a public key for the FB during the Configuration, and was able to poke around in the Elixir APIs within the FBOS.

  1. I attached to RingLogger and it did not give me any errors or status for eth0 as I plugged and unplugged cables.
  2. I did not find any APIs that expose the status of the eth0 device, with my search ending somewhere in the VintageNetwork library. I did find where I could configure the network, but that would either require me to compile my own custom OS (not ready to do that right now) or dig a little deeper into the data structures of the Elixir language (my wife is starting to pay attention to how much attention I’m giving the Farmbot).

I’ll scour to see if I can find another RPi to test with. @RickCarlino, will FB and an RPi 4 get along? The pinouts and form factor look to be the same…not sure about the underlying chipset vs OS etc etc. According to Cana, the major difference that would be of import would be the higher amperage requirements (3.0 Amps). https://www.canakit.com/raspberry-pi-4-4gb.html

The only way to have SSH ( with Public Key auth ) available in Configurator is to build your own FBOS as a dev env build, and having your public key available in a known place as id_rsa.pub ( it’s all in the “d.i.y.” developer doc ).

This is where your Serial Console cable ( TTL to USB ) is really handy, though maybe not so much if the bot is already fully installed in the field :slight_smile:

Hardware-wise : probably . . software-wise : definitely No with current FBOS . . RPi4B needs its own nerves_system_rpi4 tailored and then bundled into FBOS.

Plain RPi3B and RPi3B+ both work with FBOS v10.0.0. Maybe quicker to trouble shoot this by pulling out the RPi3 from the bot and running it on your bench, while connecting to the same router port ?

1 Like

If you go into the Advanced configuation page (where you can set static IP, for example), you can also include a public RSA ssh key there. You don’t have to rebuild the image.

Thanks @jebba . I was able to successfully use that route to SSH into a fully configured FB. I wanted to SSH into the Configurator (where you would paste the SSH key) to do some troubleshooting there. By default, that’s not possible unless you build a custom version of the FBOS (as John mentioned above) to include the public key.

1 Like

Yea, you’re right John. I’ll see if I can do that tear down and test once I get a serial console cable. Thanks for the info!

@jebba, that’s interesting . . Have you tried adding your SSH key and then doing a Factory Reset to get Configurator up and then tried SSH ?

As I understand it, your personal SSH PublicKey is associated with your personal User Account on the WebApp and then made available to FBOS when FBOS boots, connects and authenticates against your account.

After Factory Reset, that association is broken.

Cable’s been ordered and should be here some time tomorrow. For the curious, this is the one I bought from Amazon. The EZSync012 (great name, right?)

1 Like

@jsimmonds I’ve added using the configurator, but haven’t tested after factory reset. I assume you’d lose it on reset. I’ve also built an RSA key into the image to connect to my own WebApp. That works. :slight_smile: Though they should get away from RSA keys, methinks…

. . . in favour of DSA ?, EC ?

ed25519 or one of the other new ones. Definitely not DSA, EC (!!!).

1 Like

I was able to successfully get the TTL to USB Com port up and running on the RPi and was able to see the debug output. Should I be able to type OS commands? I also looked up some VintageNet commands so that I could be dangerous. Bottom line, still no link lights. Here are some outputs:

VintageNet.info()
VintageNet 0.7.5

All interfaces: [“eth0”, “lo”, “wlan0”]
Available interfaces: [“wlan0”]

Interface eth0
Type: VintageNetEthernet
Present: true
State: :configured
Connection: :disconnected
Configuration:
%{ipv4: %{method: :dhcp}, type: VintageNetEthernet}

Interface usb0
Type: VintageNetEthernet
Present: nil
State: :retrying
Connection: :disconnected
Configuration:
%{
dnsmasq: %{
address: “192.168.25.1”,
domain: “farmbot”,
end: “192.168.25.10”,
server: “192.168.25.1”,
start: “192.168.25.2”
},
ipv4: %{address: {192, 168, 25, 1}, method: :static, prefix_length: 24},
type: VintageNetEthernet
}

Interface wlan0
Type: VintageNetWiFi
Present: true
State: :configured
Connection: :internet
Configuration:
%{
ipv4: %{method: :dhcp},
type: VintageNetWiFi,
vintage_net_wifi: %{
bgscan: :simple,
networks: [
%{
key_mgmt: :wpa_psk,
mode: :infrastructure,
psk: “…”,
ssid: “*** Removed* ***”
}
],
regulatory_domain: “US”
}
}
:ok

Terminal Output from a fresh reboot and one call to VintageNet to attempt to enable eth0:

VintageNet call to enable eth0
VintageNet.configure(“eth0”, %{type: VintageNetEthernet, ipv4: %{method: :dhcp}})

— begin log —

▒[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.19.75 (rick@rick-Inspiron-5559) (gcc version 8.3. 0 (crosstool-NG 1.24.0-rc3)) #2 SMP PREEMPT Mon Dec 16 15:36:43 CST 2019
[ 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 instructio n cache
[ 0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Rev 1.2
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 8 MiB at 0x33800000
[ 0.000000] random: get_random_bytes called from start_kernel+0x9c/0x398 with crng_init=0
[ 0.000000] percpu: Embedded 16 pages/cpu s34188 r8192 d23156 u65536
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 211120
[ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 bcm2708_fb. fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec000 00 vc_mem.mem_size=0x40000000 vt.global_cursor_default=0 console=tty1 console=t tyAMA0,115200 fbcon=scrollback:1024k root=/dev/mmcblk0p2 rootwait consoleblank=0
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 824272K/851968K available (6144K kernel code, 216K rwdata , 1008K rodata, 1024K init, 374K bss, 19504K reserved, 8192K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xb4800000 - 0xff800000 (1200 MB)
[ 0.000000] lowmem : 0x80000000 - 0xb4000000 ( 832 MB)
[ 0.000000] modules : 0x7f000000 - 0x80000000 ( 16 MB)
[ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (7136 kB)
[ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (1024 kB)
[ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 217 kB)
[ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 375 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] arch_timer: 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 43980 46511078ns
[ 0.000021] Switching to timer-based delay loop, resolution 52ns
[ 0.000202] Console: colour dummy device 80x30
[ 0.000888] console [tty1] enabled
[ 0.000944] Calibrating delay loop (skipped), value calculated using timer fr equency… 38.40 BogoMIPS (lpj=192000)
[ 0.000991] pid_max: default: 32768 minimum: 301
[ 0.001295] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.001333] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.002182] CPU: Testing write buffer coherency: ok
[ 0.002606] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.060052] Setting up static identity map for 0x100000 - 0x10003c
[ 0.080043] rcu: Hierarchical SRCU implementation.
[ 0.120100] smp: Bringing up secondary CPUs …
[ 0.200526] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.280592] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.360695] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.360815] smp: Brought up 1 node, 4 CPUs
[ 0.360902] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[ 0.360927] CPU: All CPU(s) started in HYP mode.
[ 0.360948] CPU: Virtualization extensions available.
[ 0.361794] devtmpfs: initialized
[ 0.373135] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[ 0.373512] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ma x_idle_ns: 19112604462750000 ns
[ 0.373562] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.374114] pinctrl core: initialized pinctrl subsystem
[ 0.374781] NET: Registered protocol family 16
[ 0.382464] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 0.387238] Serial: AMBA PL011 UART driver
[ 0.387691] persistent_ram: uncorrectable error in header
[ 0.387851] persistent_ram: uncorrectable error in header
[ 0.388008] persistent_ram: uncorrectable error in header
[ 0.388163] persistent_ram: uncorrectable error in header
[ 0.388318] persistent_ram: uncorrectable error in header
[ 0.388472] persistent_ram: uncorrectable error in header
[ 0.388628] persistent_ram: uncorrectable error in header
[ 0.388800] persistent_ram: uncorrectable error in header
[ 0.398361] console [pstore-1] enabled
[ 0.398756] pstore: Registered ramoops as persistent store backend
[ 0.398889] ramoops: attached 0x100000@0xb000000, ecc: 16/0
[ 0.401100] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[ 0.430827] bcm2835-dma 3f007000.dma: DMA legacy API manager at (ptrval), dma chans=0x1
[ 0.432418] SCSI subsystem initialized
[ 0.432631] usbcore: registered new interface driver usbfs
[ 0.432892] usbcore: registered new interface driver hub
[ 0.433099] usbcore: registered new device driver usb
[ 0.450721] raspberrypi-firmware soc:firmware: Attached to firmware from 2019 -08-15 12:08, variant start_x
[ 0.460906] raspberrypi-firmware soc:firmware: Firmware hash is 0e6daa5106dd4 164474616408e0dc24f997ffcf3
[ 0.472140] clocksource: Switched to clocksource arch_sys_counter
[ 0.480543] NET: Registered protocol family 2
[ 0.481536] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[ 0.481793] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.482121] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.482463] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.482810] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.482980] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.483395] NET: Registered protocol family 1
[ 0.484660] Initialise system trusted keyrings
[ 0.485074] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[ 0.492758] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.497715] Key type asymmetric registered
[ 0.497852] Asymmetric key parser ‘x509’ registered
[ 0.498116] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 2 50)
[ 0.498385] io scheduler noop registered
[ 0.498772] io scheduler cfq registered (default)
[ 0.501769] bcm2708_fb soc:fb: FB found 1 display(s)
[ 0.510746] Console: switching to colour frame buffer device 82x26
[ 0.517888] bcm2708_fb soc:fb: Registered framebuffer for display 0, size 656 x416
[ 0.522715] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[ 0.525880] bcm2835-rng 3f104000.rng: hwrng registered
[ 0.528294] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000 000(1024 MiB)
[ 0.532818] vc-sm: Videocore shared memory driver
[ 0.535306] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f2 00000
[ 0.548121] brd: module loaded
[ 0.555195] loop: module loaded
[ 0.557743] Loading iSCSI transport class v2.0-870.
[ 0.570455] spi-bcm2835 3f204000.spi: could not get clk: -517
[ 0.572951] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 0.602899] dwc_otg 3f980000.usb: base=(ptrval)
[ 0.805230] Core Release: 2.80a
[ 0.807241] Setting default values for core params
[ 0.809235] Finished setting default values for core params
[ 1.011420] Using Buffer DMA mode
[ 1.013340] Periodic Transfer Interrupt Enhancement - disabled
[ 1.015357] Multiprocessor Interrupt Enhancement - disabled
[ 1.017220] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 1.019144] Dedicated Tx FIFOs mode
[ 1.021344] WARN::dwc_otg_hcd_init:1045: FIQ DMA bounce buffers: virt = b3904 000 dma = 0xf3904000 len=9024
[ 1.024974] FIQ FSM acceleration enabled for :
[ 1.024974] Non-periodic Split Transactions
[ 1.024974] Periodic Split Transactions
[ 1.024974] High-Speed Isochronous Endpoints
[ 1.024974] Interrupt/Control Split Transaction hack enabled
[ 1.033946] WARN::hcd_init_fiq:457: FIQ on core 1
[ 1.035774] WARN::hcd_init_fiq:458: FIQ ASM at 8046500c length 36
[ 1.037697] WARN::hcd_init_fiq:497: MPHI regs_base at b4810000
[ 1.039493] dwc_otg 3f980000.usb: DWC OTG Controller
[ 1.041375] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[ 1.043243] dwc_otg 3f980000.usb: irq 56, io mem 0x00000000
[ 1.045140] Init: Port Power? op_state=1
[ 1.046861] Init: Power Port (0)
[ 1.048737] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bc dDevice= 4.19
[ 1.052160] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber= 1
[ 1.054101] usb usb1: Product: DWC OTG Controller
[ 1.055934] usb usb1: Manufacturer: Linux 4.19.75 dwc_otg_hcd
[ 1.057909] usb usb1: SerialNumber: 3f980000.usb
[ 1.060321] hub 1-0:1.0: USB hub found
[ 1.062327] hub 1-0:1.0: 1 port detected
[ 1.064849] usbcore: registered new interface driver cdc_acm
[ 1.066712] cdc_acm: USB Abstract Control Model driver for USB modems and ISD N adapters
[ 1.070553] usbcore: registered new interface driver usblp
[ 1.072696] usbcore: registered new interface driver cdc_wdm
[ 1.074685] usbcore: registered new interface driver usb-storage
[ 1.076713] usbcore: registered new interface driver usbserial_generic
[ 1.078608] usbserial: USB Serial support registered for generic
[ 1.080552] usbcore: registered new interface driver ch341
[ 1.082362] usbserial: USB Serial support registered for ch341-uart
[ 1.084218] usbcore: registered new interface driver cp210x
[ 1.085951] usbserial: USB Serial support registered for cp210x
[ 1.087822] usbcore: registered new interface driver ftdi_sio
[ 1.089595] usbserial: USB Serial support registered for FTDI USB Serial Devi ce
[ 1.091568] i2c /dev entries driver
[ 1.093870] Driver for 1-wire Dallas network protocol.
[ 1.096650] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[ 1.098766] bcm2835-cpufreq: min=600000 max=1200000
[ 1.101100] sdhci: Secure Digital Host Controller Interface driver
[ 1.102972] sdhci: Copyright© Pierre Ossman
[ 1.105248] mmc-bcm2835 3f300000.mmcnr: could not get clk, deferring probe
[ 1.107608] sdhost-bcm2835 3f202000.mmc: could not get clk, deferring probe
[ 1.109941] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.113503] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.115895] hidraw: raw HID events driver © Jiri Kosina
[ 1.118192] usbcore: registered new interface driver usbhid
[ 1.120391] usbhid: USB HID core driver
[ 1.122564] usbcore: registered new interface driver r8712u
[ 1.125427] vchiq: vchiq_init_state: slot_zero = (ptrval), is_master = 0
[ 1.128982] [vc_sm_connected_init]: start
[ 1.137596] [vc_sm_connected_init]: end - returning 0
[ 1.141225] NET: Registered protocol family 10
[ 1.144271] Segment Routing with IPv6
[ 1.146362] NET: Registered protocol family 17
[ 1.148577] Registering SWP/SWPB emulation handler
[ 1.151014] Loading compiled-in X.509 certificates
[ 1.153224] pstore: Using compression: deflate
[ 1.157017] uart-pl011 3f201000.serial: cts_event_workaround enabled
[ 1.159002] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 81, base_baud = 0) is a PL011 rev2
[ 2.194281] console [ttyAMA0] enabled
[ 2.203114] mmc-bcm2835 3f300000.mmcnr: mmc_debug:0 mmc_debug2:0
[ 2.211101] mmc-bcm2835 3f300000.mmcnr: DMA channel allocated
[ 2.244766] sdhost: log_buf @ (ptrval) (f3907000)
[ 2.267592] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 2.282392] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 2.291194] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 2.301311] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 2.311839] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[ 2.319172] of_cfs_init
[ 2.323340] of_cfs_init: OK
[ 2.328064] uart-pl011 3f201000.serial: no DMA platform data
[ 2.335605] Waiting for root device /dev/mmcblk0p2…
[ 2.339500] Indeed it is in host mode hprt0 = 00021501
[ 2.398848] random: fast init done
[ 2.413952] mmc0: host does not support reading read-only switch, assuming wr ite-enable
[ 2.431949] mmc0: new high speed SDHC card at address aaaa
[ 2.439897] mmcblk0: mmc0:aaaa SL32G 29.7 GiB
[ 2.450756] mmcblk0: p1 p2 p3
[ 2.469803] VFS: Mounted root (squashfs filesystem) readonly on device 179:2.
[ 2.474822] mmc1: new high speed SDIO card at address 0001
[ 2.489532] devtmpfs: mounted
[ 2.495827] Freeing unused kernel memory: 1024K
[ 2.502676] Run /sbin/init as init process
[ 2.572225] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 2.581014] Indeed it is in host mode hprt0 = 00001101
[ 2.822389] usb 1-1: New USB device found, idVendor=0424, idProduct=9514, bcd Device= 2.00
[ 2.834765] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.844810] hub 1-1:1.0: USB hub found
[ 2.850909] hub 1-1:1.0: 5 ports detected
[ 3.077612] EXT4-fs (mmcblk0p3): recovery complete
[ 3.088484] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. O pts:
[ 3.172209] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 3.312456] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00, b cdDevice= 2.00
[ 3.325220] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber =0
Erlang/OTP 22 [erts-10.5.6] [source] [smp:4:4] [ds:4:4:10] [async-threads:1]

Interactive Elixir (1.9.0) - press Ctrl+C to exit (type h() ENTER for help)

Initalizing available sources

                         Initalizing entropy source hwrng

                                                         Toolshed imported.                  Run h(Toolshed) for more info

iex(1)> libgcrypt not available. Disabling AES in JITTER source

                                                           Enabling JITTER rng support

                                                                                      Initali

                                                                                             t: kernel watchdog activated (interval 5s)

[ 18.062617] random: crng init done
[ 18.515759] smsc95xx v1.0.6
[ 18.615815] smsc95xx 1-1.1:1.0 eth0: register ‘smsc95xx’ at usb-3f980000.usb-1.1, smsc95xx USB
[ 18.632028] usbcore: registered new interface driver smsc95xx
[ 19.074072] vc_sm_cma: module is from the staging directory, the quality is unknown, you have
[ 19.090705] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[ 19.099656] [vc_sm_connected_init]: start
[ 19.106917] [vc_sm_connected_init]: installed successfully
[ 19.174937] media: Linux media interface: v0.10
[ 19.206845] videodev: Linux video capture interface: v2.00
[ 19.248032] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown,
[ 19.266033] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you ha
[ 20.334396] snd_bcm2835: module is from the staging directory, the quality is unknown, you hav
[ 20.354312] bcm2835_audio soc:audio: card created with 8 channels
[ 20.961039] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 20.995485] cfg80211: Loaded X.509 cert ‘sforshee: 00b28ddf47aef9cea7’
[ 21.057515] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/
[ 21.285375] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/
[ 21.313639] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: May 2 2019 02:39:18 vef
[ 21.651331] rpi-ft5406 rpi_ft5406: Probing device
[ 21.659654] input: FT5406 memory based driver as /devices/virtual/input/input0
dets: file “/root/farmbot-telemetry.dets” not properly closed, repairing …
LED STATUS: yellow off
LED STATUS: red slow_blink
LED STATUS: yellow slow_blink
warning: Error inserting log: error %Ecto.MultipleResultsError{message: "expected at most one resore.Log,\n where: l.hash == ^<<119, 171, 64, 51, 109, 36, 213, 157, 45, 250, 37, 100, 101, 27, 2
(ecto) lib/ecto/repo/queryable.ex:73: Ecto.Repo.Queryable.one/4
(farmbot_core) lib/farmbot_core/log_storage/logger.ex:65: FarmbotCore.Logger.insert_log!/1
(farmbot_core) lib/farmbot_core/log_storage/logger.ex:127: FarmbotCore.Logger.dispatch_log/1
(farmbot_core) lib/farmbot_core/asset_workers/farmware_installation_worker.ex:50: FarmbotCore.Ation.handle_info/2
(stdlib) gen_server.erl:637: :gen_server.try_dispatch/4
(stdlib) gen_server.erl:711: :gen_server.handle_msg/6
(stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3

warning: Error inserting log: error %Ecto.MultipleResultsError{message: "expected at most one resore.Log,\n where: l.hash == ^<<119, 171, 64, 51, 109, 36, 213, 157, 45, 250, 37, 100, 101, 27, 2
(ecto) lib/ecto/repo/queryable.ex:73: Ecto.Repo.Queryable.one/4
(farmbot_core) lib/farmbot_core/log_storage/logger.ex:65: FarmbotCore.Logger.insert_log!/1
(farmbot_core) lib/farmbot_core/log_storage/logger.ex:127: FarmbotCore.Logger.dispatch_log/1
(farmbot_core) lib/farmbot_core/asset_workers/farmware_installation_worker.ex:50: FarmbotCore.Ation.handle_info/2
(stdlib) gen_server.erl:637: :gen_server.try_dispatch/4
(stdlib) gen_server.erl:711: :gen_server.handle_msg/6
(stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3

warning: Error inserting log: error %Ecto.MultipleResultsError{message: "expected at most one resore.Log,\n where: l.hash == ^<<119, 171, 64, 51, 109, 36, 213, 157, 45, 250, 37, 100, 101, 27, 2
(ecto) lib/ecto/repo/queryable.ex:73: Ecto.Repo.Queryable.one/4
(farmbot_core) lib/farmbot_core/log_storage/logger.ex:65: FarmbotCore.Logger.insert_log!/1
(farmbot_core) lib/farmbot_core/log_storage/logger.ex:127: FarmbotCore.Logger.dispatch_log/1
(farmbot_core) lib/farmbot_core/asset_workers/farmware_installation_worker.ex:50: FarmbotCore.Ation.handle_info/2
(stdlib) gen_server.erl:637: :gen_server.try_dispatch/4
(stdlib) gen_server.erl:711: :gen_server.handle_msg/6
(stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3

warning: Error inserting log: error %Ecto.MultipleResultsError{message: "expected at most one resore.Log,\n where: l.hash == ^<<119, 171, 64, 51, 109, 36, 213, 157, 45, 250, 37, 100, 101, 27, 2
(ecto) lib/ecto/repo/queryable.ex:73: Ecto.Repo.Queryable.one/4
(farmbot_core) lib/farmbot_core/log_storage/logger.ex:65: FarmbotCore.Logger.insert_log!/1
(farmbot_core) lib/farmbot_core/log_storage/logger.ex:127: FarmbotCore.Logger.dispatch_log/1
(farmbot_core) lib/farmbot_core/asset_workers/farmware_installation_worker.ex:50: FarmbotCore.Ation.handle_info/2
(stdlib) gen_server.erl:637: :gen_server.try_dispatch/4
(stdlib) gen_server.erl:711: :gen_server.handle_msg/6
(stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3

warning: Error inserting log: error %Ecto.MultipleResultsError{message: "expected at most one resore.Log,\n where: l.hash == ^<<119, 171, 64, 51, 109, 36, 213, 157, 45, 250, 37, 100, 101, 27, 2
(ecto) lib/ecto/repo/queryable.ex:73: Ecto.Repo.Queryable.one/4
(farmbot_core) lib/farmbot_core/log_storage/logger.ex:65: FarmbotCore.Logger.insert_log!/1
(farmbot_core) lib/farmbot_core/log_storage/logger.ex:127: FarmbotCore.Logger.dispatch_log/1
(farmbot_core) lib/farmbot_core/asset_workers/farmware_installation_worker.ex:50: FarmbotCore.Ation.handle_info/2
(stdlib) gen_server.erl:637: :gen_server.try_dispatch/4
(stdlib) gen_server.erl:711: :gen_server.handle_msg/6
(stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3

warning: Error inserting log: error %Ecto.MultipleResultsError{message: "expected at most one resore.Log,\n where: l.hash == ^<<119, 171, 64, 51, 109, 36, 213, 157, 45, 250, 37, 100, 101, 27, 2
(ecto) lib/ecto/repo/queryable.ex:73: Ecto.Repo.Queryable.one/4
(farmbot_core) lib/farmbot_core/log_storage/logger.ex:65: FarmbotCore.Logger.insert_log!/1
(farmbot_core) lib/farmbot_core/log_storage/logger.ex:127: FarmbotCore.Logger.dispatch_log/1
(farmbot_core) lib/farmbot_core/asset_workers/farmware_installation_worker.ex:50: FarmbotCore.Ation.handle_info/2
(stdlib) gen_server.erl:637: :gen_server.try_dispatch/4
(stdlib) gen_server.erl:711: :gen_server.handle_msg/6
(stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3

Expression ‘alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )’, line: 923
Expression ‘alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrlinux_alsa.c’, line: 923
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALnown PCM cards.pcm.surround21
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.su
pdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM ca
m_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unkn
64:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2564:(snd_pcm_open_noup
m.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2564:(snd_pcm_open_no
n ‘alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )’ failed 923
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.pcm.dmix.channel
function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5036:(snd_confir directory
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM dmix
[ 45.602491] IPv6: ADDRC
[ 45.611341] brcmfmac: power management disabled
[ 48.093772] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
LED STATUS: blue off
LED STATUS: green really_fast_blink
warning: deprecated time unit: :microseconds. A time unit should be :second, :millisecond, :micro
(ecto) lib/ecto/schema.ex:1418: Ecto.Schema.timestamps/2
(ecto) lib/ecto/repo/schema.ex:754: anonymous fn/3 in Ecto.Repo.Schema.autogenerate_changes/3
(elixir) lib/enum.ex:1948: Enum."-reduce/3-lists^foldl/2-0-"/3
(ecto) lib/ecto/repo/schema.ex:752: Ecto.Repo.Schema.autogenerate_changes/3

warning: deprecated time unit: :microseconds. A time unit should be :second, :millisecond, :micro
(elixir) lib/calendar/iso.ex:755: Calendar.ISO.from_unix/2
(elixir) lib/calendar/datetime.ex:118: DateTime.from_unix/3
(elixir) lib/calendar/datetime.ex:169: DateTime.from_unix!/3
(ecto) lib/ecto/repo/schema.ex:754: anonymous fn/3 in Ecto.Repo.Schema.autogenerate_changes/3

warning: deprecated time unit: :microseconds. A time unit should be :second, :millisecond, :micro
(elixir) lib/calendar/iso.ex:769: Calendar.ISO.precision_for_unit/1
(elixir) lib/calendar/iso.ex:760: Calendar.ISO.from_unix/2
(elixir) lib/calendar/datetime.ex:118: DateTime.from_unix/3
(elixir) lib/calendar/datetime.ex:169: DateTime.from_unix!/3

LED STATUS: blue solid
LED STATUS: green solid
LED STATUS: green really_fast_blink
LED STATUS: green solid
LED STATUS: green really_fast_blink
LED STATUS: green solid
LED STATUS: green really_fast_blink
LED STATUS: green solid
LED STATUS: green really_fast_blink
LED STATUS: green solid
LED STATUS: green really_fast_blink
LED STATUS: green solid
LED STATUS: green really_fast_blink
LED STATUS: green solid
LED STATUS: green really_fast_blink
LED STATUS: green solid
LED STATUS: green really_fast_blink
LED STATUS: green solid
LED STATUS: green really_fast_blink
LED STATUS: green solid
LED STATUS: green really_fast_blink
LED STATUS: green solid
LED STATUS: green really_fast_blink
LED STATUS: green solid
LED STATUS: green really_fast_blink
LED STATUS: green solid
LED STATUS: green really_fast_blink
LED STATUS: green solid
LED STATUS: green really_fast_blink
LED STATUS: green solid
LED STATUS: green really_fast_blink
LED STATUS: green solid
LED STATUS: green really_fast_blink
LED STATUS: green solid
LED STATUS: green really_fast_blink
LED STATUS: green solid
LED STATUS: green really_fast_blink
LED STATUS: blue solid
LED STATUS: green solid
LED STATUS: green really_fast_blink
LED STATUS: green solid
LED STATUS: green really_fast_blink
LED STATUS: green solid
LED STATUS: blue solid
[ 1479.757081] smsc95xx 1-1.1:1.0 eth0: hardware isn’t capable of remote wakeup
[ 1479.767373] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

Additional Information
There’s some corrosion-looking residue on the backside of my RPi (see attached image

). The upper right corner of the image is where the RJ45 PHY is mounted. Any thoughts to the corrosion? Is it due to ‘sweating’ in cold weather? I noticed that RPi’s aren’t exactly conformal coated…

Yes, the IEx shell running on the Serial Console has already done a use Toolshed before prompting.
Type

h Toolshed

to see Toolshed’s repertoire. To execute Linux command-line stuff, I use cmd , e.g.

iex(farmbot@farmbot-00000000b7305e34.local)3> cmd 'ip addr'
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether b8:27:eb:30:5e:34 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.120/24 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 2001:8003:d91e:5800:ba27:ebff:fe30:5e34/64 scope global dynamic
       valid_lft 76094sec preferred_lft 76094sec
    inet6 fe80::ba27:ebff:fe30:5e34/64 scope link
       valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
    link/ether b8:27:eb:65:0b:61 brd ff:ff:ff:ff:ff:ff
0
iex(farmbot@farmbot-00000000b7305e34.local)4> cmd 'cat /proc/91/environ'
HOME=/rootTERM=vt100PATH=/usr/lib/erlang/erts-10.7.2.1/bin:/srv/erlang/bin:/usr/sbin:/usr/bin:/sbin:/binROOTDIR=/srv/erlangBINDIR=/usr/lib/erlang/erts-10.7.2.1/binEMU=beamPROGNAME=erlexecLANG=en_US.UTF-8LANGUAGE=enERL_INETRC=/etc/erl_inetrcERL_CRASH_DUMP=/root/crash.dumpPA_ALSA_PLUGHW=1HEART_BEAT_TIMEOUT=300
iex(farmbot@farmbot-00000000b7305e34.local)5>

etc., etc.

1 Like

@fuzzynickel Have you tried cleaning the traces with isopropyl alcohol or possibly swapping the RPi out with a newer one to see if corrosion is the issue?

As mentioned by @jsimmonds the replacement must be a model 3, as we don’t support v4 RPi (requires a different buildroot system) so the replacement board needs to be a Pi 3.

1 Like

I tried cleaning the traces today, and to no noticeable effect. I ordered another RPi 3B+ just now and should be able to give it another go either Wednesday or Thursday.

@jsimmonds Thanks for the Toolshed tip! I was not able to type any commands in the PuTTy window but was able to get the system and debug readouts (perhaps the TX line was also corroded at the GPIO through-hole? maybe a bad cable?). The Toolshed did work just as well in the SSH terminal, as I expected it would. I’ll try the TTL UART again when the new RPi arrives.

Good news. New RPi arrived and is behaving as expected: link lights and DHCP!! The first RPi was acquired during the early V1.1 ‘spider box’ days when the electronics box wasn’t as sealed as the more recent versions. Something tells me the southeastern US humidity took its toll on the poor thing. I’m going to order some silicone conformal coat spray to help protect this one. I don’t think I want buying a new RPi to part of seasonal maintenance :smile:. Thanks @jsimmonds and @RickCarlino for the excellent support!

Final question, and this could head to a new post: I still can’t get PuTTy to send commands to the TTL interface. Any ideas as to what I’m missing? RX is fine. TX is not. I’ve triple-checked the GPIO pinout (6 for ground, 8 for TX, 10 for RX) and matched them correctly to the cable.

1 Like

As Sherlock Holmes was authored to say :
“When you have eliminated all which is impossible, then whatever remains , however improbable, must be the truth .”

I.e. I must doubt that the TTL-USB converter is working.

1 Like

Update for the curious. RPi has been conformal coated with some 422B Silicone. I went with the brushed version over the spray so that I didn’t have to fiddle with complicated masking. FB is up and running now on ethernet in the back yard!

2 Likes