Jump to content

JosephArmbruste

Members+
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About JosephArmbruste

  • Rank
    RC-Cam Visitor
  1. Thanks everyone for your insight. I will let you all know what I end up putting together for this. Cheers!
  2. My apologies, I just reviewed and it looks like the tabs were removed from the python code. . . Ooops !
  3. Hi, I have a JR Sport S400 controller hooked up to the PIC96 serial -> transmitter cable. My ultimate goal is to operate my alpha trainer from my computer. I figured a good first step would be to hook my PC via serial up to the the transmitter and: - decode the data received - figure out what data needs to be sent to modify the state of each channel I hooked up the controller and in NON-trainer mode, listened to the bytes I was receiving. I hacked together the following blip of python to read / analyze the data: import serial ser = serial.Serial('/dev/ttyS1', 9600, timeout=5) while(1): x = ord(ser.read()) print x if x == 0: break while(1): x = ser.read(6) x = map(ord,x) print '%3d %3d %3d %3d %3d %3d' % (x[0], x[1], x[2], x[3], x[4], x[5]) ser.close() The bytes are pretty self explanatory, in fact, this is what the bytes looked like from no-throttle to full-throttle. 151 106 105 105 246 0 151 106 105 105 246 0 151 106 105 105 246 0 151 106 105 106 246 0 151 107 105 106 246 0 151 107 105 105 246 0 152 107 105 106 246 0 152 107 106 106 246 0 152 107 106 106 246 0 152 107 106 106 246 0 152 107 106 106 246 0 152 107 106 106 246 0 152 107 106 106 246 0 153 108 106 107 246 0 153 108 106 107 246 0 153 108 107 107 246 0 153 108 106 107 246 0 153 108 107 107 246 0 153 108 107 107 246 0 153 108 107 107 246 0 153 108 107 108 246 0 154 109 107 108 246 0 154 109 107 108 246 0 154 109 107 108 246 0 154 109 108 108 246 0 154 109 108 108 246 0 154 109 108 108 246 0 155 110 108 108 246 0 155 110 108 108 246 0 155 110 108 109 246 0 155 110 109 109 246 0 155 110 109 109 246 0 155 110 109 109 246 0 156 111 109 110 246 0 153 111 109 110 246 0 137 111 110 110 246 0 119 111 110 110 246 0 103 112 110 110 246 0 88 112 110 111 246 0 78 112 111 111 246 0 72 112 111 111 246 0 73 113 111 111 246 0 73 113 111 111 246 0 72 113 111 111 246 0 So, I can figure out reasonably easily what bytes I am receiving and what they mean. Now, onward to the 'controlling' part. I have no clue what the PIC92 is expecting to receive in order to change the state of a specific channel OR more importantly, IF the PIC92 is meant to receive data at all. . . Which leads to my questions :-) a) Is the JR PIC92 cable a two way street? So that it can both receive commands and transmit state information. Right now, I am assuming this is the case, since when I switch trainer-mode on, I no longer receive any bytes. I was warned by one individual that this interface may simply exist to operate with flight-simulator programs (aka, never receive any data... just transmit). If the JR PIC92 is meant to receive commands, does anyone have any insight into what they might be? Is there any standard set of instructions that the RC community has come to agree upon for their pic interfaces to these devices? In 2008, am I Really going to have to get out a soldering iron for this.... 8>) Thank you all in advance!
×
×
  • Create New...