I have now bought 4 USB TC-08, i want to run them under Linux.
I have installed the drivers but i get no connection.
When i run lsusb i get this:
Bus 001 Device 004: ID 0ce9:1000
Is this the device id?
Do i have to load some modules manually or is it enough to plug it in to the USB-port and just run some of the example program if it is build correctly?
Hi I have spoke to one of the engineers and here is his response
"The device ID is correct. There are no modules to load.
A frequent problem is incorrect access permissions on the device file (in /dev/bus/usb or /proc/bus/usb) - it must have write permission for the user running the program.
I have attached two files which may help - usbtest is a shell script which will report whether the permissions are correct, and the .rules file is an example of how to fix the problem (with comments explaining its use).
"
1. What is your output from lsusb with your device plugged in
2. Can you get usbtest to work as root (sudo)
3. Can you get the example program to work as root (sudo)
4. Have you installed the .rules file
5. Have you added your user to the group pico (or the one you choose)
6. Can you get usbtest to work under your account
7. Can you get the example program to work under your account
Erik wrote:How far did you get with the installation?
When I run make,I get some error messages:
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I./shared -g -O2 -MT TC08Api.lo -MD -MP -MF .deps/TC08Api.Tpo -c -o TC08Api.lo `test -f 'common/TC08Api.cpp' || echo './'`common/TC08Api.cpp
g++ -DHAVE_CONFIG_H -I. -I.. -I./shared -g -O2 -MT TC08Api.lo -MD -MP -MF .deps/TC08Api.Tpo -c common/TC08Api.cpp -fPIC -DPIC -o .libs/TC08Api.o
common/TC08Api.cpp:58: warning: 'typedef' was ignored in this declaration
common/TC08Api.cpp: In function 'short int usb_tc08_open_unit()':
common/TC08Api.cpp:194: error: 'sleep' was not declared in this scope
common/TC08Api.cpp: In function 'short int usb_tc08_get_unit_info(short int, USBTC08_INFO*)':
common/TC08Api.cpp:569: error: 'sprintf' was not declared in this scope
common/TC08Api.cpp:588: error: 'memcpy' was not declared in this scope
common/TC08Api.cpp: In function 'short int usb_tc08_get_unit_info2(short int, char*, short int, short int)':
common/TC08Api.cpp:662: error: 'snprintf' was not declared in this scope
common/TC08Api.cpp: In function 'short int usb_tc08_get_formatted_info(short int, char*, short int)':
common/TC08Api.cpp:772: error: 'snprintf' was not declared in this scope
common/TC08Api.cpp:788: error: 'snprintf' was not declared in this scope
make[2]: *** [TC08Api.lo] Error 1
If I ignore and make install, then run usbtest, the drivers are not recognized
1. What is your output from lsusb with your device plugged in
2. Can you get usbtest to work as root (sudo)
3. Can you get the example program to work as root (sudo)
4. Have you installed the .rules file
5. Have you added your user to the group pico (or the one you choose)
6. Can you get usbtest to work under your account
7. Can you get the example program to work under your account
Did you follow the instructions in INSTALL?
More specifically, did you run ./configure?
Extract from INSTALL
-------------------------------
3. Run the configure script:
./configure
This will check that you have the required prerequisites and set up the
build process for your system. If you intend to use the driver for debugging,
you may want to specify CXXFLAGS like this:
./configure CXXFLAGS="-g -O0"
to enable debug symbols (-g) and turn off optimization (-O0).
4. Build the software:
make
5. Install the software. As root:
make install
The library and header files are installed by default under /usr/local. You
should ensure that /usr/local/lib appears in /etc/ld.so.conf and then run:
ldconfig
to add the new library to the system cache. You are now ready to start using
the library in your programs (or why not start by taking a look at our
example programs?).
try to install it on kubuntu 9.10 the configure is ok but when i run make i get this output.
There are some problem with new kernel?
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I./shared -g -O2 -MT TC08Api.lo -MD -MP -MF .deps/TC08Api.Tpo -c -o TC08Api.lo `test -f 'common/TC08Api.cpp' || echo './'`common/TC08Api.cpp
mkdir .libs
g++ -DHAVE_CONFIG_H -I. -I.. -I./shared -g -O2 -MT TC08Api.lo -MD -MP -MF .deps/TC08Api.Tpo -c common/TC08Api.cpp -fPIC -DPIC -o .libs/TC08Api.o
common/TC08Api.cpp:58: warning: 'typedef' was ignored in this declaration
common/TC08Api.cpp: In function 'short int usb_tc08_open_unit()':
common/TC08Api.cpp:194: error: 'sleep' was not declared in this scope
common/TC08Api.cpp: In function 'short int usb_tc08_get_unit_info(short int, USBTC08_INFO*)':
common/TC08Api.cpp:569: error: 'sprintf' was not declared in this scope
common/TC08Api.cpp:588: error: 'memcpy' was not declared in this scope
common/TC08Api.cpp: In function 'short int usb_tc08_get_unit_info2(short int, char*, short int, short int)':
common/TC08Api.cpp:662: error: 'snprintf' was not declared in this scope
common/TC08Api.cpp: In function 'short int usb_tc08_get_formatted_info(short int, char*, short int)':
common/TC08Api.cpp:772: error: 'snprintf' was not declared in this scope
common/TC08Api.cpp:788: error: 'snprintf' was not declared in this scope
make[2]: *** [TC08Api.lo] Errore 1
make[2]: uscita dalla directory «/home/lucak904/Scrivania/Luca/progetti_c++/pico/libusbtc08-1.7.2/src»
make[1]: *** [all-recursive] Errore 1
make[1]: uscita dalla directory «/home/lucak904/Scrivania/Luca/progetti_c++/pico/libusbtc08-1.7.2»
make: *** [all] Errore 2
I am having the same exact problem as the luca72. The code will not compile on Linux Kernel 2.6.33.6-147 (Fedora 13) with GCC version 4.4.4. Can we please get some help on this issue?
i have compile it with some more include in the attached files, but when i run usbtest also as root i get:
Pico USB device found: /dev/bus/usb/007/003
- It belongs to root (which is you) who has permissions rw-
- The members of group root (which you are in) have permissions rw-
- Everyone else has permissions r--
- You can write to this device and so will be able to use it.
Pico USB device not found. Please try again
the lsusb is:
Bus 007 Device 003: ID 0ce9:1000 pico Technology
If you haven't already done so, try downloading the new libusbtc08 package - follow the instructions as per the Linux Software & Drivers for Oscilloscopes and Data Loggers page on our website http://www.picotech.com/linux.html to configure your package manager, then call the command
This should install the shared library into the /opt/picoscope/lib directory. The header file will be located in the /opt/picoscope/include/libusbtc08-1.8 directory.
I'm very pleased that there is still active support for my old TC-08 but I'm having trouble with Picolog. I'm a bit confused.
Once I install PicoLog 6 and plug in my TC-08 it still says that it is searching for a device.
I found some reference to needing a driver. BTW this page https://www.picotech.com/downloads/linux titled "Linux Software & Drivers for Oscilloscopes and Data Loggers" does not appear to have any information about PicoLog until you select Ubuntu and USB TC-08 in the center of the page under the heading "Install drivers only" (still appearing to only refer to PicoScope) when I see the following
sudo apt-get install libusbtc08
But when I run that command in a terminal window I get