Data Issue - TxV3 and RFM69Pi ?? [SOLVED]

Issue:   I cant get any nodes from emon TxV3.   After extensive troubleshooting, I think the emon TxV3 configuration may not be set to default, and not communicating with the RFM69Pi.  (I dont have a UART cable - I purchased the emonTx prebuilt, so didnt think it would be neccessary. 

Ive loaded the wheezy image onto an SD card, and followed the wheezy installation using the git repo.  All good. 

I can log into emoncms at localhost, no messages in Setup-Admin-Logger, no issues with the database. 

The emontx is plugged in with the AC-AC adapter and I get the red led pulsing approx every 10 seconds once its started up (solid, then several flashes). 

The RFM69Pi also has a flashing red led approx every 10 seconds, so its not DOA, and its operational. 

I have checked the RFM69pi config using minicom (and its set up with defaults i15, g210, 433Mhz  - using v command). This matches emonhub.conf

When i do the 0t command, i get the test 1, test 2 and the 66b, but no ack from the emonTx.   

Is there an easy way for me to check the settings on the emonTx without a UART cable (for example, other typical configs that the emon may have shipped with, or a broadcast that would get a response). 

Many thanks in advance for the help - im no linux user, or electronics/RF guru, but have certainly been through a learning curve getting this operational. 

 

glyn.hudson's picture

Re: Data Issue - TxV3 and RFM69Pi ?? [SOLVED]

Good work, getting up and running. 

When you have minicom open and communication with the rfm69pi can you see any incoming data from the RFM69pi? Does the red LED on the RFM69Pi flash in sync with the emonTx? 

Just to confirm did you download the RasPi SD image from: http://openenergymonitor.org/emon/node/10729

No config should be needed on the emonTx. If RED led if lashing every 10's then it's transmitting ok. Is there an antenna connected, is it within close RF range? 

pb66's picture

Re: Data Issue - TxV3 and RFM69Pi ?? [SOLVED]

if you check "loglevel = DEBUG" is set in emonhub.conf and view the logging with " tail -f /var/log/emonhub/emonhub.log " you should be able to see a packet arrive and hopefully get processed every time the led flashes on the rfm69pi.

I assume you've also set the apikey and "localhost" url in emonhub.conf ok.

the emonhub.log should highlight any issues but if it's not obvious you can post some of the log here.

Paul

eskimofisherman's picture

Re: Data Issue - TxV3 and RFM69Pi ?? [SOLVED]

Yes, I can see incoming data.   I have the emon and pi approx 2m apart  - the red lights are flashing in sync.  I have an antenna fitted. 

I downloaded the wheezy image from raspberrypi.org.  (I had issues with the image in your link, and couldnt follow the install instructions without lots of errors). 

Ive cleared the cache in the browser too. (reading from other threads). 

 

 

pb66's picture

Re: Data Issue - TxV3 and RFM69Pi ?? [SOLVED]

What can you see in emonhub.log? when " loglevel = DEBUG " is set every step of the journey is logged right through to emonms confirming receipt.

Paul

eskimofisherman's picture

Re: Data Issue - TxV3 and RFM69Pi ?? [SOLVED]

Ive set the api key (and checked it twice for typos :-)) and set the localhost. 

I just changed the logging to DEBUG and this is the output i was getting: 

sudo tail -f /var/log/emonhub/emonhub.log

2015-12-16 01:26:13,523 INFO emonCMS sending: http://emoncms.org/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1450229156.58,8,0,0,0,0,24788,3000,3000,3000,3000,3000,3000,1,0,-38],[1450229166.43,8,0,0,0,0,24807,3000,3000,3000,3000,3000,3000,1,0,-40]]&sentat=1450229173

2015-12-16 01:26:13,608 WARNING emonCMS couldn't send to server, HTTPError: 401. 

A quick search on here gave me this thread, and ive edited the emonhub.conf to remove the hash for the URL line in the reporters Emoncms section.  THis has fixed the issue - I have inputs.   

Unfortunately, Im now going to be up for the next few hours setting up feeds......:-). 

Super thanks for the really quick help. 

 

 

 

Comment viewing options

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