-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need Help #1
Comments
Hi,
This is a simple code that can send payload using uart1. You can add this to first four if conditions of the main loop and bypass the queue entirely, i should also mention that the throughput of usart1 is very low so you need to lower the sampling rate of microphones.
|
Thanks for that it works good, with your initial code you get the data with a python script ? if I want to use the WIFI I have to create a python script ? |
You need to change host parameter of python code to '0.0.0.0'. And in config.h, you should set IP address of your computer. Your computer should (preferably) be on the same network as your board. Here is a simple python code that works fine for me:
You should also make some changes to my project. Comment out these two lines in main.c (line 314):
And change these lines in wifi.c to use UDP instead of TCP (line 148):
|
You can use ifconfig in Linux or ipconfig in windows to get ip address of your network interface and use that in config file. |
Could you show me the output of ifconfig? Is your computer connected to the same wifi network? did you set the port correctly in both codes? |
i am doing this with a connection sharing with my phone because for now i cannot use my work wifi, i saw that it's WPA3 security : so what did i put here #define SECcommad "C3=4\r\n" |
I think this wifi module doesn't support WPA3. Can you change your phone hotspot's security settings to "None"? if you use None then you can use C3=0. |
I don't know. I haven't tested it myself. |
it's not possible i will try with WPA2 i don't have to change anything ? |
WPA2 has 2 settings: TKIP or AES. you should use 3 for AES and 5 for TKIP. i have only tested AES with mode 3. |
Ok thanks I will try at home I hope it will works |
Established ports are already taken by some other process so you can't use them. As far as i know these states are only relevant for statefull connection like TCP. UDP is stateless, hence there is no state for a UDP connection. Operating system always checks for free ports and if the port you choose is already taken, it will prevent your application for accessing it and your python code would throw an error. |
Did it works with a WPA2-CCMP ? |
I don't know. I've only tested it with a 2.4 GHz wifi in "WPA-PSK/WPA2-PSK AUTO" mode and C3=3. Does your WiFi work in 2.4 GHz band or 5 GHz ? |
According to datasheet you can use mode 2 or 4 for wpa. Have you tried them? |
Try uncommenting these two lines at the end of WifiInit function (line 156 of wifi.c).
And connect to a WPA2 wifi with C3=3. I've just tested it with my laptop's hotspot (WPA2-Personal, 2.4 GHz) and it works. |
According to this post, by default these devices can't connect to an access point on channel 11 or above. |
I am having the B-L475E-IOTO1A dico kit and i would like to extract data from the two microphones, i tried your code but i don't know how to get back the data with TeraTerm.
The text was updated successfully, but these errors were encountered: