# tcp_light **Repository Path**: dubai03/tcp_light ## Basic Information - **Project Name**: tcp_light - **Description**: 安信可Ai-M61-32SU通过tcp远程开灯demo - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-03-09 - **Last Updated**: 2024-03-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # wifi6 tcp case ## Support CHIP | CHIP | Remark | |:----------------:|:------:| |BL616/BL618 | | ## Compile - BL616/BL618 ```bash make CHIP=bl616 BOARD=bl616dk ``` ## Flash ```bash make flash COMX=xxx ## xxx is your com name ``` ## How use wifi tcp test example ``` )) ( ____________ \|/ ))) (( \|/ \|/ | | |______ ___|____|___ | Host pc | | | | | |____________| | BL616 | | Router |#<-------->#/ /# |_______| |____________| /____________/# 192.168.1.3 192.168.1.1 192.168.1.2 SSID: BL_TEST Password:12345678 ``` ### tcp client test On Linux Host pc run netcat command, listen localhost 3365 port ```bash $ nc -lp 3365 ``` On BL616 board, using command connect your WiFi router ```bash bouffalolab />wifi_sta_connect win7 qwe.123456 bouffalolab />wifi_tcp_test 122.114.122.174 43460 bouffalolab />tcp client task start ... Server ip Address : 192.168.1.2:3365 TCP client connect server success! Press CTRL-C to exit. ``` if connect success, Linux Host pc have receive data the BL616 send.