Giter Club home page Giter Club logo

Comments (4)

b3nn0 avatar b3nn0 commented on August 17, 2024

Please keep in mind that the PIs UART pins aren't known to be the most reliable things in the world, but what you can try is change the port configuration.

If you search in gps.go for UBX-CFG-MSG, you will find a nice table with configurations for each port.
And you will see that UART1 and USB are configured equally. I assume you are connecting to UART2 of the GPS. Feel free to add the respective 0x05, 0x01, etc. values there.

That, together with your symlink, should do the job.
You can also make sure that symlink is created automatically via udev configuration (but don't ask me how to do that exactly).
Or you just put it in rc.local or something.

from stratux.

rush0815 avatar rush0815 commented on August 17, 2024

I am not sure if I really use UART2 becouse changing baudrate via u-center for UART1 results in unreadable stuff.
The integration manual

https://www.u-blox.com/sites/default/files/NEO-M9N_Integrationmanual_%28UBX-19014286%29.pdf

on page 23 says: "The NEO-M9N includes two UART serial ports. UART1 can be used as a host interface forconfiguration, monitoring and control."

You mentioned that I am maybe using UART2. I know that u-center has the possibility to configure this UART. But looking at the pinout of the module I can't find any second UART. No other u-block document seems to refer to any UART2. The only information that I could found is the the point that there is a second UART. Thats it! :-(

Do you have any informations how to connect to UART2? Or is the second UART connected internally to the USB so that UART2 = USB?

What do you mean exactly with "Please keep in mind that the PIs UART pins aren't known to be the most reliable things in the world..." Does the UART hang after a while or what happens ?

from stratux.

b3nn0 avatar b3nn0 commented on August 17, 2024

Hmm, not sure what exactly the state of M9N and UART is. Might actually be the case that one of them is only used internally for USB. Not sure actually.

However, Stratux does configure UART1 and USB identically, so if you are using UART1, your symlink approach should work just fine.

You can actually confirm all that in U-Center:
Connect your UART Pins to the PI and monitor output. Start up U-Center and go to UBX->CFG->MSG. Select one of the options (e.g. PUBX0 or something) and check/uncheck the checkboxes while monitoring the output to see which output actually gives you what you want.

If it is UART1, everything should work already from what I can see. If it's UART2, you will have to make sure that UART2 is also configured like UART1 and USB.

"What do you mean exactly with "Please keep in mind that the PIs UART pins aren't known to be the most reliable things in the world..." Does the UART hang after a while or what happens ?"
Can't really tell you much more, this is only anecdotal knowledge. Heard of a few people that had problems with noise on the serial line, leading to lots of checksum errors, occasional disconnects. Could be that a ferrite around the cables would solve that, or that you don't have a problem at all. I really don't know and have not experimented with it myself. Feel free to try it, but maybe look out for problems related to that.

from stratux.

b3nn0 avatar b3nn0 commented on August 17, 2024

Closed due to no further response.

from stratux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.