-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sensor data problem #6
Comments
@aledorrego Can you post your new config.h file contents here so we can check what is enabled/disabled? I can try to test the same config locally. |
//does not send sensor data neither in cw nor aprs. it pretends not to recognize the sensor. will the change have something to do with using nmea gps output? #ifndef __CONFIG_H // Enable semihosting to receive debug logs during development /**
// Set the tracker amateur radio call sign here // Disabling LEDs will save power // Allow powering off the sonde by pressing the button for over a second (when the sonde is not transmitting) // Enable use of an externally connected I²C BMP280 atmospheric sensor // Enable use of an externally connected I²C Si5351 clock generator chip for HF radio transmissions // Number of character pairs to include in locator // Delay after transmission for modes that do not use time synchronization. Zero delay allows continuous transmit mode for Horus V1 and V2. // Threshold for time-synchronized modes regarding how far from scheduled transmission time the transmission is still allowed // Enable NMEA output from GPS via external serial port. This disables use of I²C bus (Si5351 and sensors) because the pins are shared. #if (GPS_NMEA_OUTPUT_VIA_SERIAL_PORT_ENABLE) && ((RADIO_SI5351_ENABLE) || (SENSOR_BMP280_ENABLE)) /**
// Si4032 transmit power: 0..7 // Which modes to transmit using the built-in Si4032 transmitter chip // Continuous transmit mode can be enabled for either Horus V1 or V2, but not both. This disables all other transmission modes. // Transmit frequencies for the Si4032 transmitter modes /**
// Si5351 transmit power: 0..3 // Which modes to transmit using an externally connected Si5351 chip in the I²C bus // Transmit frequencies for the Si5351 transmitter modes /**
#define APRS_CALLSIGN CALLSIGN // Schedule transmission every N seconds, counting from beginning of an hour (based on GPS time). Set to zero to disable time sync. /**
#define HORUS_FREQUENCY_OFFSET_SI4032 0 /**
// Use Horus payload ID 0 for Horus V1 tests (4FSKTEST) // Schedule transmission every N seconds, counting from beginning of an hour (based on GPS time). Set to zero to disable time sync. /**
// Use Horus payload ID 256 for Horus V2 tests (4FSKTEST-V2) // Schedule transmission every N seconds, counting from beginning of an hour (based on GPS time). Set to zero to disable time sync. /**
// CW speed in WPM, range 5 - 40 // Schedule transmission every N seconds, counting from beginning of an hour (based on GPS time). Set to zero to disable time sync. /**
#define WSPR_TIME_SYNC_SECONDS 120 /**
#define FSQ_SUBMODE RADIO_DATA_MODE_FSQ_3 #define FSQ_TIME_SYNC_SECONDS 0 /**
// Schedule transmission every 15 seconds, counting from beginning of an hour (based on GPS time). Set to zero to disable time sync. #define JT9_TIME_SYNC_SECONDS 60 #define JT4_TIME_SYNC_SECONDS 60 #define JT65_TIME_SYNC_SECONDS 60 #include "config_internal.h" #endif |
Config looks good. I can do some more testing locally with a BMP280. The code did work for me before I committed it to GitHub 🤞 |
hello. I've been testing builds prior to the weather station update and the sensor is working fine. in fact at this moment I appear in aprs.fi . but with wx firmware it no longer read sensor data. greetings LW7EEA |
Hi, friend. could you find if there was any problem in the code? or will I have a local problem with my program? Cheers!! |
@aledorrego I tested the current code with your config file and it seems to work for me just fine:
Are you sure that you don't have any other changes in your code, except for the config.h file? |
around here we continue testing. The last thing we did was just modify the config.h and compile in Fedora, before we used Ubuntu. The following message appears. Still not getting sensor data [root@fedora build]# cmake ..
near the top of the file, but after cmake_minimum_required(). CMake is pretending there is a "project(Project)" command on the first -- The C compiler identification is GNU 11.2.1 |
Sorry to hear about the sensor trouble. I'm not able to replicate the issue here -- at least for now. The latest change with the APRS weather station code does not include any changes to reading the sensor or I²C in general... Have you verified that you have got the pull-up resistors required by the I²C bus applied to both SCL (clock) and SDA (data) lines? Many BMP280 break-out boards have them, but it's worth checking. The warning you get during compile is expected and it comes from some test code I have in the repository, not from the actual firmware compilation. |
You can try to enable debug logs by following the "Developing / debugging the firmware" instructions in the README file. That will allow you to get detailed text output about what the firmware does and sends out -- you will need to run the firmware with the (ST-LINK) programmer connected to your computer. Please let the sonde transmit a couple of APRS packets and paste the full text output here. |
Well, I'm going to leave it as I have it working now, with the tower symbol it sends the data well. I tried to install a virtual machine to access with fedora, but my cpu does not support virtual machine. I appreciate all your effort to help me this time, but I have certain technological limitations here. A hug |
Same problem here.. |
Closing issue with no activity. We have several people that have confirmed BMP280 and BME280 working with the firmware. Some sensors seem to be picky about the I²C bus speed, so you might want to reduce I²C bus speed to 10000 (= 10 kHz) using the Line 30 in 873e281
|
hello again, hope not to disturb. I loaded the last update and I found that it does not recognize the sensor, the probe takes 15 seconds to start, it takes 35 seconds, and it does not throw the sensor data. Could something have happened in the code? I was able to visualize with the weather station logo but with zero values. Sorry for so many questions, and there is very little to work. Thank you
The text was updated successfully, but these errors were encountered: