Skip to main content
Pascal Zosso
Associate II
November 21, 2017
Solved

Is it possible to make a transparent bridge with SPWF04?

  • November 21, 2017
  • 1 reply
  • 1508 views
Posted on November 21, 2017 at 11:46

Hello,

I know my question is simple but the answer, I think, is not as simple.

Here is my use case:

I would like to exchange a small amount of data between a PC (client) and a remote device (server) quickly and often

The

PC

role is to

- open a TCP connection to the server socket

- start and stop application exchange

- process the data.

The

remote device

role is to

- provide Wifi AP

- listento a socket server

- execute the command send by the PC

- send data periodically

I'm okay to create a server socket, use SPI protocole, and send data between them BUT I find very annoying the WIND notifications system to know there is pending data.

Is it possible to disable the WIND notifications (with the WIND mask) and to use the IRQ line to signal only when application data have been received on the socket server?

My dream would be : once the initialisation is over, to disable the notification and only use write and read socket command to manage the application data (a transparent bridge mode as I said)

Best regards,

#transparent-bridge #spwf04 #socket

Note: this post was migrated and contained many threaded conversations, some content may be missing.
    This topic has been closed for replies.
    Best answer by Gerardo GALLUCCI
    Posted on November 22, 2017 at 16:40

    'Data Mode' is not part of SPWF04 (since multiple clients are now allowed), and SPI will not assert nHostINT if WINDs are disabled. Disable unuseful WINDs, and only keep the ones you need.

    WIND:55 is needed if you don't want to continuously poll (AT+S.SOCKQ) for incoming data.

    1 reply

    Gerardo GALLUCCI
    ST Employee
    November 21, 2017
    Posted on November 21, 2017 at 19:39

    Take a look at 'Data Mode' over SPWF01Sx modules. Once socket server is open, and client is in, there is a simple p2p connection without AT commands and/or WIND notifications. But:

    - no SPI interface (only AT commands over UART)

    - only 1 server, supporting only 1 client

    - others...

    Pascal Zosso
    Associate II
    November 22, 2017
    Posted on November 22, 2017 at 09:07

    Hello,

    Data mode of SPWF01Sx is exactly the same thing I would like to do with the SPWF04SA because I need to the speed of the SPI for my application, UART is too slow. I would like to reduce WIND notifications traffic as much as possible to not interfere with the application process.

    My questions mainly concerns the behavior of the SPI when the 

    'Pending Data'

    WIND notifications are disabled:

    Does the SPWF04 assert the IRQ line to signal there is data in the socket server?

    What behavior should I expect when application data are exchange?

    Best regards

    Gerardo GALLUCCI
    ST Employee
    November 22, 2017
    Posted on November 22, 2017 at 16:40

    'Data Mode' is not part of SPWF04 (since multiple clients are now allowed), and SPI will not assert nHostINT if WINDs are disabled. Disable unuseful WINDs, and only keep the ones you need.

    WIND:55 is needed if you don't want to continuously poll (AT+S.SOCKQ) for incoming data.