Object to GPIO serial


#1

Hi, I come back after a long time, I still have my two axoloti.
I upgraded the software and have seen that there have been many improvements,
I would like to interact with Arduino / teensy

there is a way (or an object) that transmits data via serial gpio such
name patch, controls used and their values etc.?

a kind of serial monitor
Thank you


#2

Welcome back, transmitting and receiving data via serial is possible, check help->library->factory->gpio->serial->serial

Protocol handling is best expressed in code, I don't see a practical use cases where protocols are expressed via patch cords. Functions that can be used in code to deal with serial are here: http://chibios.sourceforge.net/html/group___s_e_r_i_a_l.html

"Introspection" of patch name, and parameters is an area where I'm currently developing significant improvements for the next release.


#3

Hi Johannes! Thankyou!
First of all, i hope to see you here in Torino at Soundmit (was Torino Synth Meeting)

"Introspection" of patch name, and parameters is an area where I'm currently developing significant improvements for the next release.

it mean that in the next release some data will be exposed to serial?

i see your example with the PA2 and PA3 connected each other, if i disconnect them and put this two to my teensy, i'm able to read some data i think.. i try

EDIT
ok, now i'm able to read some nonsense number :slight_smile:


#4

No, I don't immediately plan to generalize such a serial interface but it would become much easier to implement.

HWSERIAL.begin(38400) : be sure to match the baudrate with the Axoloti side, otherwise you'll get nothing but garbage.
Further if you want to print formatted text from Axoloti to serial, use
chvprintf(&SD2, "Hello world number %d", 7);
My personal preference is exchanging binary data, as it is more efficient, but perhaps nice to get started. There is no "scanf"-like call in ChibiOS or Axoloti for the receiving side. There is a "command shell" implemented in ChibiOS, but not compiled into Axoloti. It may be useful to check how that deals with avoiding "scanf".


#5

More sense now!
i have to understand this number :slight_smile: