-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
[WIP] Feature: component hosted #2093
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
slaff
force-pushed
the
feature/component-hosted
branch
from
August 7, 2020 16:01
9e06b04
to
802827c
Compare
slaff
force-pushed
the
feature/component-hosted
branch
from
September 4, 2020 08:16
802827c
to
4a28583
Compare
mikee47
force-pushed
the
feature/component-hosted
branch
from
November 29, 2020 23:27
4a28583
to
ec1c664
Compare
slaff
force-pushed
the
feature/component-hosted
branch
from
February 12, 2021 14:17
ec1c664
to
0f40dd0
Compare
slaff
force-pushed
the
feature/component-hosted
branch
2 times, most recently
from
February 19, 2021 15:00
39c24e5
to
0ab8d70
Compare
mikee47
force-pushed
the
develop
branch
2 times, most recently
from
February 22, 2021 15:50
7b19c1b
to
295a5f3
Compare
slaff
force-pushed
the
feature/component-hosted
branch
from
March 12, 2021 15:13
0ab8d70
to
c664f92
Compare
slaff
force-pushed
the
feature/component-hosted
branch
from
March 28, 2021 10:36
c664f92
to
1ac8e28
Compare
Superseded by #2305 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Sming's host emulator allows easier debugging and development of embedded applications. This component named "HostEd" extends the host emulator and facilitates testing functionality that only a real microcontroller can provide as for example digital I/O operations or SPI operations.
For example in order to run the Basic_Blink application under the host emulator and run the actual blinking of a LED on a microcontroller we can compile the application using the following directives:
make SMING_ARCH=Host ENABLE_HOSTED=tcp HOSTED_SERVER_IP=192.168.4.1
SMING_ARCH=Host
instructs the build system to build the application for the Host architecture.ENABLE_HOSTED=tcp
instructs the host emulator to communication with the real microcontroller using TCPHOSTED_SERVER_IP=192.168.4.1
instructs the host emulator to connect to IP192.168.4.1
.We need to compile and flash also a special application on the desired microcontroller. That application will execute the commands send from the host emulator. The compilation and flashing for ESP32, for example, can be done using the following commands:
make hosted-app HOSTED_ARCH=Esp32 WIFI_SSID=YourSSID WIFI_PWD=YourPassword
make hosted-flash
If you replace
HOSTED_ARCH=Esp32
withHOSTED_ARCH=Esp8266
then the hosted application will be compiled and flashed on ESP8266 microcontroller.Make sure to replace the values of WIFI_SSID and WIFI_PWD with the actual name and password for the Access Point (AP).
Development
The communication between the host emulator and the hosted application is done via protocol buffer messages. The messages are described in the
proto/hosted.proto
file and can be extended further.