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

getting "WARNING: No response from station" when running on RaspberryPi 4 (64 bit OS) #10

Open
saveriogzz opened this issue Sep 29, 2021 · 13 comments

Comments

@saveriogzz
Copy link
Contributor

saveriogzz commented Sep 29, 2021

I am getting this warning from

Sep 29, 2021 5:21:10 PM se.technipelago.weather.vantagepro.DownloadController execute
WARNING: No response from station

and it seems then be stuck.

When running the application on the raspberry pi. So far when running it on my laptop it has been working.. strange!

@goeh
Copy link
Owner

goeh commented Sep 29, 2021

I tested on two Raspberry Pi 3. I still haven't had time to setup a RP4.
Did you enable full debug logging (see README.md) so you can see the communication?

@saveriogzz
Copy link
Contributor Author

Yes I did

I just run it again and this are the logs:

Sep 29, 2021 6:02:07 PM se.technipelago.weather.vantagepro.DownloadController run
SEVERE: null
java.io.IOException: Unexpected EOF
	at se.technipelago.weather.vantagepro.AbstractController.readBytes(AbstractController.java:146)
	at se.technipelago.weather.vantagepro.AbstractController.download(AbstractController.java:349)
	at se.technipelago.weather.vantagepro.DownloadController.downloadAndSave(DownloadController.java:261)
	at se.technipelago.weather.vantagepro.DownloadController.execute(DownloadController.java:158)
	at se.technipelago.weather.vantagepro.DownloadController.run(DownloadController.java:74)
	at se.technipelago.weather.vantagepro.AbstractController.startLocal(AbstractController.java:99)
	at se.technipelago.weather.vantagepro.DownloadController.main(DownloadController.java:59)

it's stuck here and I cannot kill the process

@goeh
Copy link
Owner

goeh commented Sep 29, 2021

Sounds like some kind of USB/serial communication problem. It tries to read from /dev/ttyUSB0 but no data arrives.

@saveriogzz
Copy link
Contributor Author

I already used all the 4 Pi's ports

@saveriogzz
Copy link
Contributor Author

I will try to use a RPi3 tomorrow and see if it's different

@saveriogzz
Copy link
Contributor Author

Good news: on a RaspberryPi 3A+ it works!
Bad news: my project will most likely require to work on RPi4

@saveriogzz saveriogzz changed the title getting "WARNING: No response from station" when running on RaspberryPi getting "WARNING: No response from station" when running on RaspberryPi 4 Oct 4, 2021
@goeh
Copy link
Owner

goeh commented Oct 4, 2021

Ok, thats good to know.
I'm in a very busy period right now. I did one big software release this weekend and another coming up on Wednesday. After that I can hopefully breathe and look at your PRs and investigate on my Raspberry Pi 4. I'm sorry I've been offline for a while.

@saveriogzz
Copy link
Contributor Author

No worries of course! I just text here to keep track of progress!

@goeh
Copy link
Owner

goeh commented Oct 9, 2021

Today I made a lots of refactoring and testing on Raspberry Pi 3 and MariaDB. I now feel confident it works ok.
Next week I will test on Raspberry Pi 4 and see how that works in my setup.

@goeh
Copy link
Owner

goeh commented Oct 10, 2021

I've successfully tested the system on a Raspberry Pi 4 with Raspberry Pi OS Lite (Release date: May 7th 2021).
No problem at all. So maybe this issue is related to Ubuntu.

@saveriogzz
Copy link
Contributor Author

Hey @goeh , thanks for give it a try! The Ubuntu I tried the program with was a 64bit version, maybe that's the issue.

@goeh
Copy link
Owner

goeh commented Oct 11, 2021

Yes, I think this issue is related to 64-bit OS. My test on Raspberry Pi 4 was with Raspberry Pi OS 32-bit.
I don't know where the problem is, but the se.technipelago.weather.vantagepro package contain some bit/byte operations that needs to be verified. We also needs to verify that jssc supports arm64.
I have a busy week ahead again, and won't be able to work on this until the weekend.

@saveriogzz
Copy link
Contributor Author

Thanks, Goran! No worries, I'm also pretty busy this week.
We can leave this open and work on it when a quieter time comes since using a 32bit OS doesn't seem too limiting at the moment :)

@goeh goeh changed the title getting "WARNING: No response from station" when running on RaspberryPi 4 getting "WARNING: No response from station" when running on RaspberryPi 4 (64 bit OS) Oct 11, 2021
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