![]() |
Forum Index : Microcontroller and PC projects : Picomite Uart
Author | Message | ||||
mrbennet Newbie ![]() Joined: 31/01/2022 Location: AustraliaPosts: 4 |
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: AustraliaPosts: 1993 |
Try changing the baud rate of the device... "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: AustraliaPosts: 4 |
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: NetherlandsPosts: 5089 |
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 KingdomPosts: 1646 |
FWIW: I have Picomites on my desk that have been chatting away @ 460KBaud for many days now without a glitch ![]() |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |