I've got my code working perfectly with a software serial when the Jevois is plugged into my computer with the data USB cable. But when I use the power cable only, it doesn't work.
I have this for my init.cfg:
setmapping2 YUYV 320 308 30.0 YUYV 320 240 30.0 JeVois TensorFlowEasy
# I also tried setmapping 35
setpar serlog Hard
setpar serout Hard
setpar serstyle Normal
streamon
When I run my Arduino sketch, no data appears in the software serial. It shows these init messages but then nothing else:
ING TensorFlow9:operator()9 Using modf⸮ from /jevo⸮s/share/teosorflow/cig`⸮ette_butts/⸮odlti
IFTnFlwoevr)U⸮Z⸮b⸮⸮⸮⸮́2ɽ⸮⸮R⸮ٽ⸮ͽ⸮⸮⸮ɕ⸮⸮⸮⸮ͽə⸮⸮ݽ⸮⸮⸮ɕ⸮ѕINF VensorFlow:: ⸮ɅѽɡJ⸮⸮⸮⸮ͽ⸮́⸮⸮⸮⸮ʊj
INF TeosorFlow::opf⸮ator(): N⸮V⸮.⸮⸮⸮⸮⸮⸮j
INF TensoqClow::operphi_e⸮ͱʒ⸮⸮b⸮b⸮b⸮j
INC Tf⸮sorFlowoetresFo⸮'⸮ ⸮ɅѽɡJ⸮⸮⸮⸮j⸮⸮⸮⸮⸮⸮⸮⸮Y⸮z⸮⸮⸮⸮"}⸮⸮E⸮ 7Mbl1ov_E⸮⸮ѡݥ͕⸮"⸮⸮ѡݥ͕}⸮5⸮⸮⸮⸮ͱ⸮⸮⸮⸮b⸮b⸮b⸮j
INC TensorFnow=:operatoq()1:Mewt/o2U⸮⸮⸮⸮⸮ݥ͕⸮⸮⸮⸮⸮⸮⸮ͱ⸮⸮⸮⸮⸮b⸮⸮⸮⸮⸮netV⸮⸮K⸮⸮⸮⸮⸮⸮Y⸮z}⸮⸮⸮"}⸮z⸮⸮ٽ⸮⸮ѥ⸮⸮}⸮⸮⸮ͱ⸮⸮b⸮b⸮b⸮j
INF Ten⸮K⸮⸮⸮⸮⸮z⸮⸮rator(): 33: SK⸮⸮⸮⸮⸮⸮Y⸮ze}⸮⸮⸮⸮⸮⸮⸮Y⸮z
⸮⸮⸮⸮"}ł⸮⸮⸮Y⸮z⸮⸮⸮⸮⸮⸮⸮Y⸮z⸮⸮⸮⸮"}Ś⸮⸮⸮thwise/Ru 03,100
NTk⸮⸮⸮⸮⸮⸮⸮z⸮⸮ɅѽɡJ⸮⸮⸮⸮j}⸮⸮⸮⸮⸮⸮⸮V1/MobilenevW1/n21⸮E⸮⸮ѡݥ⸮
R⸮⸮U⸮ͽ⸮⸮⸮⸮⸮⸮z⸮⸮ɅѽɡJ⸮⸮⸮⸮j⸮⸮⸮⸮⸮⸮⸮⸮Y⸮zj⸮⸮⸮⸮-⸮⸮⸮Y⸮z⸮⸮⸮⸮"}⸮hs/l 41,10,
⸮⸮U⸮ͽ⸮⸮⸮⸮⸮⸮z⸮⸮ɅѽɡJ⸮⸮⸮⸮j⸮⸮⸮⸮⸮⸮⸮⸮Y⸮zj⸮⸮⸮⸮⸮⸮⸮⸮Y⸮z⸮⸮⸮⸮"}⸮⸮E⸮⸮ѡݥ⸮e⸮Vѡݥ͕}biaq\ 512, 1 0. 0
INF JeosorFlow:: ⸮ɅѽɡJ⸮⸮⸮⸮j⸮⸮⸮⸮⸮⸮⸮⸮Y⸮}j⸮⸮⸮⸮⸮⸮⸮⸮Y⸮}⸮⸮⸮⸮"}⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮Y⸮ze⸮⸮⸮⸮⸮⸮⸮⸮Y⸮z⸮⸮⸮⸮"}⸮⸮⸮⸮⸮⸮ݥ͕⸮⸮⸮ٽ⸮⸮ѥo7_bias⸮⸮⸮⸮⸮b⸮b⸮b⸮j
R⸮⸮U⸮ͽ⸮⸮⸮⸮⸮⸮z⸮erator4): 859 finav_resuft, 246 1, 0. 0
ITnrl
This is how I've set up the software serial:
#include <SoftwareSerial.h>
SoftwareSerial jevois(2, 3); // Arduino RX, Arduino TX
void setup() {
jevois.begin(115200);
jevois.setTimeout(500);
}
(Background on why I used software serial - #define SERIAL Serial1 doesn't work for me. It says Serial1 is not defined)
I tried initialising jevois inside setup:
jevois.println(" setmapping 35");
jevois.println("setpar serlog Hard");
jevois.println("setpar serout Hard");
jevois.println("setpar serstyle Normal");
jevois.println("streamon");
I get errors like this:
ERR Unsuppo⸮ted commanf [ setmapping 35]
ERQ UnsupportY⸮⸮⸮⸮⸮⸮⸮⸮⸮o⸮⸮⸮ѵ⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮H⸮OK
ERR Unsupporved command Y߷⸮⸮ѵ⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮H⸮OKOK
ERR Uwsupported c⸮⸮+⸮⸮⸮⸮5⸮ɕ⸮⸮⸮⸮]C⸮
Seems like the commands are possibly getting garbled? I also notice if I plug the data cable in that the data seems to get distorted a fair bit - special characters appear. 'typos' show in the logs
TO tulipsTO tv⸮ips
TO tunips
TO tulips
TO tulips
TO tulips
TO tv⸮ips
TO tulipq
TO tulips
TO tulipq
TO tv⸮ips
TO tv⸮ips