Welcome, Guest. Please login or register.

Author Topic: CDTV mouse protocoll?  (Read 5416 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Cignale

  • Newbie
  • *
  • Join Date: Dec 2011
  • Posts: 6
    • Show only replies by Cignale
Re: CDTV mouse protocoll?
« Reply #14 from previous page: December 23, 2011, 08:56:43 AM »
In this chamaleon forum thread there are the "codes" explained; maybe
this can help ?


http://tech.groups.yahoo.com/group/chameleon_64/messages/627?threaded=1&m=e&var=1&tidx=1
« Last Edit: December 23, 2011, 12:13:43 PM by Cignale »
 

Offline omnicron10

  • Full Member
  • ***
  • Join Date: Dec 2006
  • Posts: 216
    • Show only replies by omnicron10
Re: CDTV mouse protocoll?
« Reply #15 on: December 23, 2011, 09:56:59 AM »
That might do it. I will have to see how it works. I was thinking the mouse was different than the controller but when the controller has mouse mode activated it might act as a mouse.   I am thinking of using a Propeller CPU and SPIN to write a driver for PS2 to 40 KHZ CDTV mouse and joystick IR brick for use with a CDTV and Chameleon.  I hope to get it going this coming year...
A500/030 40mhz with A530, Indivision ECS, , KS 3.1, 2 Megs Chip, 8 Megs fast.
A600 Vampire II
SAM440EP 667, Amiga OS 4.1u1
Dual G4 1.2 Mac MorphOS
Chameleon
CD32
SX64
128D
128
C64
64C
 

Offline freqmaxTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 2179
    • Show only replies by freqmax
Re: CDTV mouse protocoll?
« Reply #16 on: December 23, 2011, 03:18:54 PM »
This is how the remote looks like:

Vesalia.de - CDTV Remote Control


And this seems to be the protocol then ;)

YahooGroups: chameleon_64 ยท Turbo Chameleon 64: CDTV Infrared Remote Codes
"This is what I think, as the serial codes from IR, Keyboard and Mouse are all handled by the same MCU in the CDTV. My guess is the codes are all the same :)"

"Ofcourse I know the codes as I made the receiver code on the Chameleon. The carrier is indeed 40 Khz and the remote uses something that looks like morse-code. The codes are 12 bits long but are send twice with the second copy all bits are flipped. This is verification that the code is correctly received.

Code starts with 9 ms transmission (at 40Khz) then a pauze of 4.5. Followed by pulse (400 us) + either short or long pause, then another pulse + either short or long pause etc 24 times. Then one pulse extra at the end.

Pulses are about 400 us long (0.4 ms). Short pauses are 0.4 ms as well. Long pauses are 1.200 ms (1200 us).

When key is held it sends repeat codes every 60 milliseconds. 9 ms pulse followed by 2.1 ms pauze and then the 0.4 ms end pulse.

The codes are as follows (remember to invert long and short and send then again before sending the end bit of 0.4 ms).

1  SSSS_SSSS_SSSL

2  SSSS_SSLS_SSSL

3  SSSS_SSSL_SSSL

4  SSSS_SSSS_LSSL

5  SSSS_SSLS_LSSL

6  SSSS_SSSL_LSSL

7  SSSS_SSSS_SLSL

8  SSSS_SSLS_SLSL

9  SSSS_SSSL_SLSL

0  SSSS_SSLL_LSSL

escape  SSSS_SSLL_SSSL

enter  SSSS_SSLL_SLSL

genlock  SSSS_SSLS_SSLS

cd/tv  SSSS_SSSS_SSLS

power  SSSS_SSSL_SSLS

rew  SSSS_SSLL_SSLS

play/pause  SSSS_SSSS_LSLS

ff  SSSS_SSSL_LSLS

stop  SSSS_SSLS_LSLS

vol up  SSSS_SSSS_SLLS

vol down  SSSS_SSLL_LSLS

Mouse A  SSSS_LSSS_SSSS

Mouse B  SSSS_SLSS_SSSS

Mouse A+B  SSSS_LLSS_SSSS

Mouse Up  SSSS_SSLS_SSSS

Mouse Right  SSSS_SSSS_SLSS

Mouse Down  SSSS_SSSL_SSSS

Mouse Left  SSSS_SSSS_LSSS

Joy A  LSSS_LSSS_SSSS
"