I have an EmonTX running to a Raspberry pi. This seems to be working Ok.
On my PC I have XAMPP running and the Emoncms on localhost.
I also become the input and feeds now.
Problem is that after 30 seconds the update time counters running further but change from green in red.
On the vis screen I can’t get any graphics shown. I assume that the feeds don’t become in to the database.
Has anyone some suggestion for me?
Re: feeds stops after 30 seconds
I assume your are using this for electricity monitoring?
When you say the update time counter changes from green to red. Does the number continue to increase? Or does it eventually change back to start from zero again?
Can you see the data on the RaspberryPI?
Take a look at the troubleshooting part of this page
http://emoncms.org/site/docs/raspberrypigateway
if you follow those instructions how long is there between data packets ( look for the Info Serial Rx lines (like the bottom one of the image on that page))
What software/script are you running on the Raspberry PI inorder to send the data to your WAMP server?
Re: feeds stops after 30 seconds
Many thanks for your replay. To your questions,
I assume your are using this for electricity monitoring? Yes, now EmonTX
When you say the update time counter changes from green to red. Does the number continue to increase? Or does it eventually change back to start from zero again?
The time counter is running further.
Can you see the data on the RaspberryPI? Take a look at the troubleshooting part of this page
http://emoncms.org/site/docs/raspberrypigateway if you follow those instructions how long is there between data packets ( look for the Info Serial Rx lines (like the bottom one of the image on that page))
Good question, I see this is 5 minutes.
What software/script are you running on the Raspberry PI inorder to send the data to your WAMP server?
The Rock Solid Gateway Forwarder script. On the PC the Emoncms-6.9
root@oemgateway:~# python /root/oem_gateway/oemgateway.py --config-file /boot/oemgateway.conf
2014-02-14 23:27:56,718 INFO Logging level set to DEBUG
2014-02-14 23:27:56,721 INFO Opening gateway...
2014-02-14 23:27:56,725 INFO Creating buffer emoncms_local
2014-02-14 23:27:56,729 INFO Creating buffer emoncms_remote
2014-02-14 23:27:56,734 INFO Creating listener RFM2Pi
2014-02-14 23:27:56,738 DEBUG Opening serial port: /dev/ttyAMA0
2014-02-14 23:27:56,743 INFO Setting send time interval to 300
2014-02-14 23:27:56,747 INFO Setting RFM2Pi | frequency: 8
2014-02-14 23:27:57,753 INFO Setting RFM2Pi | sgroup: 210
2014-02-14 23:27:58,757 INFO Setting RFM2Pi | baseid: 15
2014-02-14 23:27:59,762 INFO Creating listener Socket
2014-02-14 23:27:59,765 DEBUG Opening socket on port 50011
2014-02-14 23:27:59,791 DEBUG Broadcasting time: 23:27
2014-02-14 23:27:59,796 INFO Serial RX: > 8b
2014-02-14 23:28:00,001 INFO Serial RX:
2014-02-14 23:28:00,004 WARNING Misformed RX frame: ['\x01']
2014-02-14 23:28:00,210 INFO Serial RX: > 210g
2014-02-14 23:28:00,415 INFO Serial RX:
2014-02-14 23:28:00,418 WARNING Misformed RX frame: ['\x01']
2014-02-14 23:28:00,624 INFO Serial RX: > 15i
2014-02-14 23:28:00,848 INFO Serial RX:
2014-02-14 23:28:00,852 WARNING Misformed RX frame: ['\x01']
2014-02-14 23:28:01,057 INFO Serial RX: > 0s
2014-02-14 23:28:01,263 INFO Serial RX: -> 4 b
2014-02-14 23:32:59,961 DEBUG Broadcasting time: 23:32
2014-02-14 23:33:00,167 INFO Serial RX: > 0s
2014-02-14 23:33:00,393 INFO Serial RX: -> 4 b
2014-02-14 23:38:00,096 DEBUG Broadcasting time: 23:38
2014-02-14 23:38:00,302 INFO Serial RX: > 0s
2014-02-14 23:38:00,508 INFO Serial RX: -> 4 b
What wonders me is that I don’t see the debug lines like are shown in the screen.
On other thin that wonders is that when I put in python/root/oem_gateway/oemgateway.py --config-file /boot/oemgateway.conf --logfile /root/oem_gateway/oemgateway.log
I become the message No such file or directory
Re: feeds stops after 30 seconds
OK, so your RFM12Pi isn't receiving any data from your EmonTX.
You need to check what data radio setting you have on your emontx and make sure they work with the setting on your RFM12Pi
Re: feeds stops after 30 seconds
Many thanks for helping me.
Checking the EmonTX by Arduino serial monitor I get the info;
emonTX CT123 example
OpenEnergyMonitor.org
Node 14, Freq 868, Network 210
53 54 53 3342
3 3 1 3342
3 3 1 3342
3 3 1 3342
3 3 1 3342
3 3 1 3342
By Putty I get from the raspberry
2014-02-15 15:46:33,184 INFO Logging level set to DEBUG
2014-02-15 15:46:33,188 INFO Opening gateway...
2014-02-15 15:46:33,191 INFO Creating buffer emoncms_local
2014-02-15 15:46:33,196 INFO Creating buffer emoncms_remote
2014-02-15 15:46:33,200 INFO Creating listener RFM2Pi
2014-02-15 15:46:33,204 DEBUG Opening serial port: /dev/ttyAMA0
2014-02-15 15:46:33,209 INFO Setting send time interval to 30
2014-02-15 15:46:33,213 INFO Setting RFM2Pi | frequency: 8
2014-02-15 15:46:34,219 INFO Setting RFM2Pi | sgroup: 210
2014-02-15 15:46:35,223 INFO Setting RFM2Pi | baseid: 15
2014-02-15 15:46:36,228 INFO Creating listener Socket
2014-02-15 15:46:36,231 DEBUG Opening socket on port 50011
2014-02-15 15:46:36,235 ERROR [Errno 98] Address already in use
2014-02-15 15:46:36,239 ERROR Could not open port 50011
2014-02-15 15:46:36,264 DEBUG Broadcasting time: 15:46
2014-02-15 15:46:36,470 INFO Serial RX: -> 4 b
2014-02-15 15:47:05,791 INFO Serial RX: > 0s
2014-02-15 15:47:06,419 DEBUG Broadcasting time: 15:47
2014-02-15 15:47:06,625 INFO Serial RX: -> 4 b
Everytime I activate the line Assign inputs to a node group on the input help screen the timecouters starting in green from zero but getting red afters 30 seconds.
Is it so that on the on the input screen the node have the same ID as from the EmonTX board?
Can there be more than one EmonTX board used at the same time?
Re: feeds stops after 30 seconds
Lets try to take this a step at a time...
The outputs from your raspberrypi doesn't show any data coming from your EmonTX so
You don't say what version of the EmonTX you have. Is it version 2 or version 3 ( images in the shop if you can't remember), How many clamps are you using?
Your EmonTX, are they the figures you see with the emonTX installed? As the data "3 3 1 3342" doesn't show you suing any power. Make sure you have pushed the clamps all the way in until they click.
Re: feeds stops after 30 seconds
Thanks again for your help.
I using the EmonTX V2. The sript is EmonTx_CT123
I put in 3 CT clamps and running.
This is a copy from the Arduino serial monitor
emonTX CT123 example
OpenEnergyMonitor.org
Node: 16 Freq: 868Mhz Network: 210
12926 12933 12846 3342
806 714 292 3342
809 712 287 3342
806 711 286 3342
809 714 284 3342
810 708 287 3342
emonTX CT123 example
OpenEnergyMonitor.org
Node: 16 Freq: 868Mhz Network: 210
12951 12969 12858 3342
809 717 289 3342
807 719 291 3342
803 727 289 3342
811 718 288 3342
800 727 287 3342
emonTX CT123 example
OpenEnergyMonitor.org
Node: 16 Freq: 868Mhz Network: 210
12905 12934 12842 3342
803 724 291 3342
807 728 289 3342
805 725 287 3342
811 709 287 3342
805 718 284 3342
emonTX CT123 example
OpenEnergyMonitor.org
Node: 16 Freq: 868Mhz Network: 210
12954 12958 12857 3342
810 712 287 3342
806 710 286 3342
812 709 285 3342
808 707 285 3342
Re: feeds stops after 30 seconds
The emontx resetting like that is usually due to the watchdog timing out, so for some reason it is getting stuck somewhere, Its probably getting stuck on sending the data via the rfm12 which happens for the first time 5s after power up once the filters have settled.
That your also not receiving anything on your raspberrypi suggests that its a problem with the rfm12b, try going over the solder joints again it might be a dry joint? or take a picture and share here if your still not sure?
Re: feeds stops after 30 seconds
Wauw, I could kiss you all for this.
I re soldered the rfm12 module on the EmonTx and now both are sending. Great.
Because I have 2 EmonTx I did not expecting something like this.
Many thanks for the helping. I’m trying to getting to work over 6 Mons.
Thanks again.