Commit Graph

57 Commits

Author SHA1 Message Date
Kwabena W. Agyeman
7c9a4fddf3 Update winc1500 code to support a different SPI bus 2020-09-20 17:17:37 -07:00
Kwabena W. Agyeman
f3899d7256 Remove disabling interrupts 2020-06-14 15:07:09 -07:00
Kwabena W. Agyeman
f4b0df2ad0 Close sockets that have errors.
Tested and works.
2020-04-30 13:11:19 -07:00
Ibrahim Abd Elkader
bdc5888b69
Merge pull request #772 from kwagyeman/kwabena/fix_is_connected
Fix ip_obtained bug for static IPs
2020-04-29 19:03:21 +02:00
Kwabena W. Agyeman
b5dee12bf1 Fix ip_obtained bug for static IPs 2020-04-28 22:26:11 -07:00
Kwabena W. Agyeman
f9dc525011 Improve WiFi performance by 20X
Polling for the async response was ruinning WiFi and UDP performance.
This fix removes that polling while not breaking anything. It has been
stress tested while streaming over an hour of wifi video data using the
new RPC scripts.
2020-04-28 17:05:46 -07:00
Kwabena W. Agyeman
7488988128 Fix winc send/sendto/recv/recvfrom 2020-04-25 11:08:53 -07:00
iabdalkader
48c2ce8a9c WINC1500: Update socket buffer size. 2019-10-25 23:18:49 +02:00
iabdalkader
15e0d4559c Return string errors from WINC1500 init function. 2019-10-16 20:10:23 +02:00
iabdalkader
77496d05ca Update WINC1500 firmware and host driver.
* Update to firmware 19.6.1 host driver 19.3.0.
2019-10-14 23:35:16 +02:00
Kwabena W. Agyeman
7ad61b725e Adds hint system to fb_alloc
With this commit fb_alloc now takes hints to better decide which ram to
give (internal or sdram).

Only fb_alloc_all calls are given any hints right now as some of the
calls need as much ram as possible and will cause failures to happen if
a small amount of fast internal sram is returned.

Anyway, hints can be used to tune where things are placed by fb_alloc.
2019-10-04 21:47:54 -07:00
iabdalkader
d443b001c8 Move WINC1500 firmware. 2019-09-30 00:22:49 +02:00
iabdalkader
f648107bb9 WINC1500: Fix timeout bugs.
* Setting timeout to 0 (from MicroPython) makes the socket blocking instead of non-blocking.
* Sockets were closed on recv/recvfrom timeout.
2019-09-12 00:04:46 +02:00
iabdalkader
54b8132949 License update. 2019-09-05 22:17:50 +02:00
iabdalkader
684614946e WINC1500: Add netinfo function.
* Returns connection RSSI, security type, remote MAC address and IP.
2019-08-26 00:50:53 +02:00
iabdalkader
9fd585f304 Rename IP_ADDR_LEN to IPV4_ADDR_LEN. 2019-08-25 19:20:01 +02:00
iabdalkader
e685b484a0 WINC1500: Support static IP. 2019-08-25 19:08:53 +02:00
iabdalkader
545bfd0435 Add WINC patch set.
* Will keep patches in that dir to apply when updating the drivers.
2018-10-25 01:31:29 +02:00
iabdalkader
d1c6e0e0bb Fix WINC init timeout. 2018-10-25 01:18:36 +02:00
iabdalkader
673fca8432 Add a recv buffer per socket.
* WINC partial recv bug workaround.
2018-08-14 15:19:20 +02:00
Kwabena W. Agyeman
60f6d1ddc7 Add UDP Broadcast for OpenMV Cam discovery.
* Now OpenMV Cam's can be discovered in the wild by OpenMV IDE without
hardcoding the OpenMV Cam WiFi IP address and port.
* The firmware reads settings from OpenMV IDE for STA and AP mode.
* Boradcast in both modes works and OpenMV IDE can find the cam.
* AP mode works (albeit the driver needs help).
* Station mode sometimes connects every now and then. There's a bug in
the WiFi module that prevents this from working right. The same code
executes on the cam and in the IDE for both modes but station mode has
issues...
2018-08-10 16:18:05 +02:00
Ibrahim Abd Elkader
4c25cffa7f
Add WiFi programming. (#362) 2018-07-30 20:10:55 +02:00
iabdalkader
747ca41f09 Update winc header.
* Fix MAKE_ADDR macro.
* Add winc_security_t.
2018-07-16 22:09:54 +02:00
iabdalkader
8e123e0cfc Add WINC SPI prescaler to OMV board config files. 2018-04-25 15:03:41 +02:00
iabdalkader
b9ac80997b WINC: Use HAL to init SPI.
* Use plain HAL code to init WINC SPI.
* Add HAL SPI config to board config files.
2018-04-12 19:32:23 +02:00
iabdalkader
85f06771d3 Include legacy header 2018-03-12 16:42:50 +02:00
iabdalkader
453b41a6ec Update to latest MP. 2018-03-10 20:14:49 +02:00
iabdalkader
7c6ee56862 Move wifi driver to separate files.
* This will enable using wifi from C code.
2018-02-12 23:53:43 +02:00
iabdalkader
6d396b809a Enable auto dependency generation. 2018-02-04 18:31:39 +02:00
iabdalkader
fcc3b0b9c6 Make WINC programmer accept firmware file path. 2017-12-06 17:08:45 +02:00
iabdalkader
64c2d1a535 Revert "Update docs."
This reverts commit 3eca75774f.
2017-12-06 15:29:23 +02:00
iabdalkader
3eca75774f Update docs. 2017-12-06 14:12:16 +02:00
iabdalkader
a8f74d5f88 Move WINC1500 firmware to top firmware dir. 2017-11-17 15:53:20 +02:00
iabdalkader
d1a5f72a95 Add new cam support files. 2017-10-17 14:14:08 +02:00
iabdalkader
113806e51b Update WINC1500 FatFS code 2017-09-21 16:58:57 +02:00
iabdalkader
8c0e1603eb Redefine log level when CONF_WINC_DEBUG is enabled. 2017-03-09 20:22:00 +02:00
iabdalkader
3e41450d97 Add support for OpenMV3 2016-11-27 19:32:09 +02:00
iabdalkader
f200f2e0b8 Set WINC SPI baudrate. 2016-08-30 01:09:49 +02:00
iabdalkader
f4907e6603 Up WINC SPI speed 2016-08-30 01:02:26 +02:00
iabdalkader
2a6e30de98 Reuse SPI handle for WINC. 2016-08-22 23:03:24 +02:00
iabdalkader
1cbcb7e434 Add M7 support 2016-08-12 22:43:50 +02:00
iabdalkader
260caaa8e7 Fix WINC client.send() zeros data being sent.
* Issue #129
2016-04-30 23:08:23 +02:00
iabdalkader
37c8587333 Fix WINC's FW update.
* Remove unused WINC code.
* Replace WINC fw update process with a single fw image.
2016-04-06 02:35:32 +02:00
iabdalkader
f841828818 Add WINC fw dump function. 2016-04-06 02:30:42 +02:00
iabdalkader
cc67372726 Add fw_dump 2016-04-06 02:29:39 +02:00
iabdalkader
6aaef6b68d Update WINC's firmware image. 2016-04-06 02:28:18 +02:00
iabdalkader
f2a1a1f641 Fix printf format. 2016-04-05 23:42:37 +02:00
iabdalkader
6addddbbc7 Fix WINC's firmware_verify. 2016-04-05 23:40:09 +02:00
iabdalkader
3268edceb2 Add WINC1500 Firmware image and certificates.
* FW version 19.4.4
2016-04-05 22:32:50 +02:00
iabdalkader
330b41aab6 Add WINC1500 FW upload code. 2016-04-05 22:31:39 +02:00