Is it possible to communicate to Linno directly from outside web client without going through a Sketch ? Is this possible in current Yun Architecture ?
Added to this, Is it possible to perform Restart, Pause and Stop the ATmega32U4 processor from Linnio.
Please direct me to documentation on this.
you can controll all IO's on the 32u4 side from the linino side via bridge.
i do this in my project.
You can do it with php, phyton ........
And with linino as webserver you can route it to the world
From your example,
Understanding is that YunServer is running from the Sketch ( it is initiated inside sketch). Most of Bridge communication is from Sketch Atmeg32U4 to Linino.
But I want an example of Linino talking to Sketch code or Atmega32U4
Is there an example of Bridge.Trasfer() API from linino to Atmega
As far as restart, stop and start control the documentation is the schematic for the Yun which is here:
Combined with some info on how to use the gpio's which I found here:
WARNINGThis is low level stuff, there are few if any protections if you do stupid things with gpio's. For instance I don't know what would happen if you set a gpio to output when it is wired as a input. It is quite possible you would burn it out if you set it low on the software side while it was held high by the connected hardware. The AR9331 datasheet might give this information. Don't go blindly monkeying around with the gpio's
So, we know that gpio18 is hooked to the 32U4 reset line. To set it up for output you need to:
I donot see gpio18 directory under /sys/class/gpio/. All I have is : export, gpio21, gpio22, gpio23, gpiochip0, and unexport directories. Am I missing some thing here. ( kindly see the image attached)
similar to reset-mcu: Is there a command for just stop and pause.
For the script, I'll call it stop-mcu, start a console session on the Yun use either PuTTY on windows or picocom on linux.
Once you are in do this:
cd /usr/bin
cp reset-mcu stop-mcu
vim stop-mcu
delete the line that starts with echo 0 and save the file
If you aren't familiar with vim a lot of people find nano easier to work with, just opkg install nano and use it.
I think to "pause" a running sketch on the Leonardo side you need to get into the world of hardware debuggers using JTAG.