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

Frequent connection losts with homeduino after upgrade raspbian #645

Closed
edautz opened this issue Apr 28, 2015 · 6 comments
Closed

Frequent connection losts with homeduino after upgrade raspbian #645

edautz opened this issue Apr 28, 2015 · 6 comments

Comments

@edautz
Copy link

edautz commented Apr 28, 2015

I am using a rpi with a USB stick for storage after my SD card went bad.

Sometimes I lost connection to homeduino. I had to restart pimatic (0.8.66, homeduino 0.8.50) to get things working again.

After upgrading Raspbian from

Linux raspberrypi 3.12.28+ #709 to Linux raspberrypi 3.18.7+ #755 and update homeduino to 0.8.51, this problem occurred three times this night.

015-04-28 05:30:58warn [pimatic-homeduino]: Couldn't connect (operation timed out), retrying...
03:30:13warn [pimatic-homeduino]: Couldn't connect (operation timed out), retrying...
01:29:31warn [pimatic-homeduino]: Couldn't connect (operation timed out), retrying.

Debug data from the first time:

01:54:52debug [pimatic-homeduino]: data: "PING"
01:49:52debug [pimatic-homeduino]: data: "PING"
01:44:52debug [pimatic-homeduino]: data: "PING"
01:39:52debug [pimatic-homeduino]: data: "PING"
01:34:52debug [pimatic-homeduino]: data: "PING"
01:29:32debug [pimatic-homeduino]: data: "PING"
01:29:32debug [pimatic-homeduino]: data: "ready"
01:29:31debug [pimatic-homeduino]: data: "PING"
01:29:31warn [pimatic-homeduino]: Couldn't connect (operation timed out), retrying...
01:24:02debug [pimatic-homeduino]: data: "ACK 20.4 50.8"
01:19:02debug [pimatic-homeduino]: data: "ACK 20.4 50.9"
01:14:02debug [pimatic-homeduino]: data: "ACK 20.4 50.9"
01:09:02debug [pimatic-homeduino]: data: "ACK 20.5 51.1"

@leader21
Copy link
Contributor

First of all I would suggest not to use an USB stick. It's the same technology as sd cards with flash memory. If using am external storage go for a USB hdd or flash disk.

Regarding your above issue, can you tell us what serial chip your arduino has? ftdi or ch340?
did you restore a full backup with the older Linux kernel 3.12 and still working on that version or did you update now to 3.18?

@edautz
Copy link
Author

edautz commented Apr 28, 2015

The chip on the Nano has the following text printing on it:
Atmel Mega328P AU 1435.

I have updated my kernel to Linux raspberrypi 3.18.7+ #755

@edautz
Copy link
Author

edautz commented Apr 28, 2015

I found in my syslog files:

Apr 27 22:05:52 raspberrypi kernel: [ 11.377624] ch341 1-1.3:1.0: ch341-uart converter detected

@edautz
Copy link
Author

edautz commented May 22, 2015

Tried several things:
Other powersupplies
Several updates of Raspbian
Latest Homeduino sketch

But nothing worked. At the end error homeduino connection lost, occured almost every 2 hours constantly.

Reverted to old kernel 3.12.28.Had to delete the Sqllite database otherwise pimatic wouldn't start. Database of 200 Gb.

Now everything runs flawless for 4 days now.

@sweetpi
Copy link
Contributor

sweetpi commented May 22, 2015

@edautz Thanks for the feedback and problem solution. Damn trouble with the new kernels.

@edautz
Copy link
Author

edautz commented Aug 3, 2017

Updated RPI B+ to RPi3, Pimatic 0.9 and al the software upgrade that go aling with it. This issue isn't relevant anymore.

@edautz edautz closed this as completed Aug 3, 2017
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

3 participants