Coder Social home page Coder Social logo

zephyr-demo-wifi's Introduction

Zephyr Demo Wi-Fi and TCP/UDP connection console ######

Overview

This application is simple demo how to connect to Wi-Fi, a utility to test the connectivity. It can be used with any board with connected interface (ETHERNET, GPRS, etc ), but not tested.

It was based on the oficial sample Wi-Fi Demo <https://docs.zephyrproject.org/latest/samples/net/wifi/README.html>.

It was tested with STM32L4+ Discovery kit IoT B-L4S5I-IOT01A from ST Microelectronics. <https://www.st.com/en/evaluation-tools/b-l4s5i-iot01a.html>

This sample adds to the console commands, to easy test the connectivity.

Usage

Connect a terminal to Zephyr Console, and test with this commands.

// Connect to Wi-Fi, if not connected
Wi-Fi connect <<SSID>> <<PSK>>
Connection requested
Connected

// Connect to Wi-Fi, if not connected
>nc tcp <<Ip Adress>> <<Port>>
CONNECTED. Use CTRL+D to disconnect.
Hello from my board using TCP!
Hello from server!

DISCONECTED

>

>nc udp <<Ip Adress>> <<Port>>
CONNECTED. Use CTRL+D to disconnect.
Hello from my board using UDP!
Hello from server!

DISCONECTED

>

After a successfull connection it keeps a open socket to send and receive throwght the console. CTRL + D to disconnect the socket.

image

Requirements

A Zephyr development environment configured, see: <https://docs.zephyrproject.org/latest/getting_started/index.html>

A board with IP connectivity, like B-L4S5I-IOT01A properly configured. For WI-FI autoconnect, the expects a if with the label wifi0.

Building and Running

Build and flash Zephyr Demo Wifi as follows, changing b_l4s5i_iot01a to your board:

After flashing, you should be able to access the console and test the commands.

License

This repository is open-sourced under the Apache-2.0 license. For a list of other open-source components included in this repository, see the file 3rd-party-licenses.txt.

zephyr-demo-wifi's People

Contributors

jptcarreira avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.