Saturday, 6 April 2013

Progress At Last

I was finally able to devote a little time to the project, and I'm pleased to report that just a few minutes on the internet came up with a small tweak which some users reported had resolved their lockup problems.

So I added the magic incantation 
dwc_otg.speed=1
into the configuration file /boot/cmdline.txt and things are looking a lot better.

The up time is over four days at the time of writing, which is a lot better than it achieved before and I am currently letting Polly-Pi take over live control periodically, when a crash wouldn't be too inconvenient.

Now it's a bit early to be getting excited, all the previous incarnations of Polly have a total score of one crash in almost twenty years of continuous running, so four days hardly proves anything, but we'll see . . .

Update 09 April:  Still going strong. . .

Friday, 1 February 2013

Serial Port Woes

The project to move the server to run on a Raspberry Pi has ground to a halt.  I need two serial ports, one for collecting CLI information from the phone line, and more importantly, one for PICNET.  Using USB-Serial adaptors I have been experiencing lockups and crashes, there would appear to be a problem somewhere in the USB driver stack.  I have tried various models of USB adaptor but so far they all seem to experience the same problem.

Unfortunately I have been busy with other activities so I haven't been able to investigate in greater depth yet.  So far I've determined that my server software continues to run after these lockups, recording in its log file that the PICNET network has gone down and also recording loss of communications to the display client and all the ETHPIC nodes.  (The ethernet port on the Pi hangs off the USB system.)   So it would appear that the USB system has locked up in some way.

As a quick test I set up a level shifter for the on-board serial port and used that for PICNET and it worked fine.  I added a USB Serial adaptor, but didn't tell the Polly server to use it, and still there were no problems and a test run of ten days was completed.  Finally, without rebooting or changing anything else I configured the CLI function in the server software to use the USB adaptor, and within a few hours everything was locked up again, despite the fact that there had been no phone calls so presumably no serial data to transfer.  This same configuration - "real" serial port for PICNET and USB adaptor for CLI has been used on the previous server PC for years without difficulties.

So I think it's time to trawl the internet to see if anyone else is having problems.

Saturday, 29 December 2012

Welcome To Polly-Pi

Welcome to Polly-Pi, where I intend to document the home automation system running in my house.  The site is still very much under construction, so please bear with me.