Power the module as described on page 7 in https://www.ftdichip.com/Support/Documents/DataSheets/Modules/DS_FT4232H_Mini_Module.pdf We only tried USB-Bus Powered. Plug USB cable in the device.
Install drivers from https://www.ftdichip.com/Drivers/D2XX.htm
Unpack them:
tar -xvf libftd2xx-x86_64-1.4.8.gz
Copy them into the library folder:
sudo cp -r release/build/lib* /usr/local/lib
Link them:
sudo ln -s /usr/local/lib/libftd2xx.so.1.4.8 /usr/local/lib/libftd2xx.so
Make them executable:
sudo chmod 0755 /usr/local/lib/libftd2xx.so.1.4.8
Unload Serial USB Drivers (these will be reloaded when the device is removed and plugged back in)
sudo rmmod ftdi_sio usbserial
compile code (in the firmware directory):
gcc -o write main.c -L. -lftd2xx -Wl,-rpath,/usr/local/lib
execute code:
sudo ./write
remove and plug in the device and it should appear as 4 virtual serial ports
can be found here: https://github.com/bit-bots/bitbots_lowlevel