Author Topic: Serial Port Woes...  (Read 6004 times)

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Serial Port Woes...
« on: February 04, 2005, 07:49:48 am »
Hi guys.

I've been trying now for a few hours over a few days to get the serial port under pdaxrom to successfully work. It's interfacing to my microcontroller, and I have stepped it down to 3.2volts max signal...  The problem is that I'm not getting the correct data......

I've tried command line stuff, but it doesn't want to work properly for me either. I can see this stuff on my windows pc in telnet without a problem.

9600 baud, 8 bits data, 1 stop bit, 1 start bit, no parity...

It also seems that I have no flow control...

anyone got any simple commands or bits of a c program i can try? I've been using a c program called com... it lets you supply information and displays the results... but  they are not correct...

Hyperterminal works grand......    on the 3v interface the high is exactly 3volts and the low very close to zero so i think the levels are okay.... it's been driven for a CD4050 buffer chip which should have more than enough switching speed!
« Last Edit: February 04, 2005, 08:20:37 am by omega »
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Serial Port Woes...
« Reply #1 on: February 04, 2005, 07:59:53 am »
Is there a terminal program for pdaxrom? Minicom doesn't want to behave for me...

I have the program written and it's graphing on gnuplot but the values are being read wrong from the serial port
« Last Edit: February 04, 2005, 08:32:50 am by omega »
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Serial Port Woes...
« Reply #2 on: February 09, 2005, 04:41:11 am »
Anyone got any idaes - the serial port should work correctly just using the rx / signal ground lines?
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Serial Port Woes...
« Reply #3 on: February 09, 2005, 06:31:23 am »
rx/tx & gnd (pins 2,3 & 5 I think).

Check you've not got the rx & tx the wrong way round (sticjk a null modem cable in and see if it works then).

Minicom works for me, what troubles are you having with it?


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Serial Port Woes...
« Reply #4 on: February 23, 2005, 08:34:31 am »
Sorry lardman for not replying...

Got it working! The problem was that I made a 5v TTL to 3v level shifter. It came to me last night that the MAX232 inverts the signals... Just had to replace the 4050 buffer with a inverter and away it went.
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Serial Port Woes...
« Reply #5 on: February 23, 2005, 10:34:12 am »
No worries, glad you got it working.

What are you doing with the microcontroler?


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Serial Port Woes...
« Reply #6 on: February 23, 2005, 11:25:12 am »
I am building a multi channel test and measurement system. I would like to have my Z function as a basic oscilloscope... I actually had gnuplot drawing the input waveforms this morning... I will have to find time to develop it further though..
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Serial Port Woes...
« Reply #7 on: February 23, 2005, 12:12:31 pm »
Cool. Sounds like an interesting project.

I've got a ratoc usb host card and was thinking of finding some USB DAQ hardware lying about (I work in an Engineering dept at uni) and seeing if I could get it working (I'm after temperatures mainly). I imagine usb oscilloscopes are also available.

In any case I'm going to have to look at what has driver source available.

Good luck, let us know how it goes.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

craigtyson

  • Sr. Member
  • ****
  • Posts: 462
    • View Profile
Serial Port Woes...
« Reply #8 on: February 23, 2005, 01:59:51 pm »
Not sure Im being mad but what about using the mic in as a scope input (up to 44KHz) its a simple 8bit? AtoD converter no?  With a buffer amp on the front to stop over voltage damage you could have a single trace Digital Scope. Its a pitty the mic isnt stereo.

Craig.

Heres a link to a Windows PC version PC Scope
« Last Edit: February 23, 2005, 02:02:55 pm by craigtyson »
Craig
SL-C1000, Angstrom GPE 2007.12r13
Ambicom WL1100C, SanDisk UltraII 1GB SD
 
Old Faithfull - SL-5500 battery out of the C750 (see below) TKC v1 (New) 1GB SD
Dead - SL-C750, Cacko 1.23 lite (Dropped, very messy!)
Ambicom WL1100C, SanDisk Dead - 1GB SD
Keep your Z on a bungee, you never know.....