Code Monkey home page Code Monkey logo

w7500x_stdperiph_lib's Issues

need to fix the bug in GPIO_WriteBit()

Need to fix GPIO_WriteBit() function in
W7500x_StdPeriph_Lib/Libraries/W7500x_StdPeriph_Driver/src/w7500x_gpio.c

please refer to GPIO_ResetBits function.

Receive multicast UDP message

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!

UDP message

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?

want to use DMA

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?

socket number check is not working

#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);             \

I2C support

Is I2C supported in the library? Which library should I use and is an example available?
Thanks!

WZTOE_WebServer Link Off

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.