You might be able to use the normal echo
command to send strings directly to a device, like:
echo "some command" > /dev/usbXXX
To get the output you might be able to just read from it using e.g. cat
:
cat /dev/usbXXX | grep "what you're looking for"