Kubuntu 7.10 c_source example compile problem

Discussion of issues related specifically to writing code for native mode devices. This includes ZBasic code as well as assembly language code and C code, both inline and standalone.
ndudman
Posts: 79
Joined: 25 December 2008, 14:00 PM

Post by ndudman »

Wow that was quick

I have normal serial on desktop, and usb only on laptop... also a serial->usb cable but it dosnt say what chipset it has inside. So will try both and report back or ask questions when the zx24n arrives.

Thanks again running direct on Linux is really great for me.

Neil
dlh
Posts: 395
Joined: 15 December 2006, 12:12 PM
Location: ~Cincinnati

Post by dlh »

I have tested two of the least expensive solutions to the no serial port problems. ByteRunner has a $9 USB-serial adapter...and an $18 dual serial port PCI card...Both work fine under all of my Linux systems.

Im haven't tested downloading under Linux but can toggle DTR to reset the ZX. Downloading under Windows is fine with the USB adapter. I haven't tested the PCI card for downloading.
ndudman
Posts: 79
Joined: 25 December 2008, 14:00 PM

Post by ndudman »

Hi

Good news... it works :) I get hello worrld, and red/green flashing lights....

The zx24n came this morning and Ive just finished connecting everything up... Im using an uknown usb -> serial and then a serials cable with one end removed and plugged directly into bread board... and it works... I had to execute the following line to make com2 accessable for zbasic

Code: Select all

ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com2
But am, to say the least very pleased...Is there anything else i can confirm before I try and write another program to the device ?

Regards
Neil
ndudman
Posts: 79
Joined: 25 December 2008, 14:00 PM

Post by ndudman »

Perhaps I was just luck having it working with the usb cable on the laptop... as its now NOT working, although I can reset the device via the zbasic IDE it wont identify the device or print debug logs... I thought it was a hardware problem... so installed everything on the desktop... with normal serial port, and it worked straight away.

Im confused, but will keep trying with both, but rely upon the normal serial cable. Im guessing its a speed issure... i.e the usb isnt fast enough or relyable enough perhaps ?

Neil
dlh
Posts: 395
Joined: 15 December 2006, 12:12 PM
Location: ~Cincinnati

Post by dlh »

Despite the higher speed of the USB bus, USB-serial is slower than RS232 because of the need for translations on both ends.
Post Reply