JP1 Remotes Forum Index JP1 Remotes


FAQFAQ SearchSearch 7 days of topics7 Days MemberlistMemberlist UsergroupsUsergroups RegisterRegister
ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in

[solved] Using a FTDI Board to interface JP1
Goto page Previous  1, 2
 
Post new topic   Reply to topic    JP1 Remotes Forum Index -> JP1 - Hardware
View previous topic :: View next topic  
Author Message
hjgode



Joined: 23 Dec 2013
Posts: 14
Location: germany

                    
PostPosted: Wed Apr 12, 2017 7:08 am    Post subject: JP1.3 with FTDI adapter DTR only Reply with quote

Hello

now, some years later, my Harmony 300 is getting sick (the OK press does not work always), I found my RCA RCRP05b and wnat to use that with a Sony LCD TV (49KDL755), the VU+ Solo2 and a Bose soundbar.

So I downloaded all the tools and rdmu files to re-program the RCRP05B with the FTDI adapter I used previously. Unforntunately neither IR802/804 nor RemoteMaster were able to find the Remote Sad

Then I tested following "Identifying JP1.2 & JP1.3 Remotes" using RealTerm. Fortunately the remote answers when I use DTR instead of RTS and so I know, it still is operating:


www.hjgode.de/RCRP05B/realterm.png

Now, there is something wrong with the serial remote protocol. I downloaded the RemoteMaster JAVA source, but this was not helpful except that it points to the jp12serial library. So I download the jp12serial source code and then looked at the jp13Connect function:

Code:
int jp13Connect( void )
{
   if ( !jp12EscapeComm( SETRTS ))   // ON/+10V/0 makes IDC-5 Low
      return 0;
   if ( !jp12EscapeComm( CLRBREAK )) // OFF/-10V/1 makes IDC-4 High
      return 0;

   Sleep( 100 );
   if ( !jp12EscapeComm( CLRDTR ))   // OFF/-10V/1, discharge capacitor
      return 0;
   Sleep( 10 );                      // allow capacitor to discharge
   if ( !jp12EscapeComm( SETBREAK )) // ON/+10V/0 makes IDC-4 Low
      return 0;                       // JP1.3 remote tests for Low 56 cycles after Power On Reset
                              // so need to set break ON early

   if ( !jp12EscapeComm( SETDTR ))   // ON/+10V/0, Reset pulse delay(10-20ms) from capacitor charge up
      return 0;                       // this generates the result pulse width

   Sleep( 100 );  // wait at least 50ms with IDC-4 Low for JP1.3 to go into BootLoader mode
   if ( !jp12EscapeComm( CLRBREAK )) // OFF/-10V/1 makes IDC-4 High
      return 0;

   Sleep( 10 );

   return 1;
}


That does not look like the manual sequence I used with RealTerm (SetBreak, SetDTS, ResetDTS, ClrBreak). So I rewrote that function to:

Code:
int jp13Connect( void )
{
   //exit from serial mode if any
   if ( !jp12EscapeComm( SETDTR ))
      return 0;
   Sleep( 10 );
   if ( !jp12EscapeComm( CLRDTR ))
      return 0;
   Sleep( 10 );

   //clear all
   if ( !jp12EscapeComm( CLRDTR )) //already done
      return 0;
   if ( !jp12EscapeComm( CLRBREAK ))
      return 0;
   Sleep( 100 );
   //set to Serial Mode
   if ( !jp12EscapeComm( SETBREAK ))
      return 0;
   Sleep(10);
   if ( !jp12EscapeComm( SETDTR ))
      return 0;
   Sleep( 100 );
   if ( !jp12EscapeComm( CLRDTR ))
      return 0;
   Sleep( 100 );
   if ( !jp12EscapeComm( CLRBREAK ))
      return 0;
   Sleep( 10 );

   return 1;
}


Then I compiled this new jp12serial.dll for x86 and x64 and put the DLLs in the Windows-x86 and Windows-amd64 folders of the RemoteMaster installation.
I now started RMIR and voilá, Remote Master was able to find the Remote and download the data.

VS2008 source code of my modded jp12serial.dll code: www.hjgode.de/RCRP05B/jp13serial_modded_source_VS2008.zip

The binaries only: www.hjgode.de/RCRP05B/JP13_modded.zip

Thanks to all for providing the source code. Otherwise I would not have been able to get this working without buying another FTDI board.

~Josef
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic       JP1 Remotes Forum Index -> JP1 - Hardware All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

Powered by phpBB © 2001, 2005 phpBB Group
Top 7 Advantages of Playing Online Slots The Evolution of Remote Control