Author Topic: External Keyboard Interface...  (Read 3142 times)

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
External Keyboard Interface...
« on: April 26, 2005, 10:38:52 am »
Hi,

In the summer I intend to make an interface for a standard ps/2 keyboard to the zaurus via the serial port...  I may also make it in the same box as a battery extender....

My question is this: is there an easy way to route ASCII characters from a serial port to the internal keyboard buffer?  I.E. I will handle getting the keystrokes from the ps/2 via a microcontroller, it's just getting the information routed within the zaurus is what I need some insight into...

If it were possible to do the same with a ps/2 mouse, how easy would this be to incorporate into X?   How easy would it be to connect a serial mouse to work in X on the zaurus, assuming I took care of voltage level conversion?
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://
External Keyboard Interface...
« Reply #1 on: April 26, 2005, 10:39:51 am »
Regarding the mouse. I feel that it would be possible to incorporate the circuitry inside the mouse itself and then just have a zaurus i/o port plug on the end... So how difficult would it be for x to work with a serial mouse?
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.

sashz

  • Sr. Member
  • ****
  • Posts: 388
    • View Profile
    • http://
External Keyboard Interface...
« Reply #2 on: April 26, 2005, 12:14:18 pm »
Quote
Regarding the mouse. I feel that it would be possible to incorporate the circuitry inside the mouse itself and then just have a zaurus i/o port plug on the end... So how difficult would it be for x to work with a serial mouse?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=76925\"][{POST_SNAPBACK}][/a][/div]

edit startx for start X with arg -mouse /dev/ttyS0

sashz

  • Sr. Member
  • ****
  • Posts: 388
    • View Profile
    • http://
External Keyboard Interface...
« Reply #3 on: April 26, 2005, 12:20:06 pm »
Quote
My question is this: is there an easy way to route ASCII characters from a serial port to the internal keyboard buffer?  I.E. I will handle getting the keystrokes from the ps/2 via a microcontroller, it's just getting the information routed within the zaurus is what I need some insight into...

Your controller will connect or mouse or keyboard? Or possible use both (controller will use own protocol for transfer datas from keyboard and mouse via serial port)?
There 2 way - add custom driver into kernel, or add suport in XServer. Second way easy, but will work only in X11 environment.

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
External Keyboard Interface...
« Reply #4 on: April 27, 2005, 07:21:15 am »
I presume "only work in X11" would include X11 terminal?  I don't know how both would be connected to a single serial port... as you say I could implement my own protocol over the serial link...  I will look into it in the summer (starting mid-June) and get back to you then if I need more info.  By the sounds of it, I will look at the serial mouse first!
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.

sashz

  • Sr. Member
  • ****
  • Posts: 388
    • View Profile
    • http://
External Keyboard Interface...
« Reply #5 on: April 27, 2005, 08:01:16 am »
Quote
I presume "only work in X11" would include X11 terminal?  I don't know how both would be connected to a single serial port... as you say I could implement my own protocol over the serial link...  I will look into it in the summer (starting mid-June) and get back to you then if I need more info.  By the sounds of it, I will look at the serial mouse first!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=77093\"][{POST_SNAPBACK}][/a][/div]
ofcourse, in all X applications

both to single - multiplexing 2 serial streams to one stream in MCU, and demultiplexing it in kernel driver or XServer input methods

DaMightyWhightyMan

  • Newbie
  • *
  • Posts: 49
    • View Profile
External Keyboard Interface...
« Reply #6 on: June 11, 2005, 05:54:06 am »
I'd pay money for a serial keyboard that'd work with my Z : )

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
External Keyboard Interface...
« Reply #7 on: June 13, 2005, 05:04:03 am »
I'm still finishing off some other work, but it's on my list!  I have seen some roll-up rubber keyboards on ebay that would be very handy!
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.

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
External Keyboard Interface...
« Reply #8 on: June 16, 2005, 05:35:06 am »
Quote
I'm still finishing off some other work, but it's on my list!  I have seen some roll-up rubber keyboards on ebay that would be very handy!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=84041\"][{POST_SNAPBACK}][/a][/div]
I have one. they are kinda cheesy--but work. the more expensive nema keyboards a re nicer rollups.

I would REALLY love to have my belkin ir keyboard working on my 6k w/pdaxrom.

can it be arranged?
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf