HaplyHaptics / chai3d

The Open Source Haptic Framework with Haply devices support
http://www.chai3d.org
Other
3 stars 0 forks source link

m_board->data_available() always returns 0 #2

Open gabepierng opened 5 years ago

gabepierng commented 5 years ago

Am testing one of the chai3d examples with the Haply Development Board on a Windows desktop connected to one of the COM ports. Chai3D is establishing the serial connection successfully and outputting packets to the board. However the line result = m_board->data_available() always returns 0, i.e. the serial buffer is empty.

The board sends and receives just fine whenever the example from Haply-API-cpp is run, so the firmware and any serial setup on the board-end seems to be correct.

ChristianFrisson commented 5 years ago

Have you compiled the working Haply-API-cpp example as submodule of Chai3d or outside Chai3d?

What is the commit version for Haply-API-cpp? https://github.com/HaplyHaptics/Haply-API-cpp/commit/8d1b3543ccc3482338de126ee8e93bffd347bc21 ?

gabepierng commented 5 years ago

I currently have the latest firmware on the board. And I actually had not compiled the submodule in Chai3d. I did that, and that one does not work. When I tested it outside chai3d and it worked, was on a Mac OS.

The version I have has the changes made in the most recent commit with the Haply::bytes replacement

gabepierng commented 5 years ago

I just compiled the example outside chai3d, but in VS on the windows desktop and it is having similar issues. Continuously prints Data not available @ frame xxxx so must be an issue only on the windows machine

Edit: Built it on the Mac. The haply-API-cpp example works when built within chai3d (as it did when I built it outside of Chai3D), but the example has the same problem where it isn't getting any serial data from the board.

Edit 2: Examples sending and receiving serial data on Mac in chai3d example