sdenier / Geco

Lightweight desktop application for management of orienteering events
http://sdenier.github.io/Geco
10 stars 6 forks source link

Cannot connect my SI box #47

Open lauderdice opened 6 years ago

lauderdice commented 6 years ago

Hi, I am currently doing a project at school and building a similar program for orienteering events. I have trouble installing the drivers on Mac OS according to your tutorial on the web. Do you I could PM you and ask a couple of questions? Cheers, Jan

sdenier commented 6 years ago

Sure, I am not really active anymore on this topic but I can see what I can do

lauderdice commented 6 years ago

So basically what I am trying to achieve is to implement a feature in our app that if I click a button, the data will be read from the SI device to our app. Therefore I am trying to connect it with the GecoSI library, but I can’t figure out how it works because when I try the java net.gecosi.SiHandler (on Windows I try with COM3 and on Mac I am not able to install the drivers according to the steps) I get NoSuchPortException, even though that in Sportident Config I see that it is mapped to the port COM3

I dont know why on Mac OS the driver doesnt work.... I follow all the steps but the device still remains as /dev/tty.usbmodem-xxxxxxx.

sdenier commented 6 years ago

Can you write a little program which list the ports as seen from the lib? Just use the gnu.io.CommPortIdentifier#getPortIdentifiers from the gnu.io package

https://stackoverflow.com/questions/16059825/cant-list-com-ports-on-my-computer-with-java

As for Mac OS, as there was never some official support, the process may change and I didn't replay it for a long time. It's trial and error. Altough it seems to me some people succeeded to plug the station without modifying the driver.

lauderdice commented 6 years ago

So I eventually managed to get it going, it work very good, but my only problem is when I want to stop the communication. I call the SiHandler.stop() but I get the following error. screen shot 2018-05-12 at 13 56 18

sdenier commented 6 years ago

There is not much information in this crash report. Did you try the given instructions for further debug? Where is your code?