Unable to Communicate with Node Via Meshtastic CLI #37
Replies: 3 comments 2 replies
-
I see that I was using -s instead of --port, here's a corrected command and output:
|
Beta Was this translation helpful? Give feedback.
-
From the error messages you never got actually connected. Check @kop316 suggestion. An other simple one is the connecting cable. Try to change the USB cable. did you use the same cable? Also try to run as root. Then you can check what you see with "lsusb" commands. Let us know how it goes. A+ |
Beta Was this translation helpful? Give feedback.
-
Thanks for your responses! My apologies for the delay in responding as I've been away. lsusb output: second to last device is our guy. I've run this as root as well as as user, the issue exists across two devices I'm administering with void being the common denominator between meshtastic CLI not functioning. Here's user groups: Meshtastic CLI functions fine with the same node and cable via a Raspbian based machine. which makes me almost certain this portion of physicals is fine. also I'll mention again that the esptool flashes firmware onto the nodes just fine. via the affected systems. and it's only the meshtastic CLI itself that for whatever reason fails to communicate through /dev/ttyACM0 and seemingly only via serial. tcp connections seem to function perfectly fine. (not able to confirm bluetooth) now that it's been some time I'll try to update software and my python environments and see if this didn't work itself out in the software repositories. My suspicion is that it's something on the python or kernel side of the equation (I almost always find a way to absolutely destroy my python libs anyways) I did run strace here back after I initially posted here. and recall noting that it seemed to be calling the expected kernel modules...(comparing the output of the nonfunctional voidlinux meshtastic environment, VS the functioning raspbian meshtastic environment) I didn't record my results as this is over my head, but I'm wanting to say that it seemed that it was not recieving the same responses after prompting the serial device. so maybe there's some kernel compatibility issues here (a shot in the dark though as I'm no source of knowledge on this topic or voidlinux for that matter.) Man I thought I had already posted this... oh well, Might was well update this comment: Go figure... after getting my software updated (xbps-install -Su) and getting a new VENV setup: uname -a (meshtastic-venv) [USER@HOSTNAME bin]$ meshtastic --port /dev/ttyACM0 --info Owner: XXXXXXXXXXXXXXX seems to be working fine :/ Either the void team fixed it or ya'll did... I still don't really know what was actually breaking it. But I'll take the win. (it will eat at my soul eternally not knowing what was actually broken) The other machine should still have it's python environment and I may try to figure out what specifically it was as long as the owner hasn't messed with any of that since we were working on it last. Thanks for the follow up. and I'll try to let you know if I can narrow down what specifically corrected this behavior. |
Beta Was this translation helpful? Give feedback.
-
I hope I'm posting in the correct location. Having some trouble using the python CLI on a linux machine.
Linux Distro: Void Linux
I've never had issues with this on Debian based distro's. Any who, esptool is able to communicate and successfully flashes firmware just fine via usb/serial "/dev/ttyACM0"
However meshtastic refuses to connect to the USB serial connection. I've tried various methods to communicate with the node. It does seem to work via hostname/IP , but not via serial.
exact same when I run "meshtastic -s /dev/ttyACM0 --info"
however when I run: "meshtastic --noproto"
I seem to get output:
it does seem to be a little less busy than I've seen on these devices before, But I'm not certain if that's just because there's not much network activity at the moment.
Here's the output of "meshtastic --support"
and this behavior doesn't seem to change between the two nodes I've been able to test with:
lilygo tlora v2.1-1.6
heltec v3
The only real difference I can see between this and my raspberry pi is the python version: (pi is 3.11.2) and the CPython GCC (pi's is 12.2.0)
I'm hoping someone has some direction for me. My apologies if I'm not in the right place here. I just figured posting an "issue" would place blame on the code here, which I'm really not confident is the problem here. Being new to this distribution (and loving it so far), I'm sure it's possible Ive messed something up here.
Thank you in advanced.
Beta Was this translation helpful? Give feedback.
All reactions