Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[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

Attachment: modbus_serial.log.error
Description: Binary data


Back to the top