Port not open?

I'm going through the emoncms Raspberry Pi installation guide to ensure that it's up to date (it's not!) and editing changes to the guide for the project owners to consider implementing.

I've hit a problem, everything appears to work well until I attach the RFM69Pi (RF add-on board) to my Raspberry Pi v2.

When I do, I can still access the emoncms UI, but can't get an SSH connection, and the emonhub log records:

2015-09-01 22:35:07,788 INFO Opening hub...
2015-09-01 22:35:07,790 INFO Logging level set to DEBUG
2015-09-01 22:35:07,791 INFO Creating EmonHubEmoncmsReporter 'emonCMS'
2015-09-01 22:35:07,794 INFO Set up reporter 'emonCMS' (buffer: memory | size: 1000)
2015-09-01 22:35:07,796 INFO Setting emonCMS url: http://192.168.1.10/emoncms
2015-09-01 22:35:07,797 INFO Setting emonCMS apikey: set
2015-09-01 22:35:07,799 INFO Creating EmonHubJeeInterfacer 'RFM2Pi'
2015-09-01 22:35:07,802 DEBUG Opening serial port: /dev/ttyAMA0 @ 38400 bits/s
2015-09-01 22:35:09,807 DEBUG Opening serial port: /dev/ttyAMA0 @ 9600 bits/s
2015-09-01 22:35:11,811 ERROR Unable to create 'RFM2Pi' interfacer: Attempting to use a port that is not open

Any ideas?

Paul

pb66's picture

Re: Port not open?

If adding the rfm69pi is affecting ssh I suspect the serial console hasn't been freed up by editing cmdline.txt and inittab (or not restarted since editing).

Just to be sure it is not an auto-baud selection glitch you could add "com_baud = 38400" to the rfm2pi init_settings in emonhub.conf.

Paul

Paul Reed's picture

Re: Port not open?

Thanks Paul

An error in cmdline.txt caused by sloppy copy/paste!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.