C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 31st, 2003, 03:42 AM
marek_haj's Avatar
marek_haj marek_haj is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: currently Lisbone, Portugal
Posts: 154 marek_haj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 h 28 m
Reputation Power: 11
Exclamation C++ and RS232 port

Welcome back,
another question from a newbe.
Has anyone experimented with programing RS232c port (standard serial port) of the computer?
If so, what is the maximum transfer rate I can get from it? I was trying to get something like 250kb/s but something is definetely wrong with the transfer as the top I can get is 19200b/s.
Oh, I must say I make alink to a Atmel uP.
If anyone has any suggestions, please do.
Thanks
Marek

Reply With Quote
  #2  
Old March 31st, 2003, 11:11 AM
MJEggertson MJEggertson is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2002
Location: Seattle WA
Posts: 863 MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 22 sec
Reputation Power: 13
You won't get something like 250 kilobits...serial ports are limited to about the speed of a modem if I recall correctly. Could be that 19 kilobits is the limit of the interface, I just can't remember.

Reply With Quote
  #3  
Old March 31st, 2003, 12:17 PM
marek_haj's Avatar
marek_haj marek_haj is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: currently Lisbone, Portugal
Posts: 154 marek_haj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 h 28 m
Reputation Power: 11
Hi
strange thing because so far I have reached 128kbits without greater problems. I was just wondering if there is any possibility of doubling it any more. Seems that either 128kbits is the limit or that the uP I am using has such limit.
Nevertheless, I had a suggestion today that LPT port is much simpler to cope with since it can handle 12 bit parallel transfer up to 10Mbits/sec and programming it is much easier.
Well, today I will have a long night with C++ from what I see.
Perhaps You have anything on programing LPT port under WIN 2000??
Best wishes and thanks for the post
Marek

Reply With Quote
  #4  
Old March 31st, 2003, 02:13 PM
MJEggertson MJEggertson is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2002
Location: Seattle WA
Posts: 863 MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 22 sec
Reputation Power: 13
Sorry, I've never really programmed anything in rs232 or lpt beyond toying around, so I don't have anything to really show you.

If you were getting higher transfer rates, maybe you were using a protocol with text compression?

Reply With Quote
  #5  
Old April 1st, 2003, 02:08 AM
marek_haj's Avatar
marek_haj marek_haj is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: currently Lisbone, Portugal
Posts: 154 marek_haj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 h 28 m
Reputation Power: 11
Welcome back
The strange thing is that there is no compression.
All I used was a 6.61MHz quarzt, 90AT8535LS uP, one meter cable for RS232c standard and that was all. No compression. All I was using was the Terminal within the Bascom AVR software and I made uplink on 128kbits. Since it was working fine and I did not get any errors, I assume that the link was actually running at such speed. Once I tried to switch to 256k, it stopped responding.
Nevertheless, I have been sitting the whole night tryign to work out the LPT port and I think I have some good results about it. Once I have done something usefull, I will poresent it here so that everyone can have a look at it.
Best wishes
Marek

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > C++ and RS232 port

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap