data recieved from telnet is junk
显示 更早的评论
using tcpip example code from https://in.mathworks.com/matlabcentral/fileexchange/11802-matlab-tcp-ip-code-example/content/matlab_tcpip_example.m
able to connect successfully to Keysight equipment over telnet. but the data recieved looks junk. any inputs?
error below
"
DataReceived =
ÿûÿû
------
1 个评论
Walter Roberson
2016-10-13
Odd. That data is either
INTERLINEAR ANNOTATION TERMINATOR followed by SOH followed by another INTERLINEAR ANNOTATION TERMINATOR
or
Arabic Letter Farsi Yeh Medial Form followed by SOH followed by another Arabic Letter Farsi Yeh Medial Form
in UTF-8 encoding.
When I first saw it, I thought I recognized it as being Byte Order Marks, but a closer check showed otherwise.
回答(2 个)
Walter Roberson
2016-10-14
0 个投票
Here is a modified version
Note the HTTP/1.0 and the \n added to the URL. Note also that for virtual servers like mathworks and apple use, the URL form had to be sent in the GET even though in basic HTTP it should be just the resource without the "http://www.mathworks.com" .
类别
在 帮助中心 和 File Exchange 中查找有关 TCP/IP Communication 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!