wiznet / w7500x_stdperiph_lib Goto Github PK
View Code? Open in Web Editor NEWStandard peripherals library for the W7500x
Home Page: https://www.wiznet.io/
Standard peripherals library for the W7500x
Home Page: https://www.wiznet.io/
#define CHECK_SOCKNUM() \
do{ \
if(sn > _WIZCHIP_SOCK_NUM_) return SOCKERR_SOCKNUM; \
}while(0); \
I think you want this : > and >= off by one error
#define CHECK_SOCKNUM() \
do{ \
if(sn >= _WIZCHIP_SOCK_NUM_) return SOCKERR_SOCKNUM; \
}while(0); \
I am currently developing a UART data forwarding application using TCP protocol to transmit data to a PC. The UART data rate can go up to 921600, so I need to utilize DMA functionality to ensure accurate data reception. However, I have been unable to find specific information on this. I would like to ask if it is possible to provide additional APIs related to DMA here?
Hi,
I'm trying to receive a multicast packet, send to ip 235.255.255.250 on port 1900
This is my relevant code:
socket(sn, Sn_MR_UDP, port, SF_MULTI_ENABLE )
while(1)
{
if ((size = getSn_RX_RSR(sn)) > 0) {
uint8_t ip[4];
uint16_t port;
if (size > DATA_BUF_SIZE) size = DATA_BUF_SIZE;
ret = recvfrom(sn, buf, size, ip, &port);
printf("> Receive DNS message from %d.%d.%d.%d(%d). len = %d\r\n", ip[0], ip[1], ip[2], ip[3],port,size);
if (ret <= 0) return ret;
buf[size] = "\0";
printf("%s", buf);
}
}
But I only receive messages directly send to the IP of the device. So no messages send to 235.255.255.250 are received.
Any ideas?
Thanks!
Is I2C supported in the library? Which library should I use and is an example available?
Thanks!
Hi,
I'm trying the WZTOE_WebServer example on W7500P with eclipse gcc 4.8q1 on a linux host.
When running the code I get this:
W7500x Standard Peripheral Library version : 1.0.0
SourceClock : 8000000
SystemClock : 8000000
PHY Init : Success
Link : Off
MAC: 00:08:DC:01:02:03
IP: 0.0.0.0
GW: 0.0.0.0
SN: 0.0.0.0
DNS: 0.0.0.0
Start DHCP
Link is Off and DHCP never happens.
Why is the link off and how can I fix this so that DHCP works?
Thanks!
Hi,
I'm trying to send an UDP message. I cannot find an example, so I figured out the following code:
#define SOCK_SSDP 7
uint8_t dest[4] = { 239, 255, 255, 250 };
#define MDNS_PORT (1900)
char result[10];
snprintf(result, sizeof(result),
"message"
);
uint8_t err = 0;
if(socket(SOCK_SSDP, Sn_MR_UDP, MDNS_PORT, 0x00) != SOCK_SSDP) return;
printf("sendto: %i", sendto(SOCK_SSDP, (uint8_t*)result, strlen(result), dest, MDNS_PORT));
close(SOCK_SSDP);
The console prints a positive number (so the total size of the message), but I cannot see this message in wireshark. Am I missing something?
Need to fix GPIO_WriteBit() function in
W7500x_StdPeriph_Lib/Libraries/W7500x_StdPeriph_Driver/src/w7500x_gpio.c
please refer to GPIO_ResetBits function.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.