#include <string.h>
#include "lwip/tcp.h"
err_t http_recv(void *arg, struct tcp_pcb *tpc...
【示例程序】lwip通过TCP访问局域网中的HTTP服务器#include <string.h>
#include "lwip/tcp.h" err_t http_recv(void *arg, struct tcp_pcb *tpc... |
【示例程序】lwip通过UDP向计算机发送数据【单片机端程序】
#include <string.h> #include "lwip/udp.h" void recvtest(void *arg, struct ud... |
【程序】lwip-2.0.2通过DNS解析域名原工程:https://zh.arslanbar.net/post.php?t=24584
首先,打开配置文件lwipopts.h,添加如下三行,开启DNS: #define LWIP_D... |
【程序】STM32F103中的RTC时钟精确到毫秒显示时间#include <stm32f10x.h>
uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8, 0x... |
[ATtiny13项目]8x8点阵显示数字和字母 [圖片]电路板:
三极管全部都是9012的。左边的74HC595是决定一横排的显示内容,右边的74HC595则是决定显示哪一横排。 左上角的按键是RESET键,最下面的按键是暂停键(程序中是K1)... ![]() |
【实验】用电容器延缓I/O口的电平变化速度将一个电阻和一个电容串联起来接地。最左边为电阻,电阻的最左端接单片机的PC1口,并设为输出。电阻和电容中间引出一根线,接到PC0口,设为输入。
最初PC1输出低电平,电容上没有电荷,PC0为低电... |
|
【程序】lwip-2.0.2通过DHCP自动从路由器获取IP地址原始程序:
https://zh.arslanbar.net/post.php?t=24571 打开lwipopts.h,把#define LWIP_DHCP 0改成#define LWI... |
【实验】使用定时器的外部时钟模式对多谐振荡器的性能进行评估【实验时用到的程序】
#include <stm32f10x.h> const uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99,... |
【教程】给lwip添加计算机名(NetBIOS名称)原始工程:https://zh.arslanbar.net/post.php?t=24584
【最终效果】 1.能够在PC端通过设定的计算机名ping通网卡。 2.能在PC端... |
【数据】在控制台中执行“ping 计算机名”时网卡收到的UDP数据包内容【命令】
C:\Users\Octopus>ping CAR527 Pinging CAR527 [192.168.1.109] with 32 bytes of data:... |
DHCP出错了******21/03/2017 9:05:41 PM******
dhcp_start(netif=20005fe0) en0 dhcp_start(): starting new DH...
巨大八爪鱼
3-31
117.136.63.*
(點擊/回復: 661/2)
|
【步骤】lwip-2.0.2在STM32F103RC+ENC28J60网卡上无操作系统移植(不使用STM32库函数)【1】去lwip的官方网站下载最新的lwip-2.0.2.zip
【2】新建空白STM32工程,建工程时一定要在Manage Run-Time Environment对话框里勾选启动文件... |
|
【程序】AVR单片机通过硬件I2C(TWI)读写24C08存储器#define F_CPU 11059200
#include <avr/interrupt.h> #include <avr/io.h> #include... |
全站共有主題數30494個,帖子數137738篇。 |
內容轉換: |