I can transit data between a Raspberry with python 3.7 installed and a PC with Matlab (192.168.1.40) , last release, installed by means a TCP IP Socket and configuring the Matlab PC as server and the pyhton device as client.
Here is the Pyhton client code:
#----- A simple TCP client program in Python using send() function -----
# Create a client socket
clientSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# Connect to the server
# Send data to server
data = "HHH"
and this is the Matlab server code:
t = tcpip('0.0.0.0', 9090, 'NetworkRole', 'server')
data = fread(t)
For testing purpose I've attempted to transmit only few characters : HHH
The issue is that the transmission works but the other end (on the Matlab side) instead of the right characters (HHH) I see only their ASCII code (72, 72, 72).
If I do the same between two instances of Rasberry python (using a decode() method), I see correctly the data tranmitted over the socket.
Thanks in advance