フィルターのクリア

send files over serial port

4 ビュー (過去 30 日間)
Vanessa ricardo
Vanessa ricardo 2015 年 8 月 22 日
コメント済み: Vanessa ricardo 2015 年 8 月 22 日
i really need send a FILE over serial port.
i use this code and recive the 'hola' in the other pc.
but what i want is send a FILE that is in my pc.
something like..
send (file.evt) %example
please
if someone can help me because this is very important.
serialOne=serial('COM15', 'BaudRate', 9600);
fopen(serialOne);
fprintf (serialOne,'%s','hola');
fclose(serialOne);

回答 (2 件)

Walter Roberson
Walter Roberson 2015 年 8 月 22 日
Use system() to invoke Kermit-95 or similar software. Or configure PPP on the two systems https://social.technet.microsoft.com/Forums/windows/en-US/5858797c-bc75-4e3f-bca4-d988fadd7581/setting-up-a-ppp-connection-using-communications-cable-between-two-computers?forum=w7itpronetworking and use MATLAB's ftp class or use SCP or similar, perhaps by invoking PuTTY
As it is "very important" you should not attempt to code the copying yourself: there are a number of difficulties that are difficult to address within MATLAB, many of which are only clear to people who grew up hacking in the days of 1200 baud and 9600 baud modems over telephone lines.
  1 件のコメント
Vanessa ricardo
Vanessa ricardo 2015 年 8 月 22 日
thanks , I will try to use this recommended me .

サインインしてコメントする。


alican kara
alican kara 2020 年 6 月 24 日

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by