VIRTUAL SERIAL PORT - USB-library

Post your requests and ideas on the future development of mikroPascal.
Post Reply
Author
Message
rainer
Posts: 320
Joined: 07 Dec 2006 11:00
Location: Vienna, Austria
Contact:

VIRTUAL SERIAL PORT - USB-library

#1 Post by rainer » 14 Sep 2008 11:40

It will be very helpful when USB-PICs (18Fxxxx) will not only work with this permanently problematic HID library.


If the PIC could appear as a "virtual serial port", it would be much easier to implement on the HOST side. When the PIC device is connected to USB, it will appear as a serial port then, and almost every OS I know will be able to support it by default and exchange data with it through normal programs, while this HID unnecessarily enforces to write a program on the host side!

:arrow: On UNIX it will even allow to use it from a shell script and other simple tools!

Instead, there is currently only this problematic HID library, requireing a lot of programming on the host side. And MikroE - as usual - still only supports Windows. :?

I pleased MikroE (zristic) for the "virtual serial port" library at least one year ago in private mails, but nothing happened until today. Because a new project arises where I will need exactly this feature, I ask now again. It is really sad that nothing happened until today. :(
Last edited by rainer on 15 Sep 2008 07:24, edited 1 time in total.

piort
Posts: 1379
Joined: 28 Dec 2005 16:42
Location: Laval,Québec,Canada,Earth... :-)
Contact:

#2 Post by piort » 14 Sep 2008 12:13

hi rainer,
when i need usb without the all prob you describe, i use this chip :
http://www.ftdichip.com/Products/FT232R.htm
they event give the driver for it )))
hth a bit

rainer
Posts: 320
Joined: 07 Dec 2006 11:00
Location: Vienna, Austria
Contact:

#3 Post by rainer » 14 Sep 2008 13:48

Hi, piort!

The goal is to not need additional hardware. :)

This chip requires not only space, it also rises the costs of the layout, hardware, .... Also, this are fine-pitch SMDs, therefore it is really problematic to solder them onto mainboards without soldering mask without getting shorts.

Hope I could explain how much easier it is to simply connect a USB connector directly to a PIC with two wires. Why should I use additional hardware, if a PIC with embedded USB surely can do the same with a bit of software? All what I need is a library which surely is interesting to many users of MikroPascal, and everything is done.

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

#4 Post by zristic » 15 Sep 2008 11:07

This library would certainly use an interrupt and it is therefore out of question for being implemented by mE. Interrupts in libraries is something we want to avoid, not because it is wrong to do it, but because it makes it difficult to distribute such library.

However, it may be done as an example, but at the moment we are really too busy to deal with it. Maybe some of advanced forum users may do it, but beware that such codes are difficult to find for free.

rainer
Posts: 320
Joined: 07 Dec 2006 11:00
Location: Vienna, Austria
Contact:

#5 Post by rainer » 15 Sep 2008 11:26

Dear zristic,

thank you for this information. It will still be better to have a working example than nothing, as the HID is really too problematic. Currently the number of PICs with USB is really limited, so it surely will be not such dramatic at all, even if the library is not as elegant as it could/should be.

Maybe it will be an idea to build a library which supplies all functions plus an example interrupt procedure of how to use it?

From my personal point of view I find a implementation of a Virtual Serial Port, even if it does not support high baudrates, much more useful than a HID interface.

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

#6 Post by zristic » 15 Sep 2008 14:15

rainer wrote:Maybe it will be an idea to build a library which supplies all functions plus an example interrupt procedure of how to use it?
Sure, be my guest.

ping-
Posts: 1
Joined: 20 Sep 2008 17:47

#7 Post by ping- » 20 Sep 2008 17:50

I too would like to see a library (or an example) for this, as the HID stuff just isnt good enough for what i need..

Unfortunally, im not skilled enough to do that yet, so if anyone could do it, it would be awesome! :)

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

#8 Post by Dany » 19 Oct 2008 10:30

Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

Post Reply

Return to “mikroPascal Wish List”