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:
  • 2 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New IMU BerryGPS-IMUv4
#11
Below is what I did to get it working.
I am sure that sometime in the future this will not be needed as it will be in the main image.


  1.  burn the openplotter image to sd card  2020-12-16-OpenPlotter-v2-Starting.img

  2.   enable i2c interface with sudo raspi-config

  3.   open OpenPlotter settings app and install I2C and PyPilot

  4.   the updates need to be downloaded and installed, go to terminal window and enter the below commands;

    1. sudo apt-get update
      the above may fail, still continue
    2. sudo apt-get install libqt4-dev cmake -y
    3. git clone https://github.com/seandepagnier/RTIMULib2.git
    4. git clone https://github.com/pypilot/pypilot.git
    5. cd RTIMULib2/Linux/
    6. mkdir build
    7. cd build/
    8. cmake ..
    9. make -j4
    10. sudo make install
    11. sudo ldconfig
    12. cd ../python/
    13. python3 setup.py build
    14. sudo python3 setup.py install
    15. cd ~/pypilot/
    16. sudo python3 setup.py install
      run the above command twice
  5. Open PyPilot, it should now have detected the IMU
Reply
#12
Thank you!
Just the sort of instructions I like
Great to finally see my V4.0 working in OP.

Cheers
Reply
#13
(2021-07-12, 09:15 PM)Tiki26 Wrote: Thank you!
Just the sort of instructions I like
Great to finally see my V4.0 working in OP.

Cheers

I was able to get through these instructions but I am not getting the data pushed through to OpenCPN or Pypilot. In Signal K I am getting the following error: "reconnect local host 20220 retry 0 delay 0". Any ideas?

Thanks
Reply
#14
It seems pypilot is not running?

Did you do
systemctl status pypilot

if it is not started
systemctl start pypilot
systemctl enable pypilot

It should be possile to enable from openplotter-pypilot as well or you can install from git:
https://github.com/pypilot/openplotter-pypilot
Reply
#15
(2021-07-12, 11:39 AM)Mark_OzzMaker Wrote: Below is what I did to get it working.
I am sure that sometime in the future this will not be needed as it will be in the main image.


  1.  burn the openplotter image to sd card  2020-12-16-OpenPlotter-v2-Starting.img

  2.   enable i2c interface with sudo raspi-config

  3.   open OpenPlotter settings app and install I2C and PyPilot

  4.   the updates need to be downloaded and installed, go to terminal window and enter the below commands;

    1. sudo apt-get update
      the above may fail, still continue
    2. sudo apt-get install libqt4-dev cmake -y
    3. git clone https://github.com/seandepagnier/RTIMULib2.git
    4. git clone https://github.com/pypilot/pypilot.git
    5. cd RTIMULib2/Linux/
    6. mkdir build
    7. cd build/
    8. cmake ..
    9. make -j4
    10. sudo make install
    11. sudo ldconfig
    12. cd ../python/
    13. python3 setup.py build
    14. sudo python3 setup.py install
    15. cd ~/pypilot/
    16. sudo python3 setup.py install
      run the above command twice
  5. Open PyPilot, it should now have detected the IMU

Hi

I'm relatively new to openplotter, so please forgive me if I'm asking stupid questions.

I recently bought a pi4, PICAN-M and BerryGPS-IMUv4 and today I tried to get some of it up and running.
I decided to try the IMU first after finding this thread, but it fails.

Started with a fresh image as indicated above.

First fail at step 4.1: sudo apt-get update
     Result: something about buster InRealease changed from stable to oldstable and from testing to oldstable.
     I don't understand what this means, but I'm guessing it's trying to tell me that I'm screwed.
Anyway, I contiunued as adviced and encountered second fail at step 4.8: cmake ..
     Result: bash: cmake: command not found

How do I proceed to get the berrygps up and running?

Also, assuming I get this to work, any tips about accessing the gps module on berrygps from Openplotter via I2C ?
I have installed the BerryGPS-IMUv4 on top of the PICAN-M hat, my understanding is that this only allows me to connect the I2C plug to berrygps.
I've browsed ozzmaker.com and find information telling me how to setup I2C with berrygps, but no instructions how get the gpsd data over to openplotter/opencpn.

cheers
Frode
Reply
#16
if you get an error like "cmake: comad not found" it means you need to install some packages

the solution would be normally:
sudo apt install cmake

You may be running too old of a distribution to be able to update or do anything as you mentioned...
Reply
#17
(2022-02-07, 09:23 PM)seandepagnier Wrote: if you get an error like "cmake: comad not found" it means you need to install some packages

the solution would be normally:
sudo apt install cmake

You may be running too old of a distribution to be able to update or do anything as you mentioned...

