Home AMX User Forum NetLinx Studio

TASCAM CD-RW901 SL PROTOCOL PROBLEM

<
TASCAM PROTOCOL DOWNLOAD HERE

hi

i want some problem to TASCAM CD-RW 901 SL.
DEFINE_DEVICE
dvCDRec  = 5001:1:1		//TASCAM_CD-RW901 SL
dvTP     = 10001:1:1

DEFINE_CONSTANT

volatile integer CDREC_CONTROL_BTNS[]=
{
	91,  92,  93,  94,  95,  96,  97,  98,  99,  100,
	101
}

DEFINE_EVENT
DATA_EVENT[dvCDRec]
{
	online:
	{
		send_command data.device,"'SET BAUD 38400,N,8,1 485 DISABLE'"
		send_command data.device,"'HSOFF'"
	}
}

BUTTON_EVENT[dvTP,CDREC_CONTROL_BTNS]
{
	push:
	{
		switch( get_last( CDREC_CONTROL_BTNS ) )
		{
			case 1: send_string dvCDRec,"$0A,'012',$0D"	//PLAY
			case 2: send_string dvCDRec,"$0A,'01401',$0D"	//PAUSE
			case 3: send_string dvCDRec,"$0A,'010',$0D"	//STOP
			case 4: send_string dvCDRec,"$0A,'01601',$0D"	//REW
			case 5: send_string dvCDRec,"$0A,'01600',$0D"	//FF
			case 6: send_string dvCDRec,"$0A,'01A01',$0D"	//SKIP REW
			case 7: send_string dvCDRec,"$0A,'01A00',$0D"	//SKIP FF
			case 8: send_string dvCDRec,"$0A,'01301',$0D"	//REC
			case 9: send_string dvCDRec,"$0A,'03700',$0D"	//REPEAT OFF
			case 10: send_string dvCDRec,"$0A,'03701',$0D"	//REPEAT SINGLE
			case 11: send_string dvCDRec,"$0A,'03701',$0D"	//REPEAT ALL
		}
	}
}

source code is it.

but it is do not controll.

where is the problem ??

appending the protocol

Comments

  • yuriyuri Posts: 861
    SEND_COMMAND dvCDr, 'SET BAUD 19200,N,8,1'
    
    cPlay		= "$0A,$30,$31,$32,$0D";
    cStop	= "$0A,$30,$31,$30,$0D";
    
    cReverse	= "$0A,$30,$31,$36,$30,$31,$0D";
    cForward	= "$0A,$30,$31,$36,$30,$30,$0D";
    
    cPrev		= "$0A,$30,$31,$41,$30,$31,$0D";
    cNext		= "$0A,$30,$31,$41,$30,$30,$0D";
    
    cRecord		= "$0A,$30,$31,$33,$30,$31,$0D";
    cAssignTrack	= "$0A,$30,$31,$33,$30,$32,$0D";
    cMonitor	        = "$0A,$30,$31,$33,$30,$33,$0D";
    
  • yuri wrote: »
    SEND_COMMAND dvCDr, 'SET BAUD 19200,N,8,1'
    
    cPlay		= "$0A,$30,$31,$32,$0D";
    cStop	= "$0A,$30,$31,$30,$0D";
    
    cReverse	= "$0A,$30,$31,$36,$30,$31,$0D";
    cForward	= "$0A,$30,$31,$36,$30,$30,$0D";
    
    cPrev		= "$0A,$30,$31,$41,$30,$31,$0D";
    cNext		= "$0A,$30,$31,$41,$30,$30,$0D";
    
    cRecord		= "$0A,$30,$31,$33,$30,$31,$0D";
    cAssignTrack	= "$0A,$30,$31,$33,$30,$32,$0D";
    cMonitor	        = "$0A,$30,$31,$33,$30,$33,$0D";
    

    ah....

    set baud rate is wrong?

    thank you
    try this setting use.
  • yuriyuri Posts: 861
    Baudrate was wrong, yes :)
  • Yeap

    If baud rate is OK,
    try as follows:

    BUTTON_EVENT[dvTP,CDREC_CONTROL_BTNS]
    {
    push:
    {
    switch( BUTTON.INPUT.CHANNEL)
    {
    case 91: send_string dvCDRec,"$0A,'012',$0D" //PLAY
    case 92: send_string dvCDRec,"$0A,'01401',$0D" //PAUSE
    case 93: send_string dvCDRec,"$0A,'010',$0D" //STOP
    case 94: send_string dvCDRec,"$0A,'01601',$0D" //REW
    case 95: send_string dvCDRec,"$0A,'01600',$0D" //FF
    case 96: send_string dvCDRec,"$0A,'01A01',$0D" //SKIP REW
    case 97: send_string dvCDRec,"$0A,'01A00',$0D" //SKIP FF
    case 98: send_string dvCDRec,"$0A,'01301',$0D" //REC
    case 99: send_string dvCDRec,"$0A,'03700',$0D" //REPEAT OFF
    case 100: send_string dvCDRec,"$0A,'03701',$0D" //REPEAT SINGLE
    case 101: send_string dvCDRec,"$0A,'03701',$0D" //REPEAT ALL
    }
    }
    }


    Just have a try.
    If the problem is sovled,reply `.`
  • thak you for help me
Sign In or Register to comment.