xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 76KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-06-01
  • 語言: 其他
  • 標簽:

資源簡介

STM32+W5500(遠程更新程序的上位機),通過電腦,一鍵遠程更新代碼。

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
using?System.Windows.Forms;
using?System.IO;
using?System.Net;
using?System.Net.Sockets;
using?System.Threading;
using?System.Net.NetworkInformation;

namespace?上位機
{
????public?partial?class?Form1?:?Form
????{
????????byte[]?datatosend?=?new?byte[1024];??????????????????????//定義數(shù)據(jù)發(fā)送緩沖區(qū)
????????byte[]?datarec?=?new?byte[1024];?????????????????????????//定義數(shù)據(jù)發(fā)送緩沖區(qū)
????????int?packet_zheng?=?0;????????????????????????????????????//定義固件大小的整K字節(jié)數(shù)
????????int?packet_yu?=?0;???????????????????????????????????????//定義固件大小的不足1K字節(jié)個數(shù)
????????int?packet_send?=?0;?????????????????????????????????????//定義已經(jīng)發(fā)送的整K字節(jié)個數(shù)
????????FileStream?fs;???????????????????????????????????????????//定義文件流
????????string?str;??????????????????????????????????????????????//定義用于顯示信息的字符串???
????????NetworkStream?mystream;??????????????????????????????????//定義用于網(wǎng)絡傳輸?shù)臄?shù)據(jù)流
????????IPEndPoint?myendpoint;???????????????????????????????????//定義本機的IP地址
????????TcpClient?myclient=null;?????????????????????????????????//定義用于數(shù)據(jù)傳輸?shù)腡cpClient
????????Thread?thread_recdata;???????????????????????????????????//定義數(shù)據(jù)接收線程
????????private?int?Timeout?=?20;
????????public?Form1()
????????{
????????????InitializeComponent();???????????????????????????????//初始化各個控件
????????????Form1.CheckForIllegalCrossThreadCalls?=?false;???????//可跨線程使用控件
????????????btn_send.Enabled?=?false;????????????????????????????//禁用發(fā)送/下載按鈕
????????????btn_boot.Enabled?=?false;????????????????????????????//禁用進入BootLoader按鈕
????????????btn_open.Enabled?=?false;????????????????????????????//禁用打開固件按鈕
????????????btn_connect.Enabled?=?true;??????????????????????????//使能連接按鈕
????????????btn_disconnect.Enabled?=?false;??????????????????????//禁用斷開連接按鈕
??????????
?????????????????????????????????????????????????????????????????????????????????????
????????}
????????private?void?button1_Click(object?sender?EventArgs?e)???????????????????????//發(fā)送下載程序命令
????????{
????????????datatosend[0]=0x44;
????????????datatosend[1]?=?0x4d;
????????????datatosend[2]?=?0x46;
????????????mystream.Write(datatosend?0?3);
????????????btn_send.Enabled?=?false;
????????}

????????private?void?button2_Click(object?sender?EventArgs?e)??????????????????????//選擇固件按鈕
????????{
????????????OpenFileDialog?openfile?=?new?OpenFileDialog();?????????????????????????//打開文件控件
????????????openfile.ShowDialog();??????????????????????????????????????????????????//顯示打開文件對話框
????????????txt_filename.Text?=?openfile.FileName;??????????????????????????????????//獲取所選擇固件的名稱
????????????fs?=?new?FileStream(openfile.FileName?FileMode.Open);??????????????????//獲取文件流
????????????str?=?“文件共“+fs.Length.ToString()?+“字節(jié)“+?“\n“;??????????????????????//獲取文件的總字節(jié)數(shù)
????????????textBox1.AppendText(str);???????????????????????????????????????????????//

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-07-28?21:39??網(wǎng)絡上位機\
?????目錄???????????0??2017-07-28?21:39??網(wǎng)絡上位機\.vs\
?????目錄???????????0??2017-07-28?21:39??網(wǎng)絡上位機\.vs\上位機\
?????目錄???????????0??2017-07-28?21:39??網(wǎng)絡上位機\.vs\上位機\v14\
?????文件???????47616??2017-08-13?23:13??網(wǎng)絡上位機\.vs\上位機\v14\.suo
?????目錄???????????0??2017-07-28?21:39??網(wǎng)絡上位機\上位機\
?????文件?????????917??2016-12-19?10:36??網(wǎng)絡上位機\上位機.sln
?????文件???????20480??2017-03-15?08:55??網(wǎng)絡上位機\上位機.suo
?????文件?????????167??2016-12-19?10:37??網(wǎng)絡上位機\上位機\App.config
?????目錄???????????0??2017-07-28?21:39??網(wǎng)絡上位機\上位機\bin\
?????目錄???????????0??2017-07-28?21:39??網(wǎng)絡上位機\上位機\bin\Debug\
?????目錄???????????0??2017-03-16?10:17??網(wǎng)絡上位機\上位機\bin\Debug\log\
?????文件???????16384??2017-07-28?21:38??網(wǎng)絡上位機\上位機\bin\Debug\上位機.exe
?????文件?????????167??2016-12-19?10:37??網(wǎng)絡上位機\上位機\bin\Debug\上位機.exe.config
?????文件???????26112??2017-07-28?21:38??網(wǎng)絡上位機\上位機\bin\Debug\上位機.pdb
?????文件???????22688??2017-08-13?23:07??網(wǎng)絡上位機\上位機\bin\Debug\上位機.vshost.exe
?????文件?????????167??2016-12-19?10:37??網(wǎng)絡上位機\上位機\bin\Debug\上位機.vshost.exe.config
?????文件?????????490??2016-03-09?13:48??網(wǎng)絡上位機\上位機\bin\Debug\上位機.vshost.exe.manifest
?????文件???????15964??2017-07-28?19:01??網(wǎng)絡上位機\上位機\Form1.cs
?????文件???????13871??2017-07-28?19:00??網(wǎng)絡上位機\上位機\Form1.Designer.cs
?????文件????????6016??2017-07-28?19:00??網(wǎng)絡上位機\上位機\Form1.resx
?????目錄???????????0??2017-07-28?21:39??網(wǎng)絡上位機\上位機\obj\
?????目錄???????????0??2017-07-28?21:39??網(wǎng)絡上位機\上位機\obj\Debug\
?????文件????????1452??2017-07-13?18:02??網(wǎng)絡上位機\上位機\obj\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件????????6903??2017-08-13?23:07??網(wǎng)絡上位機\上位機\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????1010??2017-03-15?08:53??網(wǎng)絡上位機\上位機\obj\Debug\GenerateResource.read.1.tlog
?????文件????????2290??2017-03-15?08:53??網(wǎng)絡上位機\上位機\obj\Debug\GenerateResource.write.1.tlog
?????文件???????????0??2016-12-19?09:28??網(wǎng)絡上位機\上位機\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
?????文件???????????0??2016-12-19?09:28??網(wǎng)絡上位機\上位機\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
?????文件???????????0??2016-12-19?09:28??網(wǎng)絡上位機\上位機\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
?????目錄???????????0??2017-07-28?21:39??網(wǎng)絡上位機\上位機\obj\Debug\TempPE\
............此處省略16個文件信息

評論

共有 條評論

相關資源