I am trying to get a photon to talk to the Omron HVC B5T-007 which is a human vision system that incorporates 10 algorithms of the OKAO™ Vision Image Sensing Technology to recognize people. The device can be used to count faces or bodies in a room and output that detection result. It can do the heavy processing that the photon cannot.
I can talk to the device via a USB connection and using an app on a PC I know the device is working. I want to interface the HVC to a photon to be able to sent the detection results to the cloud. The UART connection uses NRZ method, 3.3V TTL, 9600 baud default, 1 start bit, 8 data bits 1 stop bit and no parity. It is being powered from the photon VIN (it runs on 5V) and connect the GND to photon GND. The photon is powered vis USB and the photon uses Serial to output debug. I have swapped the TX and RX lines. One line is used as RESET (active low) - this is working.
The host sends a command to the HVC which receives it and processes it then sends the results to the host. The simplest command 00h with the HVC is to request the model and version. The best response I have received so far from sending FEh 00h 00h 00h (synchronous code, command number, LSB data length, MSB data length) to Serial1 is to receive 63 00h. Sometimes I get Serial1 not available. Has anyone had any experience interfacing to this device and can provide avenues to explore to get it to work? Thanks