• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaFX 8 FT232 Serial Communication Issue

 
Nazim Yildiz
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I'm using yad2xx(http://sourceforge.net/projects/yad2xx/) library for FT232 device to communication between PC and stm32f303 microcontroller. I'm facing with an issue about wrong data flowing between those systems.

I'm sending bytes from my GUI which is created with JavaFX 8 and I'm reading those bytes from my stm32f303 device. I'm reading some bytes but they are wrong.
For instance, I'm sending a = 0x61 and b = 0x62 characters but I'm reading them from microcontroller side respectively 0x06 and 0x18.

Here is my JavaFX button click event source code:


On microcontroller side I'm saving these bytes in char array.

And here are some SS:

y√ľkle resim

I'm not a java expert I'm an electrical & electronic engineer, I spend too much time while trying to solve this issue but I cant succeed. So I need your helps.
Have a nice day.
 
John Damien Smith
Ranch Hand
Posts: 296
14
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The yad2xx library was downloaded six times this week. So it is not a high use library that people in general will have a lot of experience with. Also, your issue appears to be related to the serial communication rather than anything JavaFX specific. So this is probably not the best forum to get assistance with your project. I advise contacting the creator of the yad2xx project directly and asking him to assist you. Or you could contact the creator of the alternate JavaFTD2XX project (https://kenai.com/projects/javaftd2xx/pages/Home) who states on his documentation page that his email is in the source code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic