Author Topic: The Z as a PIC Programmer / Oscilloscope  (Read 7228 times)

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
The Z as a PIC Programmer / Oscilloscope
« Reply #15 on: December 06, 2004, 08:21:40 am »
Hi all, I found that i could write a C program and directly pipe the output into gnuplot.

I am going to order a serial connector and make up a cable... My question is, does the serial port work directly in pdaxrom?
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.

Little_Goomba

  • Newbie
  • *
  • Posts: 31
    • View Profile
The Z as a PIC Programmer / Oscilloscope
« Reply #16 on: December 06, 2004, 12:51:52 pm »
Omega,

Reading this post gives me Deva Vu.  Are you also soliciting information from gnupic@linuxhacker.org?   It seems I've got a similar goal, but you've been working on this longer than me.  I'd like to get in touch with you sometime soon.
Model - 6000L w/ ExpansionPack, 4Gb microdrive, 1Gb SDRAM
Metrowerks OpenPDA V1.0
Java Zaurus V1.0
Qtopia V 1.5.4
Kernel 2.4.18

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
The Z as a PIC Programmer / Oscilloscope
« Reply #17 on: February 02, 2005, 10:46:01 am »
Hi all, still working away on this project. Well actually i'm finishing up the other parts of the project (multichannel multiple lcd multimeter), and now i'm starting to look again at the oscilloscope functionality that I wish to add.

I can't remember if i stated it before, but i have developed a beta of the assembly code for the microcontroller and i have been able to display a waveform in Matlab running on windows. However, I want this to work on my Z!  

Here's what I need - some direction on how to read the serial port within a gcc compiled c program in RC8 pdaxrom. I have found the serial howto / serial programming howto and I will be reading these shortly but at first glance they don't seem to offer simple code for asynchronous reception of data over the serial port...   It must be somewhere, however after looking through dozens of books in our college last night including ones for engineers, etc I could not find any suitable information.
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.

cwaig

  • Full Member
  • ***
  • Posts: 153
    • View Profile
The Z as a PIC Programmer / Oscilloscope
« Reply #18 on: February 02, 2005, 11:43:40 am »
just open the serial port (one of the /dev/ttyS devices) as a file and read from it.

IRK does this for the irda serial port....
SL5500+Origo WIFI+Pocketop Keyboard+BlueMonkey Bluetooth+IBM Microdrive+SL6000+iRiver USB host+PackardBell USB RF mini-mouse+Cheapo Kingmax USB laptop Keyboard+Dynamode USB Ethernet Adaptor
Wrote a couple of things....
IRK, SubApplet, QMode2, NetActive, SimpleEdit, zPocketScript.

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
The Z as a PIC Programmer / Oscilloscope
« Reply #19 on: July 25, 2005, 06:09:01 am »
I saw this in Components In Electronics Magazine this morning:

http://www.elandigitalsystems.com/usb/usbscope50.php

looks like a really neat/useful device. pity there's no mention of linux support in any sense. I might email them anyway, as even a basic USB driver or specification would be v useful.
« Last Edit: July 25, 2005, 06:09:32 am by speculatrix »
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

technojunkie

  • Full Member
  • ***
  • Posts: 172
    • View Profile
The Z as a PIC Programmer / Oscilloscope
« Reply #20 on: July 25, 2005, 11:07:48 am »
That would be awesome if we could get one of those working on a 6k/1k/3k. nothing like having an oscilloscope/logger in your pocket
SL 5500 Cacko 3.10 ROM 64-0, Symbol Wifi
storage on 256MB Lexar High Speed SD card
64MB/32MB CF cards for removable storage.
---------------------------------------------------------
Doing my part to keep the 5500 platform alive

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
The Z as a PIC Programmer / Oscilloscope
« Reply #21 on: July 25, 2005, 11:23:38 am »
Quote
http://www.elandigitalsystems.com/usb/usbscope50.php

I emailed elan to ask price, availability USB drivers for  linux and PDAs. They told me to talk to their distributor Peak UK, and I'm currently waiting for a reply.

Like others, I have wondered whether the microphone input could be used; it'll probably be limited to 10Hz up to 10kHz, with a capacity to block DC and some sort of low pass filter to reduce digital hash; however, it could still be useful.

Paul
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
The Z as a PIC Programmer / Oscilloscope
« Reply #22 on: July 27, 2005, 12:33:19 pm »
Quote
talk to their distributor Peak UK, and I'm currently waiting for a reply.

I got a reply from peak's saleman, he said it was OK to publish his reply:
Code: [Select]
Thank you for your enquiry, yes we can supply the USBscope, we will take our first delivery in mid August.

The cost for a 1 off is £198.53 + £5.50 carriage and VAT.

The current consumption is 200Ma but it is really dependant on the other hardware you are using, it is supplied with software for 98SE, 2K and XP.

There is a possibility of Elan including Linux support, as many of their other products do but nothing has been confirmed as yet.

We have nearly sold out of the first batch coming in so if you need one its well worth getting an order in.

Regards,

Stephen Mander
Industrial & OEM Sales
Peak Development Ltd

I also talked to him by phone, and he says Elan might be persuaded to do a linux driver and SDK, and let the opensource community do the rest! I suggested that you could use this as a high performance AD converter and do magic things like software radios. I asked about current consumption, and he says as yet he doesn't know if it's the peak or the average - more details will be available when they start to ship.

I reckon 200mA would be a bit much for a Z 1000, 3000 or 3100 to source, but a battery powered USB hub would probably do it. Even so, you'd still have a really neat pocket scope.

Paul
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

seinfield

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
    • http://
The Z as a PIC Programmer / Oscilloscope
« Reply #23 on: July 27, 2005, 01:32:33 pm »
I use PIC too. But why you dont make a program that accepts serial data to the IRDA of the zaurus and then plot it or make a ir serial terminal to show and send data from the zaurus.

By the way, i have the GBDSO (GameBoy Digital Osciloscope)    

With this GBDSO i made my ultrasonic distance sensor of my little robot.