Code Monkey home page Code Monkey logo

Comments (5)

farmerbriantee avatar farmerbriantee commented on July 17, 2024

For sure! That is very narrow so yes it would only show zero. I will add that to the source. Thanks!

from agopengps.

farmerbriantee avatar farmerbriantee commented on July 17, 2024

Right comment, wrong question!

Serial ports are a real tough one in windows and C#. Also the serial ports are asynchronous - they don't wait for the main program and run in separate threads. Once that connection is lost, it needs to be manually reconnected. I tried really hard to get it to reconnect, but was unable. That being said though, a good installation makes sure power is provided to everything all the time - then no reconnection is required and makes it all very reliable. If it disconnects, it generally means there is a problem with the power and or installation. Ive seeded thousands of acres with the sectional relay part reading an RTK based GPS system, never lost communication.

Maybe one day i will figure out the reconnection thing. Its a tough one

from agopengps.

svenn71 avatar svenn71 commented on July 17, 2024

Hi,
On most of the vehicles I have, there is no easy connection to permanent 12v. Even when connecting directly to the battery the start engine may pull the voltage low enough for some of the devices on aux power to fall out. I am thinking about using a smaller secondary battery as a buffer.

I have found some indications on the net that some rs232-usb cables confuse their driver if they receive rs232 while being brought up by a booting host system. In my configuration, the SF300 antenna starts spitting out data almost immediately after power on while the Acer Switch one 10 take a while to respond on my button press to kick it alive. This causes the need to shut down AOG, unplug the usb-rs232 cable and then reconnect and start up AOG again. Solution is to keep the SF300 unpowered until the Acer is up running and then power the antenna.

A second setup that I have with an 8" windows tablet does not see this particluar problem with the need of a hard shutdown and disconnect when I start the vehicle after lunch break. There are tons of setup regarding sleep/hibernate when in power mode and battery mode on the terminals that may be different.

The deep failure to restart GPS capture seems to be very system setup dependent. I'll start with a simple power switch on my gps power.

from agopengps.

farmerbriantee avatar farmerbriantee commented on July 17, 2024

Yes it really is dependent on setup and hardware. I don't know how to make it work in all situations.

Uploaded new version on github today, yay!

Follow along here for discussion if you want. Just posted full parts list, schematic etc.
http://www.thecombineforum.com/forums/31-technology/296233-diy-autosteer-agopengps.html#post2993233

from agopengps.

mirh avatar mirh commented on July 17, 2024

Some ideas
https://stackoverflow.com/questions/11890940/reconnecting-to-com-after-lost-connection/#11899051
https://stackoverflow.com/questions/13408476/detecting-when-a-serialport-gets-disconnected
https://stackoverflow.com/questions/4199083/detect-serial-port-insertion-removal
https://stackoverflow.com/questions/37777626/how-can-my-application-recover-when-a-usb-emulated-serial-port-vanishes-and-reap
and some samples
https://github.com/fivepmtechnology/SharpGPS/blob/master/src/SharpGps/SerialPort.cs
https://github.com/dotMorten/NmeaParser/blob/main/src/NmeaParser/SerialPortDevice.Desktop.cs
https://github.com/jperson2000/GPS.Net/blob/master/Devices/SerialPort.cs
https://github.com/DotSpatial/DotSpatial/blob/master/Source/Core/DotSpatial.Positioning/SerialDevice.cs
(putting aside that the F9P has so many advanced settings that it seems hard none could make a difference here)

from agopengps.

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.