cancel
Showing results for 
Search instead for 
Did you mean: 

WF update. Socket speed

dimitrybulkin
Associate II
Posted on July 07, 2014 at 21:45

Hi,

1. I am using SOCKETS to make big file upload from my device from server. I have 2 questions:

a) What is maximum buffer size in module for SOCKET? It seems about 1K. After it makes unstable in operation

b) What is maximum speed of upload using sockets? I am acheaving 5-10 Kb/sec. It is too slow for me.

I send 800 bytes in socket. Wait for OK. Then send next part. Sometimes I see  delays/timeouts about 1.5s while awaiting ''OK'' from module. Or there is no OK at all. What's reason?

FW  version = 140128-caf4b79-SPWF01S

2. I am single developer (not a company). My distributor ignored me. Can you push them to send me fresh FW? Compel, Saint-Petersburg, Russia. My mail dimitrybulkin@yandex.ru

#wi-fi
17 REPLIES 17
Posted on July 08, 2014 at 09:45

Hi,

since Release 3.0 (2014-04-17), socket buffers are up to 4Kb. Buffers > 4Kb are splitted in 512b chunks.

Before any discussion, I have to ask you to try with a newer Release. I'm sorry for your distributor. I'll try to push you, if possible for me.

Anyway, you can also try to use higher baudrate (I'm guessing you are using 115200bps).

Lastest Firmware, + 921600bps (also without flow control), I'm sure you can reach higher and higher throughtput ;)

Last but not the least: TCP or UDP?

ciao

jerry

dimitrybulkin
Associate II
Posted on July 08, 2014 at 15:38

Hello

Yes it is TCP. I am working withy PHP page in webserver;

My distributor do not want help me because they are working only with companies. They are do not work with persons. Maybe you can help me somehow?

Thanks!

Posted on July 08, 2014 at 16:36

I've sent an email to the right ST person.

If you will not have a reply from Compel in a few days, I'll give your contact directly to ST people.

Sorry, but I have no directly visibility of Russia distributors.

Waiting for your feedback about Compel...

Ciao

j

dimitrybulkin
Associate II
Posted on July 08, 2014 at 21:10

Ok Thank you very much

BTW, why ST do not post FW in website?

Posted on July 09, 2014 at 08:13

FW post on website was already planned at the end of June, but (due to technical/server updates) was postponed. Hope for the end of July.

dimitrybulkin
Associate II
Posted on July 09, 2014 at 19:20

Thanks, Compel is sent FW to me and I am updated it in module Now work about my FW to test updated speed...

Posted on July 10, 2014 at 14:14

Good news!

dimitrybulkin
Associate II
Posted on July 10, 2014 at 22:06

Yes, but speed is the same. Tommorow I will try open SOCKET on another uart of module and send data trough uart directly

Posted on July 11, 2014 at 12:02

What do you mean with ''speed is the same?''. Using, for example, 921600 in place of 115200 as baudrate, you have to notice higher performance.

In attach a Python script, helping you to better evaluate WiFi module.

If you are using an evaluation board (SPWF01S + PC), you can use script commands like:

- ''setvar variable'' to change baudrate

- ''sockopen'' to open a socket

- ''sockwrite localfile'' to send a file stored into PC

ciao

jerry

________________

Attachments :

SPWF01S_shell.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I1Pi&d=%2Fa%2F0X0000000bmh%2FHbFPgW.NJlLVpKCC6U6ZjnErKxqS70wV6XmH4ki4mkg&asPdf=false