Skip to content

Bridge + spacebrew #25

@fmatray

Description

@fmatray

Hello,
I'm using the yun + spacebrew.
YUN and arduino IDE are uptodate, upgraded 2 days ago.

This is a part of my sketch :

sb.verbose(true);
sb.addPublish("Red", "range");
sb.addPublish("Green", "range");
sb.addPublish("Blue", "range");
sb.addPublish("LightDown", "boolean");
sb.addPublish("LightUp", "boolean");
sb.addPublish("SunSet", "boolean");
sb.addPublish("SunRise", "boolean");
sb.addPublish("SunRiseAlarm", "string");

sb.addSubscribe("Red", "range");
sb.addSubscribe("Green", "range");
sb.addSubscribe("Blue", "range");
sb.addSubscribe("LightDown", "boolean");
sb.addSubscribe("LightUp", "boolean");
sb.addSubscribe("SunSet", "boolean");
sb.addSubscribe("SunRise", "boolean");
sb.addSubscribe("SunRiseAlarm", "string");
When I run ps, it looks like there are missing arguments at the end of line.
10832 root 6028 R python spacebrew.py --server sandbox.spacebrew.cc --port 9000 -n Pollux -d SUNRISE -s Red , range -s Green , range -s Blue,range

*** My guess is there is something wrong while passing arguments threw the bridge. ***
root@pollux:/usr/lib/python2.7/bridge# cat /usr/bin/run-spacebrew

!/bin/sh

cd /usr/lib/python2.7/spacebrew
echo $@ > /tmp/cmd
exec python spacebrew.py $@
root@pollux:/usr/lib/python2.7/bridge# cat /tmp/cmd
--server sandbox.spacebrew.cc --port 9000 -n Pollux -d SUNRISE -s Red , range -s Green , range -s Blue,range

YunSpaceBrew uses the process library to run /usr/bin/run-spacebrew.
This is a part of SpaceBrewYun.cpp file

brew.runAsynchronously();

Perhaps, there is too much arguments ? I don't know.
I can't find how the bridge works between the arduino and the Linux.

Best regards,
Frédéric

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions