Closed agrodev closed 1 year ago
No idea what's wrong with your setup. A good sequence looks like this on my old, Moteino-based receiver:
2023-02-19 10:34:44 weewx[145921] DEBUG user.meteostick: meteostick: open serial port /dev/wxreceiver1
2023-02-19 10:34:44 weewx[145921] INFO user.meteostick: meteostick: establish communication with the meteostick
2023-02-19 10:34:44 weewx[145921] DEBUG user.meteostick: meteostick: cmd: 'r': # OK resetting
2023-02-19 10:34:46 weewx[145921] INFO user.meteostick: meteostick: reset: # WxReceiver v2017091302 ready to accept commands
2023-02-19 10:34:46 weewx[145921] DEBUG user.meteostick: meteostick: full response to reset: # WxReceiver v2017091302 ready to accept commands
2023-02-19 10:34:46 weewx[145921] INFO user.meteostick: meteostick: configure meteostick to logger mode
2023-02-19 10:34:46 weewx[145921] DEBUG user.meteostick: meteostick: cmd: '?': # OK t1 f1 o0 m1 x190 r0 stopped
2023-02-19 10:34:46 weewx[145921] DEBUG user.meteostick: meteostick: cmd: 'x200': # OK sensitivity 200
2023-02-19 10:34:46 weewx[145921] DEBUG user.meteostick: meteostick: cmd: 't3': # OK listening to 1 2
2023-02-19 10:34:47 weewx[145921] DEBUG user.meteostick: meteostick: cmd: 'f1': # OK filter on
2023-02-19 10:34:47 weewx[145921] DEBUG user.meteostick: meteostick: cmd: 'r1': # OK repeater pass-through enabled
2023-02-19 10:34:47 weewx[145921] DEBUG user.meteostick: meteostick: cmd: 'o3': # OK output raw 10B
2023-02-19 10:34:47 weewx[145921] DEBUG user.meteostick: meteostick: cmd: 'm1': # OK band EU
Then it spews things like this (debug mode on max):
2023-02-19 10:34:54 weewx[145921] DEBUG user.meteostick: meteostick: station said: 49 20 31 30 30 20 41 31 20 30 30 20 41 43 20 30 30 20 30 31 20 30 30 20 33 32 20 46 44 20 46 46 20 46 46 20 20 2D 35 35 20 30 20 2D 31
2023-02-19 10:34:54 weewx[145921] DEBUG user.meteostick: meteostick: readings: I 100 A1 00 AC 00 01 00 32 FD FF FF -55 0 -1
2023-02-19 10:34:54 weewx[145921] DEBUG user.meteostick: meteostick: wind_speed_raw=000 wind_dir_raw=0x0ac
2023-02-19 10:34:54 weewx[145921] DEBUG user.meteostick: meteostick: WS=0.0 WD=239.47826086956522 WS_raw=0 WS_ec=0 WD_raw=172 WD_pro=239.47826086956522 WD_vue=242.175
2023-02-19 10:34:54 weewx[145921] DEBUG user.meteostick: meteostick: data: {'channel': 2, 'rf_signal': -55, 'rf_missed': 0, 'bat_anemometer': 0, 'wind_speed_ec': 0, 'wind_speed_raw': 0, 'wind_dir': 239.47826086956522, 'wind_speed': 0.0}
2023-02-19 10:34:54 weewx[145921] DEBUG user.meteostick: meteostick: packet: {'windSpeed': 0.0, 'windDir': 239.47826086956522, 'windBatteryStatus': 0, 'dateTime': 1676799294, 'usUnits': 17}
...
I see this in your log (among others):
Feb 19 00:26:41 c4lv0 weewx[2030] DEBUG user.meteostick: meteostick: cmd: 'r1': # ERR bad command
The init sequence doesn't look right. Did you modify the driver code? What version do you use from weewx and the driver? How did you install the driver? Pro Mini is fine, it's using the same chip as the original Moteino. The flash memory is not needed.
Thanks kobuki, I did a fresh install of weewx from apt, the version is 4.10.1. I installed the driver following your instructions from the link: https://github.com/kobuki/weewx-meteoRX/archive/master.zip, I find version is 2021101701.
At first I had some error that I solved by installing the Python future dependencies. I have not modified anything in the driver, only download it and install. Only modified weewx.conf, but I do not see that the repeater is an option in these file.
Also I have tried to manually talk to wxreceiver by Arduino console, but only get errors. I tried to find out the syntax in the meteostick documentation, but couldn't get it right.
Can you provide a binary log of the communication between your serial terminal and the receiver? I'm suspecting a wonky serial connection. The command interface is very simple and has proven to be pretty robust so I can't think of anything else at the moment. ISSRx doesn't use any command interface and it works for you so there must be something going on with the connection. Maybe one more thing: if you use an RPi with the receiver and it's connected to a monitor, try without the monitor and use an SSH connection to control things.
I am using a virtual machine with ubuntu server 22.04, I checked with screen and ISSRx the communication of the board in linux server. I don't understood very well what are requesting, can you suggest me a tool to generate that log on linux?
I suspect the commands are not sent out properly to the device. Maybe you could try another USB-serial adapter and double-check the voltage. I assume you're using a 3.3V Arduino board, since the RFM69 radio doesn't handle voltages above around 3.6V. You could also try with a lower baud rate (needs reflashing the ATMega).
Yes, when you suggested the problems in the serial connection I tried with other serial adapters. Thanks again for your help.
So it works now, using a different adapter?
I am trying to connect WxReceiver with weewx-meteoRX driver without success. I don't have a moteino, I use an arduino pro mini and an rfm69 868, I'm in Europe and with ISSRx I get good results, I also have a tested and working BMP280. But with WxReceiver I end up stuck in Starting main packet loop. I don't know if the problem is with my board, if the code makes use of the moteino's memory that I don't have.
Any suggestions for something I can do or look at?
What would be the syntax to test WxReceiver directly through the console?
Here are some logs and console output that think could be of interest.
Thanks in advance.