Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:56 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Picomite Uart

Author Message
mrbennet
Newbie

Joined: 31/01/2022
Location: Australia
Posts: 4
Posted: 01:01pm 20 Mar 2022
Copy link to clipboard 
Print this post

I have been downloading the serial data from a Ublox M8N GPS as per the example in the user guide. The GPS is transmitting at 9600 baud, but when I run the program sometimes it downloads data, sometimes it doesn't. I changed the baud rate in the open Com2 command to 9500 baud and the program appears to be running reliably.
Am I missing something?
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1993
Posted: 04:08am 21 Mar 2022
Copy link to clipboard 
Print this post

Try changing the baud rate of the device...
  Quote  You can change the serial port baud rate and reflash the firmware via u-center-just-for-Windows.

"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
mrbennet
Newbie

Joined: 31/01/2022
Location: Australia
Posts: 4
Posted: 11:11am 21 Mar 2022
Copy link to clipboard 
Print this post

The Ublox M8N I am using came from my Quadracopter and had had its settings changed through the Mission Planner software when I set up the Quadracopter. It was running at 115200 baud and I couldn't get any data from it through the PicoMite uart set at 115200.
I did reflash the M8N through Ublox u-center back to the default settings which specifies 9600 baud.
Since I have been running the PicoMite at 9500 baud it has been running faultlessly and I have been downloading GPS data for up to 4 or 5 hours at a time so I will leave it as is for the time being. I was just curious to see if anybody else had come across a similar situation with the baud rate. My previous experience with baud rate was as long as you had the correct baud rate, communication always worked as it should.
The project I am working on is a yield monitor for a dried fruit harvester. As the machine is harvesting the PicoMite will log position, weight of fruit on the elevator through a load cell and speed of the elevator pulley through a quadrature encoder.
The results will then be overlaid on Google Earth showing some sort of heat map which will show the variation in crop across the patch.
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5089
Posted: 11:17am 21 Mar 2022
Copy link to clipboard 
Print this post

9600 baud and 9500 baud are very close. They are close enough to work on the same serial data. So if one works, the other not, it is most likely a mismatch between the number of stop bits.

Normally re aligning happens at the start bit. If you need 9500 baud, your UART samples slower, meaning it uses more time. Maybe the GPS expects 2 stop bits, and you are sending only 1.

Having said that...are you sending at all? From you second post. You are only receiving..

Skip the above...
Edited 2022-03-21 21:20 by Volhout
PicomiteVGA PETSCII ROBOTS
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 12:19pm 21 Mar 2022
Copy link to clipboard 
Print this post

FWIW: I have Picomites on my desk that have been chatting away @ 460KBaud for many days now without a glitch  
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025