Answer the question
In order to leave comments, you need to log in
Working together arduino and linux?
Good day, I got carried away with the microcontroller and arduino and in parallel I delve into Linux. Interested in what exactly I need to study (where to dig), if the final task is a graphical application in the Linux environment that reads / sends data to arduino.
Answer the question
In order to leave comments, you need to log in
The most elementary implementation, so as not to force yourself to study unnecessary rubbish (GTK, Qt, etc.) is the web interface.
A simple CGI is written that communicates with the microcontroller. And the browser already draws all the graphics. Everything is excellent and basic.
And since Since web sockets work in all browsers, the task is generally simplified.
The interface for connecting to the microcontroller can be either the ancient RS-232 or USB - depending on how the microcontroller is configured. In any case, if USB is configured to CDC, then there will be no difference in terms of software: open /dev/ttyUSB0 and work as if it were a regular RS-232.
But if you wish, you can also use libusb in bulk mode. This makes sense if you need to drive a lot of data on the bus.
To be honest, your problem is not clear and is solved in 3 minutes.
Just install not the server from the article (you need Python there), but a simple http-server via npm (I think this is closer to you).
Then go to the directory of your project and run it through the command
Here is the solution to your problem.
Now when you go to localhost:8080
index.html will be picked up from your folder.
That's the whole idea.
PS: As a bonus, you get that when you change html + css, the server tracks them and reloads the page for you.
He himself had to take care of deploying the finished layout on the hosting and ALREADY AFTER pointing out to you any flaws in the design (or not to you - flaws in the layout of the design).
Either way, it's not your job. Say so.
Something does not suit specifically in the design - let him send screenshots.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question