This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BME280 > SignalK no data/gauges
#31
(2022-03-03, 11:00 AM)schrammie Wrote: hi all,

still having the same issues. I bought a clean new BME 280 installed it on the Ic2 

fixed row 44 reboot but still no sensor on signal K getting a reconnect undefiend 5100 messages

PLease please can someone help me?

kind regards

renze

renze,
Not sure what is causing this.  Check to make sure the port defined in the "Connections" tab of the I2C app match the port defined in the Signal K Data Connections.  See attached.

Jay


Attached Files Image(s)
       
Reply
#32
jay,

Thanks a lot for replying.

I did try to run the script but i failed. See picture. I copied and named it bme.py and and run it but is stopped. See foto 9093.
By IC@ connections i have 2 because i tried a lot, but both are not working see picture 9091.

by signal K you see ic2 and ic201 but at the data browser there is a lot (1 wire and prypilot) but no ic2 (and that is strange because the prypilot is the same board) and i attachted a seperate BME 280 incase. therefore two adresses 0x68 and 0x76 see pictures 9094 and 9095
and the last picture 9096.

Iam lost.

So thanks a lot.

Have the Pican-m too by the way.

renze


Attached Files Image(s)
                   
Reply
#33
(2022-03-03, 08:11 PM)schrammie Wrote: jay,

Thanks a lot for replying.

I did try to run the script but i failed. See picture. I copied and named it bme.py and and run it but is stopped. See foto 9093.
By IC@ connections i have 2 because i tried a lot, but both are not working see picture 9091.

by signal K you see ic2 and ic201 but at the data browser there is a lot (1 wire and prypilot) but no ic2 (and that is strange because the prypilot is the same board) and i attachted a seperate BME 280 incase. therefore two adresses 0x68 and 0x76 see pictures 9094 and 9095
and the last picture 9096.

Iam lost.

So thanks a lot.

Have the Pican-m too by the way.

renze
renze,

I'm not sure if I can help.   But I will offer some suggestions.  Hope they help.

1.  I'm not a python wizard but the error message is pointing to the "print" statement.  Python is indent and space sensitive so formats make a difference.  Check the print statement format it may need indent spaces.

2.  Looks like signal K has your connections setup correct.  At least the I2C looks right.   However on the I2C app connection tab it looks like the BME280 sensor is only defined for the I2C01 connection.   BTW the I2C address button above the "connections" tab will show the I2C addresses of the sensors connected(uses i2cdetect).  I would only create one BME280 connection to the address of your sensor shown in the I2C addresses.

3.  Try executing the following command in a terminal;
    
      openplotter-i2c-read

see my post;

https://forum.openmarine.net/showthread....7#pid20417

If you get a similiar output as I did then your problem is openplotter-i2c-read.py.  If that's the case see this post for how to fix it.

https://forum.openmarine.net/showthread....1#pid20441

If that is not the case then I'm out of suggestions.  Maybe someone else can jump in to help you.

Jay
Reply
#34
Jay

Thanks again.

My problem is i know a little bit of programming Arduino, but not linex nor python. So iam a newby on this terminal.

1. I copied direcly your scipt and put it in text editor and saved it unther the same name in the head directory and then run it with the terminal. You saw the results. So iam not sure what iam doing wrong here.
2. My raspberry (pi 4 8 gb) got stuck last week with installing of the new update from signal K so i started from fresh again. I first tried with 1 sensor after reprogramming the adafruit sentence, but with the same result, so i added the second one, fresh from aliexpress and only the bme280 sensor. But iam connected it on the Pican-M ic2 connector. Is it bettre to connect it directly on the ectension row of the raspberry (btwthats very diffycult because you cant get a wire in with the Pican-M i tried for the 1-wire application)?
3. i tried, but where can i find that one? see picture, but he cant find it. With directory is that one? i tried  /usr/lib/python3/dist-packages/openplotterI2c


Thanks a lot.

renze


Attached Files Image(s)
       
Reply
#35
(2022-03-04, 08:22 AM)schrammie Wrote: Jay

Thanks again.

My problem is i know a little bit of programming Arduino, but not linex nor python. So iam a newby on this terminal.

1. I copied direcly your scipt and put it in text editor and saved it unther the same name in the head directory and then run it with the terminal. You saw the results. So iam not sure what iam doing wrong here.
2. My raspberry (pi 4 8 gb) got stuck last week with installing of the new update from signal K so i started from fresh again. I first tried with 1 sensor after reprogramming the adafruit sentence, but with the same result, so i added the second one, fresh from aliexpress and only the bme280 sensor. But iam connected it on the Pican-M ic2 connector. Is it bettre to connect it directly on the ectension row of the raspberry (btwthats very diffycult because you cant get a wire in with the Pican-M i tried for the 1-wire application)?
3. i tried, but where can i find that one? see picture, but he cant find it. With directory is that one? i tried  /usr/lib/python3/dist-packages/openplotterI2c


Thanks a lot.

renze

renze,

1. I am sorry I can not help you more with your script.

