Linux Notes (for JoyWarrior USB) |
| log in |
Questions and Answers : Unix/Linux : Linux Notes (for JoyWarrior USB)
1 · 2 · Next
| Author | Message |
|---|---|
|
QCN for Linux was compiled using Debian4 running under VMWare on my Mac, which is a 2.6.18 version kernel using gcc/g++ v. I have gotten the external USB JoyWarrior sensor to work, and have compiled support for the MotionNode Accel USB sensor (but haven't been able to test the latter as it "freezes" up my Linux session). | |
| ID: 866 · Rating: 0 · rate:
| |
|
I've just received and installed a Code Mercenaries JW24F8-QCK USB acceleration sensor on a Linux-x86_64 system - SUSE 11.0 + patches to current SVN stable - kernel 2.6.25 running on an Intel Q6600@3.3GHz. The running QCN 4.40 was aborted and the latest 4.52 release downloaded whilst the sensor was attached. | |
| ID: 877 · Rating: 0 · rate:
| |
|
Just installed my grey usb on Ubuntu 8.10 AMD64. No error messages.Boincmgr seems happy. However, graphics show flatline on X and Y. Z and significance show data. Is that OK? Also, I dual boot same pc between Vista and Ubuntu. Does it matter if I don't complete workunits for this? Thanks. | |
| ID: 891 · Rating: 0 · rate:
| |
Also, I dual boot same pc between Vista and Ubuntu. Does it matter if I don't complete workunits for this? Thanks. It does not. The WUs are just something like a channel between your sensor and QCN site. They get usally "refreshed" once daily (or after 24 hours of uninterrupted runtime), but for the functionality of the system (observing and reporting shakes) it is not necessary at all. On some day your Vista task will get replaced, on other day the Ubuntu one... Peter | |
| ID: 892 · Rating: 0 · rate:
| |
|
On Ubuntu 8.10 AMD64. my usb joywarrior sensor shows no data on X and Y. Yet, Z and significance show data. Is this normal? How can I check to see if all the data is getting to BOIC QCN. As far as I can tell, no error message. Thanks. | |
| ID: 904 · Rating: 0 · rate:
| |
... my usb joywarrior sensor shows no data on X and Y. Yet, Z and significance show data. Is this normal? How can I check to see if all the data is getting to BOIC QCN.... I see the same display problem under Linux (SUSE 11.0 x86_64). I think there may be a problem when an axis has a long term average value of zero, which is the case when the accelerometer is in its normal orientation. You can test the display by rotating the JoyWarrior so that all axes are at +/-45degrees to the vertical. After a settling period whilst the average converges to the new orientation you should see that all axes are jiggling in the 3D display. This should prove out the sensor but unless Carl publishes the format of the .sac files in the trigger directory we can't be sure if the data is being captured correctly. Andrew | |
| ID: 905 · Rating: 0 · rate:
| |
... my usb joywarrior sensor shows no data on X and Y. Yet, Z and significance show data. Is this normal? How can I check to see if all the data is getting to BOIC QCN.... I moved the sensor as you suggested, and the axes reflected that movement. Hopefully then QCN is getting all the right info from the sensor. Am leaving my pc on 24x7 for this so a bit more comfortable for now am not wasting electricity. Thanks for the suggestion. | |
| ID: 906 · Rating: 0 · rate:
| |
|
I've been doing some more digging into the zero outputs displayed in the 3D graphics for the X & Y axes on a JoyWarrior accelerometer under Linux. jscal -s 3,0,0,0,0,0,0 /dev/input/js0 providing you have the relevant joystick utilities installed. This causes the display of all three 3D axes to spring into life tracking the 1 or 2 bit jitter which can be seen in the raw data from the sensor. Perhaps Carl can confirm if he expects any particular calibration of the sensor and I can then fix my joystick drivers to correspond. Andrew | |
| ID: 908 · Rating: 0 · rate:
| |
|
yeah I just want the raw values, it seems the basic linux joystick driver does some sort of pseudo-calibration. I guess it's a problem due to using the joystick driver although on Windows & Mac I can communicate fine to get this "raw" data. Since there can be various flavors of Linux and people may not have the jscal I'm not sure how to do this from within the software, other than just note it in a QCN Linux manual (if we ever write one). | |
| ID: 909 · Rating: 0 · rate:
| |
yeah I just want the raw values,....Since there can be various flavors of Linux and people may not have the jscal I'm not sure how to do this from within the software.... Carl, Any recent (last 7-8 years) kernel should have the joydev driver available and most end-user distributions will package this. I guess you are already using calls to this device driver to get the joystick data within the Linux version of QCN. Unfortunately the driver defaults to a broken_line style of calibration when it opens. However it has several 'ioctl' calls available which can control the calibration. The jscal utility is just a wrapper around these ioctl functions. The following snippets of C indicate one way to set a joystick to raw mode... #include <sys/ioctl.h> #include <linux/joystick.h> #define MAX_AXES 16 int i,j; int fd; struct js_corr corr[MAX_AXES] /* * Example device open */ fd = open ("/dev/input/js0", O_RDONLY); /* * Zero correction coefficient structure and set all axes to Raw mode */ for (i=0; i<MAX_AXES; i++) { corr[i].type = JS_CORR_NONE; corr[i].prec = 0; for (j=0; j<8; j++) { corr[i].coeff[j] = 0; } } if (ioctl(fd, JSIOCSCORR, &corr)) { perror("error setting correction"); exit(1); } close(fd); I'm sure you already open and close the device in your existing implementation, so all you need to add is the ioctl call and data structure initialisation. There is a lot more detail in the kernel sources see :- .../drivers/input/joydev.c ...include/linux/joystick.h Hope this helps Andrew | |
| ID: 913 · Rating: 0 · rate:
| |
|
thanks, I'll try that out! | |
| ID: 914 · Rating: 0 · rate:
| |
I also jiggled around the detection logic so you can have a "real" joystick attached and it will still continue on to look for the JoyWarrior. This new version (4.53 or 4.54) should be up live within a day. This sounds promising - Windows too? The app 4.54 was there within 30 minutes :-) so let's see tomorrow. Peter | |
| ID: 916 · Rating: 0 · rate:
| |
.... it seems to work, at least on my VMWare Debian image.... QCN V4.54 works with my 2 joystick setup on SUSE 11.0 running natively on Intel hardware. Thanks for the quick fix. Andrew | |
| ID: 917 · Rating: 0 · rate:
| |
I also jiggled around the detection logic so you can have a "real" joystick attached and it will still continue on to look for the JoyWarrior. This new version (4.53 or 4.54) should be up live within a day. Unfortunately it did not work. I've then aborted it and had to re-attach the mouse receiver. Peter | |
| ID: 920 · Rating: 0 · rate:
| |
QCN V4.54 works with my 2 joystick setup on SUSE 11.0 running natively on Intel hardware. Thanks for the quick fix. Am running BOINC 6.4.5 and don't see anything to update QCN to QCN4.54. Is this going to appear in my Ubuntu 8.10 AMD64 update, or is there another way to update it? Thanks. Clarence | |
| ID: 926 · Rating: 0 · rate:
| |
Am running BOINC 6.4.5 and don't see anything to update QCN to QCN4.54. Is this going to appear in my Ubuntu 8.10 AMD64 update, or is there another way to update it? Thanks.Clarence Your Linux host 4565 is already running a QCN 4.54 task (since 15:11:20 UTC?), the Windows host 4557 does not seem to have the sensor attached, you can abort the currently running task and it will download a newer one, including the 4.54 application. Peter | |
| ID: 927 · Rating: 0 · rate:
| |
|
My linux is now showing all axes with data. Thanks. PS you guys are smart. | |
| ID: 929 · Rating: 0 · rate:
| |
|
The usb joywarrior is running with full graphics on my amd64 upgraded from ubuntu 8.10 to ubuntu jackalope 9.04 alpha 4. | |
| ID: 949 · Rating: 0 · rate:
| |
|
great, do you get the globe view, on my VMWare Ubuntu (running on my Mac) my globe view is all white, as if it can't find the map image/jpeg file. | |
| ID: 950 · Rating: 0 · rate:
| |
|
Carl, | |
| ID: 951 · Rating: 0 · rate:
| |
Questions and Answers :
Unix/Linux :
Linux Notes (for JoyWarrior USB)