Commit 59bee473 authored by Lucas Drezet's avatar Lucas Drezet
Browse files

move everything in

parent 36c3117c
# Embedded Server using CycloneTCP library
## What do you need?
- STM32F779I-EVAL board
- STM32CubeIDE
- An internet box or a computer with an ethernet port
- An ethernet cable (RJ45)
# Overview
This project is an embedded server (using a library named _CycloneTCP_) which communicate with CAN bus for STM32F779I-EVAL boards.
## How to make it work?
1. Add the project **CycloneServer** in STM32CubeIDE
2. Build and flash with STM32CubeIDE the program into a STM32F779I-EVAL board
3. Make sure jumpers are in the good position (JP3, JP4, JP6, JP8 and JP12):<p align="center"><img src="docs/jumpers.jpg" alt="jumpers"></p>
4. - If you want to connect it directly to a box, there is nothing to do
- If you want to connect it to a computer, first follow these steps:
+ Windows 10:
1. Create a static IP address (Control Panel -> Network and Internet -> Network and Sharing Center -> Change adapter settings -> Right-click and Properties on the network adapter -> Select Internet Protocol Version 4 (TCP/IPv4) -> Properties)<p align="center"><img src="docs/staticIPAddressW10.jpg" alt="staticIPAddressW10"></p>
2. Download and launch: [TFTPD](
3. Fill information<p align="center"><img src="docs/tftpdSettings.jpg" alt="tftpdSettings"></p>
4. Connect the board into the computer
+ Ubuntu:
1. Create a static IP address (Settings -> Network -> Select your interface)<img src="docs/staticIPAddressU.jpg" alt="staticIPAddressU"></p>
2. Download isc-dhcp-server: ```sudo apt install isc-dhcp-server```
3. Copy and past into */etc/dhcp/dhcpd.conf*:
# Sample /etc/dhcpd.conf
# (add your comments here)
default-lease-time 600;
max-lease-time 7200;
option subnet-mask;
option routers;
option domain-name-servers;
subnet netmask {
4. Add your ethernet interface into */etc/default/isc-dhcp-server*<img src="docs/ethernetInterface.jpg" alt="ethernetInterface"></p>
5. Execute ```sudo service isc-dhcp-server restart```
5. Connect to the IP address and it should works! (when you start the server, it may take a bit long before you can access the webpage)
<p align="center"><img src="docs/screen.jpg" alt="screen"></p>
<p align="center"><img src="docs/webpage.jpg" alt="webpage"></p>
## Team
- Tutor: Didier DONSEZ
- Students:
- Lucas DREZET
## How to change the webpage?
1. Put into your **resource/** directory your files: .html, .css, .js...
2. You might change ```strcpy(httpServerSettings.rootDirectory, "/www/");``` and ```strcpy(httpServerSettings.defaultDocument, "index.html");``` in your function main in **main.c** with your own root directory and your own home page
3. You might change your functions ```httpServerCgiCallback```, ```httpServerRequestCallback``` and ```httpServerUriNotFoundCallback``` in **main.c** to match what you want to do with your website
4. It is done! You do not have to do anything else because when you build or flash the code, it will build automatically the **resource/** folder
## Documentation:
[HERE]( "Documentation")
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment