Skip to content

Nothing works. #2

@ben-crowhurst

Description

@ben-crowhurst

Is this a dead product?

The website (viewtool.com) doesn't load, we can't find any documentation on how to use the device, and the open-source repositories are outdated and dysfunctional.

~/Development/I2C_Adapter/Python_USB_I2C_AM2321B$ python3 Python_USB_I2C_AM2321B.py 
Traceback (most recent call last):
  File "Development/I2C_Adapter/Python_USB_I2C_AM2321B/Python_USB_I2C_AM2321B.py", line 13, in <module>
    import ControlI2C    
  File "Development/I2C_Adapter/Python_USB_I2C_AM2321B/ControlI2C.py", line 101, in <module>
    GinkgoLib = cdll.LoadLibrary( "./lib/linux/64bit/libGinkgo_Driver.so" )
  File "/usr/lib/python3.10/ctypes/__init__.py", line 452, in LoadLibrary
    return self._dlltype(name)
  File "/usr/lib/python3.10/ctypes/__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libusb-0.1.so.4: cannot open shared object file: No such file or directory
~/Development/I2C_Adapter/LinuxGCC_USB_I2C_AM2321B$ make
g++ -Wall -D OS_UNIX -I./ -o USB_I2C_AM2321B.o -c USB_I2C_AM2321B.cpp
USB_I2C_AM2321B.cpp: In function ‘int main(int, const char**)’:
USB_I2C_AM2321B.cpp:26:17: warning: unused variable ‘i’ [-Wunused-variable]
   26 |         int ret,i;
      |                 ^
USB_I2C_AM2321B.cpp:28:17: warning: unused variable ‘write_buffer’ [-Wunused-variable]
   28 |         uint8_t write_buffer[8]={0};
      |                 ^~~~~~~~~~~~
USB_I2C_AM2321B.cpp:29:17: warning: unused variable ‘read_buffer’ [-Wunused-variable]
   29 |         uint8_t read_buffer[8]={0};
      |                 ^~~~~~~~~~~
g++ -o USB_I2C_AM2321B USB_I2C_AM2321B.o -L./lib/linux_64bit -lusb -lGinkgo_Driver -lpthread
Development/I2C_Adapter/LinuxGCC_USB_I2C_AM2321B$ ./runme.sh 
Development/I2C_Adapter/LinuxGCC_USB_I2C_AM2321B
Development/I2C_Adapter/LinuxGCC_USB_I2C_AM2321B/lib/linux_64bit:
./USB_I2C_AM2321B: error while loading shared libraries: libusb-0.1.so.4: cannot open shared object file: No such file or directory
Development/I2C_Adapter/LinuxGCC_USB_I2C_AM2321B$ tree
.
├── ControlI2C.h
├── ErrorType.h
├── lib
│   ├── linux_32bit
│   │   ├── libGinkgo_Driver.so
│   │   ├── libusb-1.0.so
│   │   └── libusb.so
│   ├── linux_64bit
│   │   ├── libGinkgo_Driver.so
│   │   ├── libusb-1.0.so
│   │   └── libusb.so
│   └── macos
│       ├── libGinkgo_Driver.dylib
│       ├── libusb-0.1.4.dylib
│       └── libusb-1.0.0.dylib
├── Makefile
├── README.md
├── runme.sh
├── USB_I2C_AM2321B.cpp
└── USB_I2C_AM2321B.o

4 directories, 16 files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions