View previous topic :: View next topic |
Author |
Message |
ollopa
Joined: 03 Sep 2007 Posts: 233 Location: California
|
Posted: Wed Aug 11, 2010 3:15 am Post subject: |
|
|
You want to receive data via the serial port and then have it be typed on the PC? That should not be a problem. I think I can even do that without fixing this bug. |
|
Back to top |
|
|
glena
Joined: 25 Jul 2007 Posts: 284 Location: PA near Philly
|
Posted: Wed Aug 11, 2010 3:21 pm Post subject: |
|
|
What I'm looking (hoping) for is USB code on an AVR that when connected to a PC (winXP or 7) it will then cause windows to install basic virtual serial drivers that I can then talk to the AVR with a simple serial terminal.
Maybe a basic example would emulate some of the functionality of what a USB to serial chip like the FT232 chips do.
Once it can do this I can then build many other projects on top of this.
Thanks!
-Glen _________________ http://bahbots.com |
|
Back to top |
|
|
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Fri Aug 13, 2010 5:38 am Post subject: |
|
|
in my tought it didn't make sense to work on a virtual com port. This is because a low possible bandwith and the price for the unit! Think about a FTDI 232rl Unit! (you can setup this device with ready Programm "MPROG.EXE" on USB!) It comes with real full speed USB and driver for virtual com port, Bitbanging and all the features in a small unit with no need of external parts! Price is about 5 EUR.
Big advantage on this solution is, that you can reprogram the ATMega over USB with Bootloader!
If one doesn't need a real "Virtual Com Port" Device in Hardware Manager,
one can manage serial over already posted code!
You only have to print out received chars and put chars to send on USB TX routine... no Problem at all, but only lower speed... didn't figured it out what baudrate, but i think about 19,2k at maximum should be possible...
regards, Michael |
|
Back to top |
|
|
ollopa
Joined: 03 Sep 2007 Posts: 233 Location: California
|
Posted: Fri Aug 13, 2010 9:01 am Post subject: |
|
|
Glen, what programming language do you use on the PC side? |
|
Back to top |
|
|
glena
Joined: 25 Jul 2007 Posts: 284 Location: PA near Philly
|
Posted: Fri Aug 13, 2010 2:14 pm Post subject: |
|
|
ollopa,
Usually I just talk to an avr over serial from a terminal program like crt but I would also like to use something like StampPlot pro. My main interest is in getting rid of the TTL to RS232 level shifter and just use the USB cable. I could then also use the USB power to power the AVR.
Not that any of this is a large need but it would be nice to use this lib for these types of projects. I'm sure once its working reliably I will figure out many more uses for it in the future.
-Glen _________________ http://bahbots.com |
|
Back to top |
|
|
glena
Joined: 25 Jul 2007 Posts: 284 Location: PA near Philly
|
Posted: Fri Aug 13, 2010 2:20 pm Post subject: |
|
|
ollopa,
I know that you currently use 12MHz crystal for obvious reasons and that it is possible to use a few other frequencies (with code changes). Is 18.432MHz a possible frequency? I use this on many project because its the fasted speed (within spec) that is UART friendly.
-Glen _________________ http://bahbots.com |
|
Back to top |
|
|
radan
Joined: 06 Jan 2007 Posts: 35
|
Posted: Thu Sep 16, 2010 1:20 pm Post subject: |
|
|
Mr Ollopa!
Help with examples HID USB Keyboard!
It should! |
|
Back to top |
|
|
compurap
Joined: 23 Oct 2007 Posts: 43
|
Posted: Fri Sep 17, 2010 1:16 am Post subject: |
|
|
Quote: | You want to receive data via the serial port and then have it be typed on the PC? That should not be a problem. I think I can even do that without fixing this bug. |
Sorry, i tryed but not sucess... |
|
Back to top |
|
|
compurap
Joined: 23 Oct 2007 Posts: 43
|
Posted: Tue Oct 12, 2010 8:47 pm Post subject: |
|
|
I Worked on to receive data via the serial port and then have it be typed on the PC last long weekend, but with not results.
I will hope for other examples....
Thanks again |
|
Back to top |
|
|
vth
Joined: 31 Jan 2007 Posts: 29
|
Posted: Fri Oct 22, 2010 11:29 am Post subject: |
|
|
Is possible find and download samle code for USB implementation for Virtual com port?
I need make device with serial output and this is good method how to meke this my device.
After i used standard driver in Windows?
thanks
Peter |
|
Back to top |
|
|
tt-turbo
Joined: 18 May 2008 Posts: 5
|
Posted: Wed Nov 03, 2010 7:23 pm Post subject: |
|
|
are their any news on this topic?
Thanks and Cheers
Jan |
|
Back to top |
|
|
ollopa
Joined: 03 Sep 2007 Posts: 233 Location: California
|
Posted: Fri Nov 05, 2010 12:18 am Post subject: |
|
|
Sorry I missed so many replies. I don't know what happened but I stopped receiving emails when this thread was updated. I unsubscribed/resubscribed and now it's working again.
Glen, the 18.432MHz crystal should be doable. There would be a little bit of error but it should still fall within the timing specs. Adding more crystal support is second on my list of priorities for this project. First priority is fixing that receive bug.
I'd work on this this weekend, except I'm going out of town to a conference. Hopefully things will work out when I get back. |
|
Back to top |
|
|
radan
Joined: 06 Jan 2007 Posts: 35
|
|
Back to top |
|
|
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Fri Nov 05, 2010 12:48 pm Post subject: |
|
|
as i can see, it's one of the earlier Versions from Mr. Apollo?
Are there changes on the lib? _________________ For technical reasons, the signature is on the back of this message. |
|
Back to top |
|
|
ollopa
Joined: 03 Sep 2007 Posts: 233 Location: California
|
Posted: Sun Nov 07, 2010 10:50 am Post subject: |
|
|
Radan,
Thanks for sharing that very cool example! I'm getting excited
six1,
That may be a very slightly older version of the library, but it very closely resembles what I have in my source tree here. There is another version of the library somewhere that was heavily modified by someone else and looks very different from what I did. Maybe you saw that one and thought it was my original?
I have a 1.03 version here with a bugfix for sending NAK responses, but I don't think I released that yet. I need to get to sleep now (3am already) so I can drive home tomorrow. |
|
Back to top |
|
|
|