How can I send a Hex-Code over Realterm without converting it?!
14 views (last 30 days)
Show older comments
Hello there,
I am using the newest Realterm Version (3.0.0.20 and Matlab R2014a) and try to send a Hexcode (for example '7e55443322117f') to my serial port. I have the problem that the Hex Data is always converted into ASCII code befor sending it.(Output is then the Ascii code 37 65 35 35 34 34 33 33 32 32 31 31 37 66) I guess that I need to "Send it as Numbers" (I have also found something like "SendAs" function but not how to implement it) from the Realterm program but I do not know how I can implement this function in Matlab.. Can someone help me with this?!
Thank you in advance!
Daniel
My mini-code example:
function [ ] = Realterm_send(send)
hrealterm=actxserver('realterm.realtermintf'); % start Realterm as a server
hrealterm.baud=57600;
hrealterm.caption='Matlab Realterm Server';
hrealterm.port='1';
hrealterm.windowstate=1; %minimized
hrealterm.PortOpen=1;
send = ('7e55443322117f');
invoke(hrealterm, 'PutString',send);
end
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Octave in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!