Changeset 144
- Timestamp:
- 09/20/2008 12:37:40 PM (5 years ago)
- Location:
- trunk/src/com/romraider/io/j2534
- Files:
-
- 3 edited
-
api/J2534.java (modified) (1 diff)
-
api/TestJ2534.java (modified) (2 diffs)
-
op20/J2534OpenPort20.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/romraider/io/j2534/api/J2534.java
r143 r144 18 18 void writeMsg(int channelId, byte[] data); 19 19 20 // FIX - Needs to return msg type, etc. Create Response object.21 20 byte[] readMsg(int channelId); 22 21 -
trunk/src/com/romraider/io/j2534/api/TestJ2534.java
r143 r144 7 7 import static com.romraider.io.j2534.op20.OpenPort20.FLAG_NONE; 8 8 import static com.romraider.io.j2534.op20.OpenPort20.PROTOCOL_ISO9141; 9 import com.romraider.util.HexUtil; 9 10 10 11 public final class TestJ2534 { … … 27 28 28 29 byte[] ecuInit = {(byte) 0x80, (byte) 0x10, (byte) 0xF0, (byte) 0x01, (byte) 0xBF}; 30 29 31 api.writeMsg(channelId, ecuInit); 32 byte[] response = api.readMsg(channelId); 33 34 System.out.println("Request = " + HexUtil.asHex(ecuInit)); 35 System.out.println("Response = " + HexUtil.asHex(response)); 30 36 31 37 } finally { -
trunk/src/com/romraider/io/j2534/op20/J2534OpenPort20.java
r143 r144 89 89 } 90 90 91 // FIX - Needs to check msg type and retry until msg received 91 92 public byte[] readMsg(int channelId) { 92 93 PassThruMessage msg = passThruMessage();
Note: See TracChangeset
for help on using the changeset viewer.