STM32 nucleo F767ZI lwip and httpd - unable to respond to ping - apache

I have a project with stm32F767ZI about smart home and I face some problems with httpd
I am not using a DHCP server so I have set the board to a static IP in the same network as my computers ethernet.
and when i try to ping with cmd i have no response the same with the browser
who can help me 🙏
thanks in advance
I am trying to follow this example
https://www.youtube.com/watch?v=cYynDc82g4w

Related

Raspberry Pi wifi LAN Server how to?

I want to run a Node web server on my Pi, and connect to it via the Pi's wifi. The idea is that I can access the server when I am in the middle of nowhere and just plug the Pi to a 5V output and login the server through my phone. I just want to setup the pi as a LAN network.
Through past research and tests I managed to turn my Pi into an access point but I lost the ability to SSH to it.
At the moment I have a Node server running a webpage and I am able to connect to it as the Pi is connected to a wifi router.
I am wondering if I just need to turn my Pi into an AP or if I need to do some port forwarding too.
My current setup is a RaspberryPi4 with Raspbian and running Node.
Edited -
Added "I just want to setup the pi as a LAN network."
In the raspberrypi.org documentation has all the information, in the AC I recommend using a wifi adapter, but you can use the pi interface.
https://www.raspberrypi.org/documentation/configuration/wireless/access-point-routed.md
you do not need to configure dhcp, as the site may be located on localhost 127.0.0.1
and recommend to access by phone
https://www.raspberrypi.org/documentation/remote-access/ssh/
if you have any problems in the configuration process put it here

Stream Raspberry Pi Camera to Internet

I've surfed the internet for quite a while now for my project but all I could find is projects where people stream the raspberry pi camera to local host. I would like to stream it to the internet and be able to view it from anywhere in the world. Any suggestion?
Use this tutorial to set up the camera: https://hackernoon.com/spy-your-pet-with-a-raspberry-pi-camera-server-e71bb74f79ea
Set stream_localhost off in /etc/motion/motion.conf
Forward the port 8081 on your router.
Get your IP: https://www.whatismyip.com/
Access the webcontrol through :8081
Attention: You need a static IP or dyndns!

Raspberry Pi Wifi dongle

I'm not quit sure if I'm on the right site for this, but I'll give it a try. I have a couple of usb devices plugged in my Raspberry Pi model B. But when I plug in a WiFi dongle, it just shuts down all the other usb devices, and the dongle itself doesn't even work. Has anyone any idea what moght solve my problem? Thanks a lot!
I guess the problem is the amount of current that your Raspberry Pi is able to source. If you are not using a Hub it makes sense that when you connect your WiFi dongle the USB ports are disable to avoid getting to much current from your Raspberry Pi.
WiFi dongle consumes lot of USB power. You need external powered USB hub, or you can maximize the input current for your pi
Based on its documentation, Pi 2 can be powered up to 2A current
I had this problem too. It was easy to fix for me, but this may not help. This turned out to be a settings / driver error for me. If this does not work, you should try a different power source with a 2A current.
I have an answer for this. If you can run the command 'lsusb' okay, and it shows your wifi dongle is attached, you will need to edit your /etc/network/interfaces file.
First, find your ip and gateway settings
ifconfig
That should display your ip address. Write down the default gateway and this IP address.
Now, enter this into the command line:
Sudo nano /etc/network/interfaces
So, that has opened the interfaces file. Completely rewrite the file to the following (YOU SHOULD TAKE A PICTURE OF THE CURRENT FILE IN CASE THIS GOES WRONG):
auto lo
iface lo inet loopback
#auto eth0
#allow-hotplug eth0
#iface eth0 inet dhcp
allow hotplug wlan0
iface wlan0 inet static
address you_got_this_in_step_1
network 192.168.0.225 #Change this to your setting.
gateway default_gateway_from_step_1
dns-nameservers 8.8.8.8
wpa-ssid YOUR_NETWORK_SSID
wpa-psk YOUT_NETWORK_PASSKEY
allow-hotpug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
ctrl+x and save the file, yes on overwrite
sudo service networking restart
The pi should do some things and restart okay. If not, please set the file back to the original (should have screenshotted the file).
I also recommend that you do this locally and not through SSH.
Thanks for reading my answer and I hope it helps.

Remote connection to embedded device in field

I would like to ask about the way how to establish remote connection to Linux based embedded device in the field.
I have a small linux board I want to place in remote location. It has an internet access through ethernet. Than I have a Linux server with public IP to be able to tunnel connection.
And finally, I want to connect from my PC to this device.
I don't feel yet competent enough to code my own tcp sockets etc. to reroute the connection :) So what would be the easiest way to do that only with available linux tools? And BusyBox toolset on endpoints.
Thank's a lot!
I think that using OpenVPN would be a easy way to tunnel to the device. You can cross compile it and set it up as a client on the embedded device. Then you install it on your Linux box and set it up as a server.
Finally you install it on your work PC and set up as a client there.
It gives you a virtual network where all clients can talk to each other like they would be on a local network.

Configuring SSH over USB on ARM AM335x running angstrom linux 3.2.0

I have a AM335X ARM processor on a custom board. I am running angstrom linux 3.2.0 on it.
My build environment is a 64 bit laptop running Ubuntu 12.0.4.
I was hoping (I am a newbie), someone could explain what I need to do to configure the board (and host desktop) to run SSH over USB.
Any help would be greatly appreciated
It depends whether you have OTG port or not. If yes, you should configure it to emulate a network device. Connect your board to your laptop and you should see a new networking device (usb0 or something like this). Configure IP addresses for both host usb0 and one on your board and you're done having an extra IP subnet, where you can ping, SSH etc.