Home \ Help \ Search \ Login RSS

Welcome, Guest. Please Login

This forum is now READ-ONLY! Please visit http://forum.wiring.co/ for the new forum.

Wiring ForumDiscussionGeneral Discussion, Status › Linux testing needed

Pages: 1 2 
Linux testing needed (Read 13840 times)
10/12/09 at 16:34:56

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
We need to test wiring-0021 on linux, anybody?
 
IP Logged
 
Reply #1 - 10/25/09 at 21:04:14

Andy   Offline
YaBB Newbies
Terre Haute, Indiana

Posts: 45
*
 
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.
 
IP Logged
 
Reply #2 - 10/25/09 at 21:41:27

Andy   Offline
YaBB Newbies
Terre Haute, Indiana

Posts: 45
*
 
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.


 
IP Logged
 
Reply #3 - 10/25/09 at 22:59:21

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
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.


 
IP Logged
 
Reply #4 - 10/25/09 at 23:23:03

Andy   Offline
YaBB Newbies
Terre Haute, Indiana

Posts: 45
*
 
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!
 
IP Logged
 
Reply #5 - 10/26/09 at 00:07:37

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
thanks Andy it is fixed now.
« Last Edit: 10/26/09 at 02:08:53 by barragan »  
IP Logged
 
Reply #6 - 12/16/09 at 00:00:18

Andy   Offline
YaBB Newbies
Terre Haute, Indiana

Posts: 45
*
 
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


 
IP Logged
 
Reply #7 - 12/17/09 at 04:29:22

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
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.
 
IP Logged
 
Reply #8 - 12/17/09 at 17:03:44

Andy   Offline
YaBB Newbies
Terre Haute, Indiana

Posts: 45
*
 
Absolutely!  Look for a response by the end of the weekend.

Andy
 
IP Logged
 
Reply #9 - 12/17/09 at 23:11:16

Andy   Offline
YaBB Newbies
Terre Haute, Indiana

Posts: 45
*
 
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
 
IP Logged
 
Reply #10 - 12/19/09 at 04:49:43

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
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.
 
IP Logged
 
Reply #11 - 12/19/09 at 20:06:37

Andy   Offline
YaBB Newbies
Terre Haute, Indiana

Posts: 45
*
 
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!
 
IP Logged
 
Reply #12 - 12/19/09 at 20:44:51

Andy   Offline
YaBB Newbies
Terre Haute, Indiana

Posts: 45
*
 
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
 
IP Logged
 
Reply #13 - 12/19/09 at 21:40:37

Andy   Offline
YaBB Newbies
Terre Haute, Indiana

Posts: 45
*
 
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.
 
IP Logged
 
Reply #14 - 12/25/09 at 21:03:11

Andy   Offline
YaBB Newbies
Terre Haute, Indiana

Posts: 45
*
 
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
 
IP Logged
 
Pages: 1 2