Hey Grog,

Thanks for implementing the new Serial service based on my previous request,

I want to use this service for my robotic chess project.

I have an arduino connected to the PC and I am able to connect it with MRL using Serial service, but when I am sending a string  from arduino I am getting its ASCII value on the log file.

Could you plz help me on how I can get the proper string into MRL from arduio.

Thanks :)

GroG

11 years 4 months ago

You want a series of bytes?  Integers? Chars?  ASCI HEX or Binary strings?
Should it be configurable perhaps?

beetlejuice

11 years 4 months ago

I don't know if it's that you want, but you can easyly convert ascii to char in python .


Exemple :

>>> L = [104, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100]
>>> ''.join(chr(i) for i in L)
'hello, world'

 

mehtaatur

11 years 4 months ago

I want to read characters or string so i can input moves into the chess service.

There is a read(integer) function in the serial service, i was wondering if we could have a read(string) function as well,

So I can read sting data being sent from Arduino and then send that into the chess service for making my moves.

Suggestions / Help???

mehtaatur

11 years 4 months ago

Hey Alessandruino,

Thanks for the script, could you tell me how to connect this python service with chess service so I can send the char/ string into the chess as moves.

Which fuction should I select in the gui tab and connect  it with chess?

:)