2. There were some problems with the latest Signal K updates, but I thought they were resolved.  Search the forum for Signal K updates.  

3. The command I suggested in my first link has no spaces in it.  However based on your second picture it looks like the openplotter i2c read python script name has changed.  The text editor page shown  is the correct openplotter i2c read python script.  If you execute this script in a terminal window the results may help you diagnose the problem.  The editor page does show the library import correction I referenced in my second link.  So I do not have any more suggestions.  Sorry.

Good luck.
Jay
Reply
#36
(2021-08-30, 01:03 AM)Jay_cd33 Wrote: Big Grin Big Grin Big Grin 
So I figured out the problem with not getting BME280 sensor data into SignalK described in my previous posts.

It turns out Adafruit has updated their BME280 python library used in the openplotter i2c app to read sensor data. So new installs download the updated library which breaks the openplotte i2c read app.  The openplotterI2cRead app runs as a service, reads the sensor data and sends it to signalk.  The problem is that the library import in openplotterI2cRead.py is not compatible with the new library.   So the openplotter i2c app sets up the bme280 sensor correctly and configures signalk with a good connection but no data is sent to that connection by the openplotterI2cRead app.

So Sailoog needs to correct the BME280 library import call in a future release.   For those that are willing to hack the changes necessary to make it work here is what I did...

In the directory;
/usr/lib/python3/dist-packages/openplotterI2c
The file openplotterI2cRead.py needs to be edited. (sudo needed to edit file),

Change line 44 (in the BME280 section)
from:        
        import adafruit_bme280

to:
        from adafruit_bme280 import basic as adafruit_bme280

(be aware the from is preceeded by 2 tabs not spaces).

After saving these changes, either restart the openplotter-i2c-read.service or reboot.

That fixed the problem for me.   I hope this helps others.  
I'm not a coder so Sailoog will probably have a proper fix in a future release.

You my friend, are a legend!  I, like you, spent hours trying to work this out.  Thank you !
Reply
#37
(2022-03-05, 12:49 AM)sambos76 Wrote: You my friend, are a legend!  I, like you, spent hours trying to work this out.  Thank you !

Thanks for the kind words.  I only know what I have learned from others here on the forum.
Glad it worked for you.
Jay
Reply
#38
Jay,

Thanks! sry for the delay, i had to paint my boat over the weekend!

But iam think iam stuck. So i will try the next strategy:

1. Install a new sd card with new Openplotter, update signalK and start only with the BME280 (not even with the Pincan-m) and hope for the best.

or

2. Buying another type off sensor.  I want to have pressure, temp (inside) and humilty. So i found on this forum the BMP280. Will this sensor without problems on the I2C connection on the pincan-m add-on board? Does anybody knows?

Jay thanks again for the great help!!

kind regards

renze
Reply
#39
(2022-03-07, 03:40 PM)schrammie Wrote: Jay,

Thanks! sry for the delay, i had to paint my boat over the weekend!

But iam think iam stuck. So i will try the next strategy:

1. Install a new sd card with new Openplotter, update signalK and start only with the BME280 (not even with the Pincan-m) and hope for the best.

or

2. Buying another type off sensor.  I want to have pressure, temp (inside) and humilty. So i found on this forum the BMP280. Will this sensor without problems on the I2C connection on the pincan-m add-on board? Does anybody knows?

Jay thanks again for the great help!!

kind regards

renze


renze,

I forgot to ask.  Did you enable the I2C interface on your RPi?  The I2C interfacec is not enabled by default.  You need to enable it before an I2C device will work.  Go to;

RPi > Preferances > Raspberry Pi Configuration > Interfaces   enable I2C

Just checking.

Jay
Reply
#40
                   

hi jay,

THANKS THANK THANKS!!!!

Ic2 was/is enable as well as 1-wire.

Good news, the new sensor (bmp280) is working fine. No issues at all, see foto's. I don't have humidity but thats for me not important (would be nice, not have to have).

In totaly the project is looking like this:

Raspberry pi 4 8 gb (second hand because new it's not availble)
Pican-M
OPENPLOTTER!!
1-wire with 2 sensors for temp outside and reserve
ic2 with bmp280 and gy91 [inside, pressure and roll, till, compass (bme280 on the GY-91 thats all the story above about)]
Screen AOC 16T2 16 inch touchscreen (be aware the screen needs about 2,5 amp on 5 volts and the raspberry gives only 0,9 amps so you needs 3 wires, 1 power (different 2,5 amp usb socket) 1 touchscreen wire (usb3.0) to raspberry and 1 Micro HDMI to Micro-HDMI and that i could not find. I build in the raspberry behind a cupboard and have now 3 sockets for the screen, 1 HDMI, and 2 USB 3.0.
1 RTL-SDR dongle with mini whip for NAVTEX and weatherfax and SSB-receiver


Arduino to the nmea 2000 with sensors for fueltank watertank rpm etc not finished totaly

See some pictures, its not finished yet but you get a impression.

@ Jay Thanks a lot again.

Renze
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)