passing through serial
hinv
Posts: 1,255
Hi,
I want to use a ProtoBoardUSB to connect to any number of 3v3 line level serial consoles, like for the Zipit, or my wgt634u. For some reason, I just get garbage out, when captured through Brad's spin tool looks like this:
instead of like this:
Which is what get when using my propplug.
Here's my program:
I also get zero's when I should get nothing. Anybody know what I am doing wrong?
I have tried %1000 and even %0001 in the device start configuration bits, but to no avail.
Any help would be appreciated.
Thanks,
Doug
I want to use a ProtoBoardUSB to connect to any number of 3v3 line level serial consoles, like for the Zipit, or my wgt634u. For some reason, I just get garbage out, when captured through Brad's spin tool looks like this:
80 E8 EC 2D 0F 25 98 CA F8 B4 5D AD B0 2F 56 A4 53 05 82 DE 2F 35 80 44 26 53 13 09 CC FC 98 BC 26 9D 48 80 54 4B DC A2 33 48 21 F0 98 1C 4C 26 90 48 50 85 51 E6 F2 FB BA DC 2D 52 EC FC EC B4 5B 00 C6 EF B6 B6 FD D6 22 A4 81 60 40 8C 6F 90 86 80 DE F0 B7 8C AA 75 82 E2 2D 87 00 62 B3 E0 B7 06 6B 8C 80 CA F9 B0 7C E7 E4 F3 35 14 A3 1C 7B 13 2D 18 14 86 B0 5B 2D EC 98 97 4C 89 F3 C9 7F 07 25 E2 26 0C 44 F0 84 34 F2 B9 7F 87 45 1E 8F E6 B3 7C 0F 8C 16 B5 60 1B 2C FB A4 FC E6 B3 0F 8C 16 B5 60 AC A4 D0 DC E6 B7 7C 0F 00 A6 A2 2C 96 8B D5 00 FE F0 B6 90 84 E5 F8 DA A2 33 5D F0 E3 B4 DC 86 F3 6B 1A 87 A1 EF 45 00 CC B9 85 13 9C FB 86 C2 E1 B7 0F A0 B7 1B 2D 55 90 D2 B7 51 57 65 DA FB 86 C2 A2 F8 29 13 B0 5A 4F 00 7A 66 A2 EC E0 B9 43 E0 FB B2 3B 6F 6F 29 FF EC B7 3B 18 14 43 B4 2C 15 04 C1 18 14 BB 13 3C E5 2D 00 7A A0 92 9A C2 FB 53 00 7A A0 98 27 03 53 A9 40 72 9D 1C 21 E0 FB BA 5C 07 A4 67 45 98 FB B0 2D 13 29 25 9E EE EC B2 5B AE CC FC B9 BF 7C 17 E5 70 40 E0 B8 5C 21 E0 FF A4 54 29 29 4A 81 10 87 94 AA 55 99 C4 FF B6 FF 2C 97 E4 E4 F3 35 14 BA 59 AD EC 7A 98 21 E0 00 00 00
instead of like this:
Aeronix Zipit2 Version 1.00 7-10-2007 blob version 2.0.5-pre3 for Intel HCDDBBVA0 (Mainstone) Copyright (C) 2007 Jan-Derk Bakker and Erik Mouw blob comes with ABSOLUTELY NO WARRANTY; read the GNU GPL for details. This is free software, and you are welcome to redistribute it under certain conditions; read the GNU GPL for details. RTC Clock Enabled. Memory map: 0x02000000 @ 0xa0000000 (32 MB) LCD: init ...Loading blob from flash . done Loading kernel from flash ......... done Autoboot (0 seconds) in progress, press any key to stop Autoboot aborted Type "help" to get a list of commands blob>
Which is what get when using my propplug.
Here's my program:
{{3vSerial.spin}} ' Eventually this will be a program to use the prop dongle as a 3.3v port to ' connect to a WGT634u and similar 3.3v serial ports CON _clkmode = xtal1 + pll4x 'Set for slow crystal _xinfreq = 5_000_000 'Use 5 MHz accurate crystal conTx = 30 ' Boot serial port(USB FTDI) transmit pin conRx = 31 ' Boot serial port(USB FTDI) receive pin devTx = 1 ' 3v target serial port transmit pin devRx = 0 ' 3v target serial port receive pin OBJ console : "FullDuplexSerial" ' Serial port for console device : "FullDuplexSerial" ' Serial port for device VAR Long console2deviceStack[noparse][[/noparse]20] PUB main | err, s console.start(conRx,conTx,%0000,115200) ' Start console serial port device.start(devRx,devTx,%0000,115200) ' Start device serial port CogNew( console2device, @console2deviceStack ) repeat 'run device2console in main cog device.tx(console.rx) PRI console2device repeat console.tx(device.rx)
I also get zero's when I should get nothing. Anybody know what I am doing wrong?
I have tried %1000 and even %0001 in the device start configuration bits, but to no avail.
Any help would be appreciated.
Thanks,
Doug
Comments
Thanks,
Doug