Hello, I am building door lock access system based on stm32f103c8t6 Blue Pill.
I use W5500 for ethernet connection to http server. Power source is 12V 3A Switching power supply then connected to adjustable regulator MP2307 module which set to 5V.
I use W5500 module bought from china as seen below.
I use mac address from microchip serial eeprom which have been included official mac address. I use 2 relay module which sold many in market to control electric door lock.
The system send rfid data in http protocol to apache server. The apache server was built on HP tower server using intel xeon E3 1220. The system works perfectly, electric door lock can be swithed, rfid data also can be sent to server. I can ensure the http communication was reliable, I can ensure socket closed after data was sent.
Below is example of http communication debug in wireshark, but it still connected to my personal laptop, but I can ensure that server communication also the same.
11 01:18:56.007945000 Microchi_41:cd:5d Broadcast ARP 60 Who has 192.168.1.103? Tell 192.168.1.177
12 01:18:56.008018000 Fujitsu_c8:e5:29 Microchi_41:cd:5d ARP 42 192.168.1.103 is at e0:18:77:c8:e5:29
13 01:18:56.008869000 192.168.1.177 192.168.1.103 TCP 60 1045→80 [SYN] Seq=0 Win=2048 Len=0 MSS=1460
14 01:18:56.009342000 192.168.1.103 192.168.1.177 TCP 58 80→1045 [SYN, ACK] Seq=0 Ack=1 Win=8192 Len=0 MSS=1460
15 01:18:56.010189000 192.168.1.177 192.168.1.103 TCP 60 1045→80 [ACK] Seq=1 Ack=1 Win=2048 Len=0
16 01:18:56.011147000 192.168.1.177 192.168.1.103 HTTP 172 GET /ci310/nfc/index/c14a8dab HTTP/1.1
17 01:18:56.062179000 192.168.1.103 192.168.1.177 TCP 54 80→1045 [ACK] Seq=1 Ack=119 Win=64240 Len=0
now I connect some the door lock system (2-3 device) to TP Link switch. I also have been used various switch include cisco switch, the same problem.
So, my problem is W5500 connection is down after some hours varying between 7 hours to 24 hours, sometime can up until 1-2 days, but it then will down, up time is unpredictable. When it is down, W5500 can not be ping. And rfid data in http also can not be sent. Even if I remove the electric door lock, it also down after some hours.
Even I use original belden cat5e ethernet cable this problem also occur. When I disconnect the cable from the switch and then connect directly to my laptop, the device (door lock system) also can not be ping.
Device reset or power off then power on is only the solution for the device can normally work again, but it then will down after some hours.
Please anyone help me.