Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic in libcore #1

Open
crockpotveggies opened this issue Jan 30, 2020 · 2 comments
Open

Panic in libcore #1

crockpotveggies opened this issue Jan 30, 2020 · 2 comments

Comments

@crockpotveggies
Copy link

First let me say this is one of the most fun LoRa and Rust projects I've come across yet on the web :)

I'm running two LoStiks at close range with each other. One is on an Ubuntu Intel machine, the other on a raspberry pi. I'm using lorapipe over AX.25 and starting them using:

sudo socat /dev/pts/3,rawer EXEC:'./lorapipe-initfile=../../init-fast.txt --txslot 2000 --pack --debug --maxpacketsize 200 --txwait 150 --readqual /dev/ttyUSB0 kiss,pty,rawer'

Once I run both nodes and try an iperf speed test, my Ubuntu machine consistently crashes with:

thread '<unnamed>' panicked at 'Failure in readerthread: Custom { kind: Other, error: "Unexpected response: got -32, expected ok" }', src/libcore/result.rs:1165:5

Not sure what this is? The radio stops transmitting though and I have to restart the application.

@crockpotveggies
Copy link
Author

crockpotveggies commented Jan 30, 2020

Looks like this is coming from ser.rs, happens when --readqual flag is passed:

06:48:24 [TRACE] (2) lorapipe::ser: [src/ser.rs:65] "/dev/ttyUSB0" SERIN: -38

@jgoerzen
Copy link
Owner

Please run with RUST_BACKTRACE=1 and --debug so we can see where the issue is occurring. It sounds like there may be an issue with the framing with the modem.

I highly doubt that iperf is going to be useful here, by the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants