Pinguino Forum
Serial with pl2303 ? [SOLVED] - Printable Version

+- Pinguino Forum (http://forum.pinguino.cc)
+-- Forum: Hardware (http://forum.pinguino.cc/forumdisplay.php?fid=6)
+--- Forum: 8-bit (PIC18F) Pinguino (http://forum.pinguino.cc/forumdisplay.php?fid=42)
+---- Forum: Troubleshooting (http://forum.pinguino.cc/forumdisplay.php?fid=14)
+---- Thread: Serial with pl2303 ? [SOLVED] (/showthread.php?tid=3855)



Serial with pl2303 ? [SOLVED] - dadwarf - 28-03-2013

Hi,

I'm simply trying to talk with my Pinguino (PIC18F2550) with a USB to Serial converter (a PL2303) connected on pin 8 and 9, but it's like i'm doing it wrong : my PC received but can't transmit and it receives 5v instead of the 3.3v expected by my converter ... is it more complicated ? Do i need to make a voltage converter ? How do you talk to your Pinguino ?

CDC doesn't works for me on windows 8 (X.4) and with OSX Moutain Lion (X.3) nothing works, only the GUI ...

Another question, i use v2.12 of the bootloader, but it's possible to use v4.x with PIC18F2550 ? is there any built HEX somewhere ? I tried to build it from source (on Debian Squeeze) and SDCC (from Sid) doesn't compile without error from pic18f2550.h header.

Thanks.


RE: Serial with pl2303 ? - regis - 29-03-2013

Hi,
I'm not sure the last version of the bootloader makes any difference on CDC side but you will get some extra KB for your programs.
Anyway, you will find bootloaders here : http://pinguino32.googlecode.com/svn/ide/x.4/extra/bootloaders/8bit/
and Windows drivers here :
http://pinguino32.googlecode.com/svn/ide/x.4/extra/drivers/
Never tried with Windows 8. Tell us if you succeed.
Régis

[attachment=236]

(28-03-2013, 08:21 PM)dadwarf Wrote: Hi,

I'm simply trying to talk with my Pinguino (PIC18F2550) with a USB to Serial converter (a PL2303) connected on pin 8 and 9, but it's like i'm doing it wrong : my PC received but can't transmit and it receives 5v instead of the 3.3v expected by my converter ... is it more complicated ? Do i need to make a voltage converter ? How do you talk to your Pinguino ?

CDC doesn't works for me on windows 8 (X.4) and with OSX Moutain Lion (X.3) nothing works, only the GUI ...

Another question, i use v2.12 of the bootloader, but it's possible to use v4.x with PIC18F2550 ? is there any built HEX somewhere ? I tried to build it from source (on Debian Squeeze) and SDCC (from Sid) doesn't compile without error from pic18f2550.h header.

Thanks.



RE: Serial with pl2303 ? - dadwarf - 29-03-2013

Hi Regis,

Thanks for your answers !

And about serial communication ? Do you know why key pressed from PC aren't received by Pinguino (with get key.pde for e.g.) ? Do i need a level converter like this : PNG

Thanks.


RE: Serial with pl2303 ? - regis - 29-03-2013

[Image: DCE.png?height=481&width=1072]


(29-03-2013, 11:19 AM)dadwarf Wrote: Hi Regis,

Thanks for your answers !

And about serial communication ? Do you know why key pressed from PC aren't received by Pinguino (with get key.pde for e.g.) ? Do i need a level converter like this : PNG

Thanks.



RE: Serial with pl2303 ? - dadwarf - 29-03-2013

Euh ... I mean to PC using USB to serial converter, i don't have serial port on my computers.


RE: Serial with pl2303 ? - regis - 29-03-2013

Sorry I didn't understand.
Communication between PC and Pinguino using USB CDC needs nothing but a USB cable.
No needs of your PL2303.
It can't be simpler.


RE: Serial with pl2303 ? - dadwarf - 29-03-2013

(29-03-2013, 04:18 PM)regis Wrote: Sorry I didn't understand.
Communication between PC and Pinguino using USB CDC needs nothing but a USB cable.
No needs of your PL2303.
It can't be simpler.

Yep i understood that ... but with the last svn version of the IDE :

- On OSX Mountain Lion it won't compile ("... the sdcc is not supported by this processor ...") and didn't create an entry in /dev when i connect the Pinguino.

- On Windows 8 I can compile and upload but CDC option is not available !

I'm a little stuck here ! That's why I'm trying to have a serial communication with a USB to serial adapter !


RE: Serial with pl2303 ? - regis - 29-03-2013

Yes true, CDC output window is not available under Windows but you could use an external communication program instead. Something like Putty or this one https://sites.google.com/site/terminalbpp/ as I read on this forum looking for CDC issues on Windows Systems.


RE: Serial with pl2303 ? - dadwarf - 29-03-2013

(29-03-2013, 07:50 PM)regis Wrote: Yes true, CDC output window is not available under Windows but you could use an external communication program instead. Something like Putty or this one https://sites.google.com/site/terminalbpp/ as I read on this forum looking for CDC issues on Windows Systems.

Thanks Régis ... I solved my problem with my serial to ttl adapter, in fact in works without level conversion, that was a problem with "screen" and OSX ...