Full duplex traffic between two esp32s? #361
-
Hello, I'm trying to figure out whether it would be possible to use two esp32s kind of as a 'telephone' or 'full duplex walkie-talkie' system? Could something like this work with arduino-audio?: I2S microphone (adafruit MEMS breakout) -> (esp32) -> ip/wifi -> (esp32) -> DAC out ..and the same the other way around with the same ports. Though I haven't even quite catch up yet could I use the same I2S-port for input and output simultaneously? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Yes, I2S is duplex and you can read and write at the same time on the same port. |
Beta Was this translation helpful? Give feedback.
-
Hey again. I just until now got an i2s mic to continue on this.. Other question: When receiving wav over ip, if the sender stops sending, the receiver keeps looping whatever is left on its buffer. What's the correct method to check whether there's new data coming? ( (if client.connected()) and (if client) seem to check only if the wifi is connected? All in all your libraries are very straightforwarded and thanks to many examples, I've got even this far! So nice! |
Beta Was this translation helpful? Give feedback.
-
If you send 32 data over the write and write it out via AnalogAudioStreams you need to set this in the config. By default 16 bit is proposed... |
Beta Was this translation helpful? Give feedback.
Yes, I2S is duplex and you can read and write at the same time on the same port.
I would recommend to use a Codec to minimize the volume of data.
The only potential issue that I see in doing this, is acoustic feedback..