dwilches / Ardity

Assets for integrating Arduino and Unity (or Unity and any hardware that communicates over a COM port)
329 stars 62 forks source link

Reading serial data from COM3 not working #10

Closed iamblesson closed 7 years ago

iamblesson commented 7 years ago

Hi, I am using this to read and write data to my Unity application from COM3. While i can write the data (a & z strings), i'm unable to read any data that i receive from the COM port. I've tried the DemoScene_AutoPoll, DemoScene_UserPoll_JustRead, DemoScene_UserPoll_ReadWrite. Either one of these scene won't show the message received from the COM port in the console window. Any reason why? Anything i may be missing?

Thanks.

dwilches commented 7 years ago

Hi Are you using the Sample Arduino Program together with the DemoScene_AutoPoll? Did you modify any of them? Which Arduino are you using?

iamblesson commented 7 years ago

Hi, Apologies. I was communicating with a Crestron Controller. I forgot to add a \x0D and \x0A (carriage return and line feed)at the end of the string i sent from the controller. I added these hex values to the string i'm sending from the controller to the COM port and it works perfectly.

Thanks.