PL2303 driver guide ?
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
PL2303 driver guide ?

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System
Author Message
trungnl
Guest





Posted: Tue Nov 29, 2005 9:15 am    Post subject: PL2303 driver guide ? Reply with quote

I am writting a firmware to connect an embedded USB host with the Prolifi
PL2303 USB-RS232 chip. The PL2303 chip is used to get data from som
RS232-enabled devices and then transfer these data to the USB host. Now
need detailed information about PL2303's specification and operation, t
develope the appropriate driver for it.
I have been searching for some PL2303 driver or programming guides bu
haven't found any of them yet.

Has anybody worked with PL2303 ? Please give me some help !

Thanks,
N.L.Trung
Back to top
Meindert Sprang
Guest





Posted: Tue Nov 29, 2005 9:15 am    Post subject: Re: PL2303 driver guide ? Reply with quote

"trungnl" <ngolamtrung@yahoo.com> wrote in message
news:vZKdnQIBMd3HiRHenZ2dnUVZ_sydnZ2d@giganews.com...
Quote:

I am writting a firmware to connect an embedded USB host with the Prolific
PL2303 USB-RS232 chip. The PL2303 chip is used to get data from some
RS232-enabled devices and then transfer these data to the USB host. Now I
need detailed information about PL2303's specification and operation, to
develope the appropriate driver for it.
I have been searching for some PL2303 driver or programming guides but
haven't found any of them yet.

Has anybody worked with PL2303 ? Please give me some help !

If you are lucky, you *could* get the API from Prolific. FTDI offers a
similar service under NDA.

Meindert
Back to top
trungnl
Guest





Posted: Tue Nov 29, 2005 4:29 pm    Post subject: Re: PL2303 driver guide ? Reply with quote

Quote:
If you are lucky, you *could* get the API from Prolific. FTDI offers a
similar service under NDA.

Meindert


Thanks Meindert,
May be that API is the exact thing I need now.
Can you tell me how to get the PL2303's API ?

Thank you very much,
N.L.Trung
Back to top
Michael N. Moran
Guest





Posted: Tue Nov 29, 2005 5:15 pm    Post subject: Re: PL2303 driver guide ? Reply with quote

trungnl wrote:
Quote:
Has anybody worked with PL2303 ? Please give me some help !

When I wrote a driver for this chip, I gleaned the apparently
reverse-engineered interface information from the appropriate
Linux device driver.

--
Michael N. Moran (h) 770 516 7918
5009 Old Field Ct. (c) 678 521 5460
Kennesaw, GA, USA 30144 http://mnmoran.org

"So often times it happens, that we live our lives in chains
and we never even know we have the key."
The Eagles, "Already Gone"

The Beatles were wrong: 1 & 1 & 1 is 1
Back to top
Meindert Sprang
Guest





Posted: Tue Nov 29, 2005 5:15 pm    Post subject: Re: PL2303 driver guide ? Reply with quote

"trungnl" <ngolamtrung@yahoo.com> wrote in message
news:xuadnZPzmdXwsBHeRVn-sQ@giganews.com...
Quote:

If you are lucky, you *could* get the API from Prolific. FTDI offers a
similar service under NDA.

Meindert


Thanks Meindert,
May be that API is the exact thing I need now.
Can you tell me how to get the PL2303's API ?

Well, here's what I wrote earlier:
Quote:
If you are lucky, you *could* get the API from Prolific.
So, contact Prolific...


Meindert
Back to top
Meindert Sprang
Guest





Posted: Tue Nov 29, 2005 5:15 pm    Post subject: Re: PL2303 driver guide ? Reply with quote

"trungnl" <ngolamtrung@yahoo.com> wrote in message
news:xsadnTWnQpEQ_hHeRVn-ug@giganews.com...
Quote:
Actually I am writting the PL2303 driver base on some reverse-engineered
information retrieved by monitoring the data transfer process between a
PL2303-based USB-RS232 cable and PC. Now I can enumerate the PL2303, set
the COM settings like baudrate, stop bits, parity... I can send as many
data as I like from the embedded USB host to PL2303 as well. But there is
still a big problem because the host cannot get data from PL2303.
Now I need some more information on:
1. How to be notified when there's some data in the Receive buffer of
PL2303.

You have to poll the PL2303 for that. Remember, USB is a master/slave system
where a slave NEVER starts transmitting by itself. Transmission of a slave
is always a response to a request from the master.

Meindert
Back to top
trungnl
Guest





Posted: Tue Nov 29, 2005 5:15 pm    Post subject: Re: PL2303 driver guide ? Reply with quote

Quote:
trungnl wrote:
Has anybody worked with PL2303 ? Please give me some help !

When I wrote a driver for this chip, I gleaned the apparently
reverse-engineered interface information from the appropriate
Linux device driver.



Quote:
When I wrote a driver for this chip, I gleaned the apparently
reverse-engineered interface information from the appropriate
Linux device driver.


Hi Michael,

Actually I am writting the PL2303 driver base on some reverse-engineere
information retrieved by monitoring the data transfer process between
PL2303-based USB-RS232 cable and PC. Now I can enumerate the PL2303, se
the COM settings like baudrate, stop bits, parity... I can send as man
data as I like from the embedded USB host to PL2303 as well. But there i
still a big problem because the host cannot get data from PL2303.
Now I need some more information on:
1. How to be notified when there's some data in the Receive buffer o
PL2303.
2. How to know the amount of data in the Receive buffer of PL2303.

Best,
N.L.Trung
Back to top
Arie de Muynck
Guest





Posted: Wed Nov 30, 2005 1:15 am    Post subject: Re: PL2303 driver guide ? Reply with quote

"trungnl" ...
Quote:

I am writting a firmware to connect an embedded USB host with the Prolific
PL2303 USB-RS232 chip. The PL2303 chip is used to get data from some
RS232-enabled devices and then transfer these data to the USB host. Now I
need detailed information about PL2303's specification and operation, to
develope the appropriate driver for it.
I have been searching for some PL2303 driver or programming guides but
haven't found any of them yet.

Has anybody worked with PL2303 ? Please give me some help !


You did read the datasheet and manuals at this site?

http://www.prolific.com.tw/eng/Download-2.asp?ID=17

Arie de Muynck
Back to top
trungnl
Guest





Posted: Wed Nov 30, 2005 9:15 am    Post subject: Re: PL2303 driver guide ? Reply with quote

Quote:
You have to poll the PL2303 for that.

Thanks Meindert,

I have implemented a polling mechanism to get data from PL2303 to th
embedded host. But there is another problem

According to PL2303's spec, the chip has an 256-byte-buffer for each T
and Rx operation. But when I transfer a large amount of data (about 3KB
to the RS232 interface of PL2303, the USB host can only read a few byte
from the USB interface. It seems that the data in PL2303's buffer has los
so I cannot read all the data transfered to RS232 interface.
Back to top
trungnl
Guest





Posted: Wed Nov 30, 2005 9:15 am    Post subject: Re: PL2303 driver guide ? Reply with quote

Quote:
You did read the datasheet and manuals at this site?


Yes I did read all the docs at Prolific Website, but they lack all th
information needed to develop PL2303's driver. I think FTDI has a bette
product, the FT232BM, but PL2303 is much cheaper so I must choos
Prolific's product to reduce overall cost.
Back to top
Meindert Sprang
Guest





Posted: Wed Nov 30, 2005 9:15 am    Post subject: Re: PL2303 driver guide ? Reply with quote

"trungnl" <ngolamtrung@yahoo.com> wrote in message
news:z7SdnaMGFbQ4sRDeRVn-rw@giganews.com...
Quote:

You have to poll the PL2303 for that.

Thanks Meindert,

I have implemented a polling mechanism to get data from PL2303 to the
embedded host. But there is another problem

According to PL2303's spec, the chip has an 256-byte-buffer for each Tx
and Rx operation. But when I transfer a large amount of data (about 3KB)
to the RS232 interface of PL2303, the USB host can only read a few bytes
from the USB interface. It seems that the data in PL2303's buffer has lost
so I cannot read all the data transfered to RS232 interface.

Without knowing all the details, I'd say: poll more often. You have to at
least poll often enough not to let your 256 buffer fill up.

Meindert
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB