Hey guys, i have to write a code to communicate with an external device( a mixer) via rs232 and a raspberry. I can not try it at the moment, but i want to know, if the code will work. Every command has to end with a blank CR LF.
mypi = raspi msd = serialdev(mypi,'/dev/ttyAMA0',9600,7,'even',1); msd.Terminator = 'CR/LF';
fprintf(msd,'%s\n','IN_NAME '); name=fscanf(msd); disp(name);
%Set RPM to 100 fprintf(msd,'%s\n','OUT_SP_4 100 ');
%Start Mixer fprintf(msd,'%s\n','START_4 '); pause(10)
%Stop Mixer fprintf(msd,'%s\n','STOP_4 ');
I hope you can help me :) and a BIG thanks in advance best regards
Sign in to answer this question.