Asked
— Edited

Hi all,
I'm trying to get serial feedback from a device. Does anyone know where on the V4 I should attach to read back serial information from device? I know I send a serial command to through one of V4's digital signal pins but where do I read it back from?
I thought it would be read from the same digital pin I sent the command. However @Toymaker made a comment in another thread that it may have to be read through one of the i2c ports.
Any insight is welcomed.
Ok, one step at a time
I see the variable's value in the variable watch... so now need to figure out how to script with these values as a variable condition...
The cloud doesn't have any example projects. They ship with ARC. Look here: https://synthiam.com/Tutorials/Lesson/22?courseId=6
I'm not at home and on my phone so I can't give you code. But that link will help you find examples that do what you need
Thank you very much Dj! And enjoy your evening! I hope she's worth it!
Thanks! I'll write something if you're still spinning wheels later this evening
ok, if anyone else is arround, here is what I'm now facing : don't seem to be able to get ASCII strings...
here is the error message I get using this code plagiarized from ARC examples :
the code first :
And now the error message I get :
It's supposed to read these values :
"A=" then a number between 0 and 640 "B=" then a number between 0 and 640.
It seems that it can't read ASCII string values... maybe it's the "=" ?
** update : it is not... even after changing the code in arduino to only return numbers... I get this :
the question is missing some info. Is the arduino sending an unsigned 16 bit int? Signed 16 bit int? Or a string of characters?
Because it can't be an 8 bit unsigned int cause that only goes to 255.
What is the arduino sending?
oooooh!
ok
it was initially sending a string of charaters AND a int (it seems int is by default signed in arduino).
Arduino int stores a 16-bit (2-byte) value by default.
I took out the string of characters but I still get this error message :
15: goto(loop) 3: :loop 5: $x = UartAvailable(1, 0) 7: print("Bytes in buffer: " + $x) > Bytes in buffer: 7 9: $y = UARTRead(1, 0, $x) 11: print("Received: " + $y) > Error on line 11: Missing String Quotes or Invalid Expression at index 15: " Done (00:00:02.4873538)