This was my second try. It worked a couple of weeks ago when I followed the instructions above, but I messed up and wanted to start fresh. So I installed the latest image and tried again, but this time the instructions didn't work and - threw error messages on update and cmake not available as on previous attempt.

It seems the operating system in the latest openplotter image has changed stable status and is no longer able to update vital functions.

In the meantime I've stumbled across this thread: https://forum.openmarine.net/showthread.php?tid=3765
and this: https://forum.openmarine.net/showthread.php?tid=3878

Is it possible that the latest OP image is useless, is it impossible to install OP until a new image is available?
Reply
#18
(2022-02-09, 08:27 AM)cortinaman Wrote: This was my second try. It worked a couple of weeks ago when I followed the instructions above, but I messed up and wanted to start fresh. So I installed the latest image and tried again, but this time the instructions didn't work and - threw error messages on update and cmake not available as on previous attempt.

It seems the operating system in the latest openplotter image has changed stable status and is no longer able to update vital functions.

In the meantime I've stumbled across this thread: https://forum.openmarine.net/showthread.php?tid=3765
and this: https://forum.openmarine.net/showthread.php?tid=3878

Is it possible that the latest OP image is useless, is it impossible to install OP until a new image is available?

what happens when you update OpenPlotter v2?:

Code:
sudo apt update
sudo apt upgrade
sudo apt install cmake

We are working hard on OpenPlotter v3 but it will take some time because this time we have 32bit and 64bit and this time we are writing docs at the same time (no docs, no apps).

There were also some important improvements waiting for a major revision like this one and we can say that OP v3 will be the most robust and stable of all of them. There is a lot of work but we are progressing well, a new app is published every week: https://forum.openmarine.net/showthread.php?tid=3878

pypilot and IMU management are obviously in the list but you can already play with OP v3 betas and installing pypilot manually.
Reply
#19
(2022-02-09, 12:57 PM)Sailoog Wrote:
(2022-02-09, 08:27 AM)cortinaman Wrote: This was my second try. It worked a couple of weeks ago when I followed the instructions above, but I messed up and wanted to start fresh. So I installed the latest image and tried again, but this time the instructions didn't work and - threw error messages on update and cmake not available as on previous attempt.

It seems the operating system in the latest openplotter image has changed stable status and is no longer able to update vital functions.

In the meantime I've stumbled across this thread: https://forum.openmarine.net/showthread.php?tid=3765
and this: https://forum.openmarine.net/showthread.php?tid=3878

Is it possible that the latest OP image is useless, is it impossible to install OP until a new image is available?

what happens when you update OpenPlotter v2?:

Code:
sudo apt update
sudo apt upgrade
sudo apt install cmake

We are working hard on OpenPlotter v3 but it will take some time because this time we have 32bit and 64bit and this time we are writing docs at the same time (no docs, no apps).

There were also some important improvements waiting for a major revision like this one and we can say that OP v3 will be the most robust and stable of all of them. There is a lot of work but we are progressing well, a new app is published every week: https://forum.openmarine.net/showthread.php?tid=3878

pypilot and IMU management are obviously in the list but you can already play with OP v3 betas and installing pypilot manually.

I used same image both times, but update behaviour has changed.

When I try "sudo apt-get update" now I get 4 lines of errors/notes, previously it succeded:

E: Repository «http://raspbian.raspberrypi.org/raspbian buster InRelease» changed it's «Suite»-value from «stable» to «oldstable».
N: This must be accepted explicitly before updates for this repository can be applied.  See apt-secure(8) manpage for details.
E: Repository «http://archive.raspberrypi.org/debian buster InRelease» changed it's «Suite»-value from «testing» to «oldstable».
N: This must be accepted explicitly before updates for this repository can be applied.  See apt-secure(8) manpage for detail.

I guess this means I should be able to continue by accepting something, but I don't know how.

I then tried upgrade and it said no updates available or something to that effect, can't remember exactly (I'm at work now).
I have not tried "sudo apt install cmake", I'm guessing cmake was included in update/upgrade on the previous successful attempt.


Edit:
Looking forward to OP v3, any estimated timeline?

Will support for the BerryGPS-IMUv4 on I2C be included?
I was unable to access the gps module via I2C and gpsd even when adding script as advised on ozzmaker.com, will this be more streamlined on OP v3 or will scripting still be required?

Cheers
Frode
Reply
#20
To fix that you have 2 options:

1. Run the following and manually answer y when asked to confirm the relevant changes:


Code:
sudo apt update


2. Run apt-get update with the --allow-releaseinfo-change flag to automatically confirm the changes:


Code:
sudo apt-get update --allow-releaseinfo-change

The timeline of OP3 is: ASAP Smile

If I am not wrong the default mode for that GPS is serial, adding support for I2C needs some hardware modification and python scripting in openpotter-i2c app to add only method 1 of your link and that is not the most efficient. I do not know if using this device by I2C is the best option.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)