tag:blogger.com,1999:blog-18365901.post5077940559763417142..comments2022-11-08T11:04:15.016-05:00Comments on Emmanuel's Blog: JNA love NXTEmmanuel Pirschhttp://www.blogger.com/profile/13515667125575595136noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-18365901.post-6551202244572363812009-01-31T01:00:00.000-05:002009-01-31T01:00:00.000-05:00This comment has been removed by a blog administrator.wow power levelinghttps://www.blogger.com/profile/17740059839891957088noreply@blogger.comtag:blogger.com,1999:blog-18365901.post-18471036299800886262008-04-20T05:09:00.000-04:002008-04-20T05:09:00.000-04:00Hi, I had a big problem using 3 I2C sensors (at th...Hi, I had a big problem using 3 I2C sensors (at the same time) and the fantom lib (readings came in the wrong order) finally this was resolved: i had to do a careful check on which bytes were send and taken care of. The bytes which are directly returned.<BR/>The next problem is probably not to be resolved: setting sensor registers cannot be done (LSWRITE a value to a register) because of the contrechochttps://www.blogger.com/profile/05317886168532628326noreply@blogger.comtag:blogger.com,1999:blog-18365901.post-39337361699744654312008-03-28T02:36:00.000-04:002008-03-28T02:36:00.000-04:00Yep, thx for the suggestion, this method using the...Yep, thx for the suggestion, this method using the bricks name (fantom.nFANTOM100_createNXT)works and connects instantly. I made some sketchy classes for the light sensor and some I2C sensors (sonar and mindsensors clock) all worked!<BR/>great!contrechochttps://www.blogger.com/profile/05317886168532628326noreply@blogger.comtag:blogger.com,1999:blog-18365901.post-8382302093126818392008-03-25T08:12:00.000-04:002008-03-25T08:12:00.000-04:00I'm aware of the timeout issue. I believe it's to ...I'm aware of the timeout issue. I believe it's to enable the Fantom API to have time to find the bluetooth devices. I've also reduced it to 5 seconds to make it more bearable.<BR/><BR/>I think we can use the "nFANTOM100_createNXT" method if we have the full identifying String (this is the name returned by nFANTOM100_iNXTIterator_getName). This should try to connect directly to the NXT brick Emmanuel Pirschhttps://www.blogger.com/profile/13515667125575595136noreply@blogger.comtag:blogger.com,1999:blog-18365901.post-51000743082428599062008-03-24T15:39:00.000-04:002008-03-24T15:39:00.000-04:00ok, for my students i wrote what i added and chang...ok, for my students i wrote what i added and changed, <BR/>http://nxt-adventures.blogspot.com/2008/03/fantom-api-and-java.html<BR/>all credits to the author emmanuel!<BR/>(actually the timeout is the most important "change"- making 5 sec of the 30, because the connection waited 30 sec before doing something with the direct commands)contrechochttps://www.blogger.com/profile/05317886168532628326noreply@blogger.comtag:blogger.com,1999:blog-18365901.post-24847650162549459872008-03-24T15:10:00.000-04:002008-03-24T15:10:00.000-04:00This comment has been removed by the author.contrechochttps://www.blogger.com/profile/05317886168532628326noreply@blogger.comtag:blogger.com,1999:blog-18365901.post-83417946208500725032008-03-24T14:54:00.000-04:002008-03-24T14:54:00.000-04:00This comment has been removed by the author.contrechochttps://www.blogger.com/profile/05317886168532628326noreply@blogger.comtag:blogger.com,1999:blog-18365901.post-830812721543695042008-03-24T09:15:00.000-04:002008-03-24T09:15:00.000-04:00Thx a lot!Because this works, so letting me send d...Thx a lot!<BR/>Because this works, so letting me send direct commands to the NXT using JAVA in Eclipse.<BR/>(I had to make and add a few exceptions: throws NXTNotFoundException, UnableToCreateNXTException)<BR/>My problem was, that i could connect very well using bluetooth with C# and C++ libs, but not with JAVA (icommand got to 90% :-(<BR/>and so i had to shift the lego FIRMWARE and lejos all thecontrechochttps://www.blogger.com/profile/05317886168532628326noreply@blogger.com