Wiring Forum
http://wiring.org.co/cgi-bin/yabb/YaBB.pl
Discussion >> General Discussion, Status >> Linux testing needed
http://wiring.org.co/cgi-bin/yabb/YaBB.pl?num=1255365296

Message started by barragan on 10/12/09 at 16:34:56

Title: Linux testing needed
Post by barragan on 10/12/09 at 16:34:56
We need to test wiring-0021 on linux, anybody?

Title: Re: Linux testing needed
Post by Andy on 10/25/09 at 21:04:14

barragan wrote on 10/12/09 at 16:34:56:
We need to test wiring-0021 on linux, anybody?  


barragan, I will begin testing 22 on my Fedora 12_64bit box.

Title: Re: Linux testing needed
Post by Andy on 10/25/09 at 21:41:27
barragan, I've ran into a syntax difference from 19 to 22, this works on 19:

buffer.append(char(val));

During compile I receive this error:

error: 'class String' has no member named 'append'

Please advise for further debugging, I'm happy to help.



Title: Re: Linux testing needed
Post by barragan on 10/25/09 at 22:59:21
hi Andy, great, yes this method was removed from the String class, originally append comes from the Java StringBuffer class, but now you can use the concat or + operator with Strings, check the new examples:

http://wiring.org.co/learning/reference/String.html

we also added the Vector class:
http://wiring.org.co/learning/reference/Vector.html

and a helper function to Split a string into a Vector of numbers:
http://wiring.org.co/learning/reference/splitString_.html

Let me know.



Title: Re: Linux testing needed
Post by Andy on 10/25/09 at 23:23:03
Understood, I will rework the code and post back when I have a bit of runtime.

Don't forget to modify this example since .append has been depreciated:

http://wiring.org.co/learning/examples/usb_weather.html

Thanks again!

Title: Re: Linux testing needed
Post by barragan on 10/26/09 at 00:07:37
thanks Andy it is fixed now.

Title: Re: Linux testing needed
Post by Andy on 12/16/09 at 00:00:18
Very sorry for the long delay!  Currently Wiring upload to the IO Board is broken in linux.

Communication to the IO Board is dependant on libtermcap.so.2 which has been depreciated in linux for quite a while.  I created a symbolic link from the replacement libncurses.so to libtermcap.so.2.  Otherwise uploading would crash on file not found.

After this while uploading the only output I receive is:

avrdude: stk500_2_ReceiveMessage(): timeout

All other functions appear to work in linux.  I am happy to test, please provide instruction.

Wiring version 23 on Fedora 12_x64.

Thanks
Andy



Title: Re: Linux testing needed
Post by barragan on 12/17/09 at 04:29:22
hi Andy, thank you, are you able to get all source and set it up in your machine? this would help you to build wiring locally make changes and test again, instructions to get the code are here:

http://wiring.uniandes.edu.co/build.html

Let me know.

Title: Re: Linux testing needed
Post by Andy on 12/17/09 at 17:03:44
Absolutely!  Look for a response by the end of the weekend.

Andy

Title: Re: Linux testing needed
Post by Andy on 12/17/09 at 23:11:16
Building wiring was very easy!  I am ready to test.  Here is basically the same output:


Code:
[root@george linux]# ./run.sh
/root/sketchbook/libraries
found is false
Experimental:  JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7

avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
[root@george linux]#


BTW, forum email notifications don't seem to be working.

Thanks
Andy

Title: Re: Linux testing needed
Post by barragan on 12/19/09 at 04:49:43
thanks andy, IŽll check the mail notifications. Which board are you using? Looks like the Firmware protocol is the 1.5 instead of the 2.0 can you try that. you can select it in the tools -> Firmware version menu.

Title: Re: Linux testing needed
Post by Andy on 12/19/09 at 20:06:37
Yes, v2.0 was selected.  I don't know what version my board is but it has always worked on v2.0 in Wondoze.

Thanks!

Title: Re: Linux testing needed
Post by Andy on 12/19/09 at 20:44:51
barragen, I got it working!  I downloaded my Distros rxtx.x86_64 package then:


Code:
cp /usr/lib64/rxtx/librxtxSerial.so /home/george/wiring/build/linux/work/lib/serial/


And all is good!  Thanks for the help.  So for Fedora 12x64bit Wiring is working well with the above patch.

Andy

Title: Re: Linux testing needed
Post by Andy on 12/19/09 at 21:40:37
Ok, looks like I spoke to soon.  I seem to only get one upload then I have to restart for it to work again. 

So one up load, then a restart.  Perhaps a process hanging, but I've checked and avrdude is not locked/hung.  Bouncing the Wiring app does not help.

Title: Re: Linux testing needed
Post by Andy on 12/25/09 at 21:03:11
I've done a couple things and am now able to flash the board from Fedora 12 64bit.  I compiled rxtx from source (although I think this was not necessary) but have found that if I hit the reset button just after the "Upload to Wiring Hardware" it works!

I am thinking that maybe just hitting the reset did the trick.  Perhaps the linux rxtx is not properly using the DTR function?

Thanks
Andy

Title: Re: Linux testing needed
Post by barragan on 12/26/09 at 02:28:28
It might be related to that, is your baord revision 0004?

Title: Re: Linux testing needed
Post by Andy on 12/26/09 at 03:11:41

barragan wrote on 12/26/09 at 02:28:28:
It might be related to that, is your baord revision 0004?

Yes, revision 0004.

Title: Re: Linux testing needed
Post by barragan on 12/27/09 at 07:54:58
to conclude, things work by pressing the reset button right?. This also seem to happen sometimes in osx as well. I'll check it. Thanks Andy.

Title: Re: Linux testing needed
Post by Andy on 12/27/09 at 15:29:04

barragan wrote on 12/27/09 at 07:54:58:
to conclude, things work by pressing the reset button right?. This also seem to happen sometimes in osx as well. I'll check it. Thanks Andy.


Correct, but yesterday I did an SVN pull and it has worked the last couple times without pressing the reset button first.

Thanks
Andy

Wiring Forum » Powered by YaBB 2.5 AE!
YaBB Forum Software © 2000-2010. All Rights Reserved.