Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 22:35 26 Nov 2024 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 : Serial test

Author Message
vk4tec

Senior Member

Joined: 24/03/2012
Location: Australia
Posts: 239
Posted: 05:37am 04 Jan 2013
Copy link to clipboard 
Print this post

Interesting result

open "com2:4800" as #1
do
print loc(#1) ' print rx buffer size
loop

Gets up to "127" and maxes out

//

open "com2:4800,2048" as #1
do
print loc(#1) ' print rx buffer size
loop

Gets up to "255" and maxes out

- Andrew -

Andrew Rich VK4TEC
www.tech-software.net
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1425
Posted: 05:46am 04 Jan 2013
Copy link to clipboard 
Print this post

Which version of MMBasic is this? 4.2?
Micromites and Maximites! - Beginning Maximite
 
vk4tec

Senior Member

Joined: 24/03/2012
Location: Australia
Posts: 239
Posted: 06:00am 04 Jan 2013
Copy link to clipboard 
Print this post

MMBasic Version 4.0B

I have something else intersting.

I am reading from a GPS.

I think the PIC is too fast ( if that is feasable )

If I read two bytes really quickly, sometimes they come out null.

Or one is populated and the second is not.

If I slow down the read with a pause 10, I can get 100% read rate from the com port.

I think I need to check if there are some characters to read first .

LOC(#1)

- Andrew -
Andrew Rich VK4TEC
www.tech-software.net
 
vk4tec

Senior Member

Joined: 24/03/2012
Location: Australia
Posts: 239
Posted: 06:05am 04 Jan 2013
Copy link to clipboard 
Print this post

not quite sure how to code that one

do while loc(#1) = 0 : loop

- Andrew - Edited by vk4tec 2013-01-05
Andrew Rich VK4TEC
www.tech-software.net
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1425
Posted: 06:37am 04 Jan 2013
Copy link to clipboard 
Print this post

  vk4tec said  
open "com2:4800" as #1
do
print loc(#1) ' print rx buffer size
loop

Gets up to "127" and maxes out


I've duplicated these results on 4.2.
Micromites and Maximites! - Beginning Maximite
 
vk4tec

Senior Member

Joined: 24/03/2012
Location: Australia
Posts: 239
Posted: 07:35am 04 Jan 2013
Copy link to clipboard 
Print this post

I did a dumb thing

Threw my GPS from 19200 to 38400 baud

And of course the PIC on this port does not do 38400

Out with the serial port PC

- Andrew -
Andrew Rich VK4TEC
www.tech-software.net
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3802
Posted: 12:49pm 04 Jan 2013
Copy link to clipboard 
Print this post

255 may be related to the max string size

(though it probably should not be)

John
 
Print this page


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

© JAQ Software 2024