mikaelnousiainen / RS41ng

Custom firmware for Vaisala RS41 and Graw DFM-17 radiosondes with support for amateur radio use. Ideal for tracking high-altitude balloons. Supported modes include APRS, Horus 4FSK mode, CATS, morse code (CW) and additional digital modes like WSPR and FT8 via Si5351.
GNU General Public License v2.0
110 stars 28 forks source link

What to expect if BMP280 is enabled but not connected ? #9

Closed zanco closed 2 years ago

zanco commented 2 years ago

Hi, today I did build the firmware on Ubuntu, .bin and .hex files are written, after re powering the sonde the red led stays on.

I have not yet attached the BMP280 but it's enabled in the config.

Does the software check and halt if no BMP280 is connected ?

Thanks, Ben

zanco commented 2 years ago

HI, I appear just to be impatient. After some seconds the red light gets assistance from the green led and the tracker starts transmitting. Now find myself my BMP280

mikaelnousiainen commented 2 years ago

@zanco Thanks for the report. I actually had not tested this before. I'm anyway making some changes to handle disconnection of BMP280 correctly. Currently, the code does not re-initialize the sensor if it gets disconnected. Reopening this issue for now!

mikaelnousiainen commented 2 years ago

@zanco Also note that the code supports both BMP280 and BME280. With a BME280 you will get humidity readings, which are missing in a BMP280.

zanco commented 2 years ago

Thanks for the info, after connecting the BME280 does the software find on which address it is, or do I have to provide an BME280 on either 0x76 or 0x77 ? (my values stay zero after repowering the RS41 with BME connected.

mikaelnousiainen commented 2 years ago

The default is 0x77, but you can alter it here: https://github.com/mikaelnousiainen/RS41ng/blob/main/src/bmp280_handler.c#L9

mikaelnousiainen commented 2 years ago

Also, we had some reports of 100 kHz I²C clock not working, so try reducing the clock to 10 kHz on this line (change 100000 to 10000):

https://github.com/mikaelnousiainen/RS41ng/blob/main/src/hal/i2c.c#L50

mikaelnousiainen commented 2 years ago

@zanco I've committed some fixes to both BMP280, Horus and GPS handling, please pull the latest changes

zanco commented 2 years ago

/me is humming "under pressure" :-)

image

mikaelnousiainen commented 2 years ago

@zanco I've committed more fixes to handling disconnected I²C devices like BMP280. There are also fixes to avoid transmitting invalid GPS position information, so please get the latest changes!