Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

WIZ820io W5200 socketstat unexpected result

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> EASY TCP/IP
View previous topic :: View next topic  
Author Message
GrainyPCB

Bascom Member



Joined: 30 Jan 2013
Posts: 12
Location: Cincinnati, OH

usa.gif
PostPosted: Thu Jul 24, 2014 3:43 pm    Post subject: WIZ820io W5200 socketstat unexpected result Reply with quote

Hello. Complete TCP/IP noob here, apologies in advance. I am trying to run example webserver_w5200.bas on a WIZ820io module, modified for m328. IP is pingable. Initial goal is to reach "Sock_established" and receive "GET." When I connect with a browser or Easy TCP/IP, socketstat produces a value not listed in the BASCOM-AVR help index.

Code:
For I = 0 To 7                                                                ' for all sockets
    Tempw = Socketstat(i , 0)                                                   ' get status
    If Tempw <> 0 Then Print Tempw
    Select Case Tempw
       Case 15
            Print "what?"
       Case Sock_fin_wait
            Print "Connection being terminated"
            Socketdisconnect I
       Case Sock_established
       ...
Loop
End


When I connect, tempw = 15 = h0F = ????
When I disconnect, tempw = 24 = h18 = "SOCK_FIN_WAIT"

What is socketstat h0F?
On a possibly-related note, where can I find:
Code:
$include "config_MMCSD_HC-W5200.bas"
$include "Config_AVR-DOS-W5200.BAS"

Relevant portions of the example are currently block commented out.
Back to top
View user's profile
GrainyPCB

Bascom Member



Joined: 30 Jan 2013
Posts: 12
Location: Cincinnati, OH

usa.gif
PostPosted: Mon Jul 28, 2014 2:51 pm    Post subject: Reply with quote

Partially resolved: switched to xmega128a1 and example runs as expected. m328 SRAM limitations?

Would still appreciate if someone could help me locate:
Config_MMCSD_HC-W5200.bas
Config_AVR-DOS-W5200.bas

Thanks!
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> EASY TCP/IP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum