Apologies in advance if I missed the answer when searching the forum or messed something up. Playing with base station for the first time after buying it a while ago and never getting around to it. I spend my work life at a linux prompt (not a linux admin tho) but this is my first foray into these devices and I don't use my Pi all that often.
Brand new standard NOOBS install of Raspbian on a Pi 2. Followed the directions/docs on how to set up for everything, and success, got the base station to respond to HELLO ... but only once after each power cycle of the Pi.
- It typically will respond once, and only after a hard power reset (shutdown -r doesn't fix it). Rarely I've seen it respond twice, and once three times, but always it goes into permanent no-response after that.
- The only thing I could think of was poor power to the Pi, have dealt with that in the past, so I grabbed some python to monitor the power status/led status and it's fine, never dips below the acceptable limit. No yellow lightning bolt either. Not much plugged into the Pi, just hdmi, ethernet, and the board (sshing in from another machine so no keyboard/mouse).
- I edited the rf_config.py to increase the timeout and print a few more things ... no luck no matter how long I make it wait on ser.inWaiting.
What else should I check before it would be fair to decide the base unit might be at fault? How do I know it's not the Pi? I can write python / grab other libraries and stitch things together if there's something else I can monitor to see what exactly is going on. Thinking there might be another way to query the board with "are you alive?" Or maybe HELLO is the most basic check. Also curious how to see if the Pi's handling of GPIO is still happy, or if it's something in that area. I just don't know what direction to go next to diagnose root cause. Hoping someone has some ideas. Happy to RTFM if you link me. Or maybe you can tell me if this is enough "wonky" behavior to be worth asking for support directly from the maker/seller.
Example (with unmodified rf_config.py):
pi@raspberrypi:/opt/rf_tools $ while [[ 1 = 1 ]];do sleep 5; python rf_config.py 01 HELLO; done
sending : a01HELLO
response is : a01HELLO----
sending : a01HELLO
sending : a01HELLO
sending : a01HELLO
sending : a01HELLO
sending : a01HELLO
sending : a01HELLO
sending : a01HELLO
sending : a01HELLO
sending : a01HELLO
sending : a01HELLO
sending : a01HELLO
sending : a01HELLO
... etc ... this will stay consistent for a long time, never works again.
from /var/log/syslog during startup (not while running the HELLO test) -- there's a pause before systemd reports it's done with startup, and when it's done pausing this is what is written immediately (then typical done-startup msgs).
Feb 24 19:03:33 raspberrypi systemd[1]: dev-serial1.device: Job dev-serial1.device/start timed out.
Feb 24 19:03:33 raspberrypi systemd[1]: Timed out waiting for device dev-serial1.device.
Feb 24 19:03:33 raspberrypi systemd[1]: Dependency failed for Configure Bluetooth Modems connected by UART.
Feb 24 19:03:33 raspberrypi systemd[1]: hciuart.service: Job hciuart.service/start failed with result 'dependency'.
Feb 24 19:03:33 raspberrypi systemd[1]: dev-serial1.device: Job dev-serial1.device/start failed with result 'timeout'.
Keep in mind it works (once) after this, this is part of the startup messages in syslog.
Bluetooth made me think ... hrm, docs said to disable bluetooth on a Pi 3 ... this is a Pi 2, but ok, why not. So I tried adding dtoverlay=pi3-disable-bt to the /boot/config.txt and it didn't help.
This is written to syslog exactly once when I run the rf_config.py script, even if it works 2 or 3 times before it stops working:
Feb 24 19:06:31 raspberrypi kernel: [ 270.369065] uart-pl011 3f201000.serial: no DMA platform data
During startup it has this to say about uart-pl011, in case that means anything:
Feb 24 19:01:37 raspberrypi kernel: [ 1.138291] uart-pl011 3f201000.serial: cts_event_workaround enabled
Feb 24 19:01:37 raspberrypi kernel: [ 1.145908] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
Google tells me that UART1 doesn't have DMA support so probably a red herring. it's just all I can find in logs.
Thanks very much!
Tyler