Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Serial with pl2303 ? [SOLVED]
28-03-2013, 08:21 PM, (This post was last modified: 29-03-2013, 08:48 PM by dadwarf.)
#1
Serial with pl2303 ? [SOLVED]
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.
Reply
29-03-2013, 10:40 AM,
#2
RE: Serial with pl2303 ?
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...ders/8bit/
and Windows drivers here :
http://pinguino32.googlecode.com/svn/ide...a/drivers/
Never tried with Windows 8. Tell us if you succeed.
Régis


.hex   Bootloader_v4.8_18f2550_X20MHz.hex (Size: 8.2 KB / Downloads: 1)

(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.
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
29-03-2013, 11:19 AM, (This post was last modified: 29-03-2013, 11:20 AM by dadwarf.)
#3
RE: Serial with pl2303 ?
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.
Reply
29-03-2013, 04:03 PM,
#4
RE: Serial with pl2303 ?
[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.
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
29-03-2013, 04:12 PM, (This post was last modified: 29-03-2013, 04:13 PM by dadwarf.)
#5
RE: Serial with pl2303 ?
Euh ... I mean to PC using USB to serial converter, i don't have serial port on my computers.
Reply
29-03-2013, 04:18 PM, (This post was last modified: 29-03-2013, 04:19 PM by regis.)
#6
RE: Serial with pl2303 ?
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.
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
29-03-2013, 07:39 PM, (This post was last modified: 29-03-2013, 07:40 PM by dadwarf.)
#7
RE: Serial with pl2303 ?
(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 !
Reply
29-03-2013, 07:50 PM,
#8
RE: Serial with pl2303 ?
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.
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
29-03-2013, 08:47 PM, (This post was last modified: 29-03-2013, 08:48 PM by dadwarf.)
#9
RE: Serial with pl2303 ?
(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 ...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)