|
|
View previous topic :: View next topic |
Author |
Message |
Ttelmah
Joined: 11 Mar 2010 Posts: 19546
|
|
Posted: Sun Aug 17, 2014 12:42 pm |
|
|
I think the key is his understanding of numbers.
He says he has changed the application to send 0 and 1.
This is wrong....
PCM_programmers application expects to receive ASCII '1' or ASCII '0', which is 0x31, or 0x30 (in hex), or 49/48 in decimal. The application shown, sends _decimal_ values as a byte, so the values need to be changed to 48/49. I think he has changed them to 0 and 1.... |
|
|
nando88
Joined: 25 Aug 2013 Posts: 28
|
Values |
Posted: Mon Aug 18, 2014 6:31 am |
|
|
I just don't understand, what values should I send. In the original application, the values that where being read where 127 & 126. If you see the example, those are the values that are being used. I just don't understand what's the difference between the values that are being read. The other thing is that I can't make it work with java, and should be as easy as following the tutorial, but I can't make it work. Making it work with java is the whole purpose of my project.
Please help me fix this.
Thanks! |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Aug 19, 2014 11:14 am |
|
|
This is not a Java developer's forum. You want to write a Java application
that can:
1. Call a Windows function and find out what Com port has been assigned
to the USB CDC device.
2. Configure Java to talk to that Com port.
3. Accept user keyboard input to the PC, and then send the keyboard
values to the Com port, which will then be sent (by USB) to the 18F4550
board, to turn on the LED.
We helped you with the PIC side. You need to find a Java forum to help
you with the Java side. |
|
|
|
|
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
|