Hello Marcelo,
Thank you for the feedbacks!
Regarding the issue with Modbus compilation: it has been fixed and pushed to the repository.
You can see it here http://git.eclipse.org/c/mihini/org.eclipse.mihini.git/commit/?id=abe7016dcb571019c16e43fee2b35680bff81aa8
I also plan to add in automatic tests a task to build this Modbus lib, so that this issue won’t reproduce.
Regarding the issues to access Mihini agent from your workstation: like Guilhem said, it’s a configuration issue.
Both shell module and the module providing the APIs used by IDE have a setting to allow external connection (ex. shell.address = "*").
The default value is to not allow external connection (for security matters I think), we may re-evaluate this default value, but any way, feel free to edit the defaultconfig.lua file to fit your needs!
Feel free to tell us if those responses helped you or if you still have some issues.
Regards,
Laurent Barthelemy
De : mihini-dev-bounces@xxxxxxxxxxx [mailto:mihini-dev-bounces@xxxxxxxxxxx] De la part de mnerys@xxxxxxxxxx
Envoyé : vendredi 19 juillet 2013 20:25
À : mihini-dev@xxxxxxxxxxx
Objet : [mihini-dev] Getting Started with Mihini
I got a fresh install of Raspbian "wheezy" and tried to put Mihini on it.
I followed:
http://wiki.eclipse.org/Mihini/Run_Mihini_on_an_Open_Hardware_platform
On Step 1, I initially took the first option:
http://wiki.eclipse.org/Mihini/Build_Mihini
There, I got an error with modbus (please see attached log).
Since modbus was an optional step, I continued and the build ended up fine.
Later on, I started Mihini on my device and verified I could connect to it using:
telnet localhost 2000
(BTW: I had to use the ldd trick presented on the wiki)
Then, I tried to Export a Lua Project from LDT and it failed with a connection refused error. I tried to do a telnet from my workstation to Mihini and I could not connect either.
I could do an ssh to the Raspberry Pi (I was looking for issues with firewall configuration) and I noticed that a telnet on the Pi works only with localhost. If the Raspberry Pi's IP is used, connection fails.
I decided to move to the 3rd option (of Step 1):
http://wiki.eclipse.org/Mihini/Install_Mihini
This time I could use telnet from my workstation and use LDT to export a Lua Project to the Raspberry Pi.
The problem that I am facing now is that I am trying to use the sample code on Step 4:
local log = require "log"
local sched = require "sched"
local function main()
log("GENERAL", "INFO", "My first Mihini app is alive :)")
end
sched.run(main)
sched.loop()
However, the syslog does not show the message above. It seemed like the app was failing to run. I am not sure if this would work, but I tried to run:
cd /opt/mihini/apps/test
./run
And no module from Mihini is being found. If I comment the 'log' module out, then I get an error with 'sched'.
lua: main.lua:1: module 'log' not found:
no field package.preload['log']
no file './log.lua'
no file '/usr/local/share/lua/5.1/log.lua'
no file '/usr/local/share/lua/5.1/log/init.lua'
no file '/usr/local/lib/lua/5.1/log.lua'
no file '/usr/local/lib/lua/5.1/log/init.lua'
no file '/usr/share/lua/5.1/log.lua'
no file '/usr/share/lua/5.1/log/init.lua'
no file './log.so'
no file '/usr/local/lib/lua/5.1/log.so'
no file '/usr/lib/arm-linux-gnueabihf/lua/5.1/log.so'
no file '/usr/lib/lua/5.1/log.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
main.lua:1: in main chunk
[C]: ?
It seems I am out of luck with Mihini. Could you please advise?
Thanks,
Marcelo Nery dos Santos
Research Software Engineer
Phone: 55-21-2132-3663 E-mail: mnerys@xxxxxxxxxx | Av. Pasteur 146 & 138 Rio de Janeiro, RJ 22290-240 - Brazil |