Hi!

Thanks a lot for the rapid feedback!

This is what we get when we run asebamedulla in verbose:

> [Thu Nov 24 17:33:57 2016 325] Incoming connection from 
> ser:device=/dev/ttyACM0;baud=115200;stop=1;parity=none;fc=none;bits=8;dtr=true


So it appears the connection to the robot is successful?

I was not able to install qdbusviewer as I have Raspian Jessie without desktop 
installed.
But if I run dbus-monitor, I get this output when I run asebamedulla:

> signal sender=org.freedesktop.DBus -> dest=(null destination) serial=4 
> path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; 
> member=NameOwnerChanged
>    string ":1.2"
>    string ""
>    string ":1.2"
> method call sender=:1.2 -> dest=org.freedesktop.DBus serial=1 
> path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=Hello
> signal sender=org.freedesktop.DBus -> dest=(null destination) serial=5 
> path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; 
> member=NameOwnerChanged
>    string "ch.epfl.mobots.Aseba"
>    string ""
>    string ":1.2"
> method call sender=:1.2 -> dest=org.freedesktop.DBus serial=2 
> path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RequestName
>    string "ch.epfl.mobots.Aseba"
>    uint32 4
> [Thu Nov 24 18:09:07 2016 231] Incoming connection from 
> ser:device=/dev/ttyACM0;baud=115200;stop=1;parity=none;fc=none;bits=8;dtr=true



When I run the python script from this example, dubs-monitor outputs:

> signal sender=org.freedesktop.DBus -> dest=(null destination) serial=6 
> path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; 
> member=NameOwnerChanged
>    string ":1.3"
>    string ""
>    string ":1.3"
> method call sender=:1.3 -> dest=org.freedesktop.DBus serial=1 
> path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=Hello
> method call sender=:1.3 -> dest=org.freedesktop.DBus serial=2 
> path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; 
> member=GetNameOwner
>    string "ch.epfl.mobots.Aseba"
> method call sender=:1.3 -> dest=:1.2 serial=3 path=/; 
> interface=org.freedesktop.DBus.Introspectable; member=Introspect
> method return sender=:1.2 -> dest=:1.3 reply_serial=3
>    string "<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object 
> Introspection 1.0//EN"
> "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd";>
> <node>
>   <interface name="ch.epfl.mobots.AsebaNetwork">
>     <method name="LoadScripts">
>       <arg name="fileName" type="s" direction="in"/>
>       <annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/>
>     </method>
>     <method name="GetNodesList">
>       <arg type="as" direction="out"/>
>     </method>
>     <method name="GetNodeId">
>       <arg type="n" direction="out"/>
>       <arg name="node" type="s" direction="in"/>
>     </method>
>     <method name="GetVariablesList">
>       <arg type="as" direction="out"/>
>       <arg name="node" type="s" direction="in"/>
>     </method>
>     <method name="SetVariable">
>       <arg name="node" type="s" direction="in"/>
>       <arg name="variable" type="s" direction="in"/>
>       <arg name="data" type="an" direction="in"/>
>       <annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="Values"/>
>       <annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/>
>     </method>
>     <method name="GetVariable">
>       <arg type="an" direction="out"/>
>       <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="Values"/>
>       <arg name="node" type="s" direction="in"/>
>       <arg name="variable" type="s" direction="in"/>
>     </method>
>     <method name="SendEvent">
>       <arg name="event" type="q" direction="in"/>
>       <arg name="data" type="an" direction="in"/>
>       <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="Values"/>
>       <annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/>
>     </method>
>     <method name="SendEventName">
>       <arg name="name" type="s" direction="in"/>
>       <arg name="data" type="an" direction="in"/>
>       <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="Values"/>
>       <annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/>
>     </method>
>     <method name="CreateEventFilter">
>       <arg type="o" direction="out"/>
>     </method>
>   </interface>
>   <interface name="org.freedesktop.DBus.Properties">
>     <method name="Get">
>       <arg name="interface_name" type="s" direction="in"/>
>       <arg name="property_name" type="s" direction="in"/>
>       <arg name="value" type="v" direction="out"/>
>     </method>
>     <method name="Set">
>       <arg name="interface_name" type="s" direction="in"/>
>       <arg name="property_name" type="s" direction="in"/>
>       <arg name="value" type="v" direction="in"/>
>     </method>
>     <method name="GetAll">
>       <arg name="interface_name" type="s" direction="in"/>
>       <arg name="values" type="a{sv}" direction="out"/>
>       <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" 
> value="QVariantMap"/>
>     </method>
>   </interface>
>   <interface name="org.freedesktop.DBus.Introspectable">
>     <method name="Introspect">
>       <arg name="xml_data" type="s" direction="out"/>
>     </method>
>   </interface>
>   <interface name="org.freedesktop.DBus.Peer">
>     <method name="Ping"/>
>     <method name="GetMachineId">
>       <arg name="machine_uuid" type="s" direction="out"/>
>     </method>
>   </interface>
> </node>
> "
> method call sender=:1.3 -> dest=:1.2 serial=4 path=/; 
> interface=ch.epfl.mobots.AsebaNetwork; member=GetNodesList
> method return sender=:1.2 -> dest=:1.3 reply_serial=4
>    array [
>    ]
> dbus.Array([], signature=dbus.Signature('s'))
> signal sender=org.freedesktop.DBus -> dest=(null destination) serial=7 
> path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; 
> member=NameOwnerChanged
>    string ":1.3"
>    string ":1.3"
>    string ""


I’m not so sure what this output means but it seems like the Thymio is not 
responding?

Thanks again,

Cyril Diagne
Professeur,
Responsable Bachelor Media & Interaction Design 
ECAL Ecole cantonale d’art de Lausanne
5, avenue du Temple, CH-1020 Renens 
<maps:q=Avenue%20du%20Temple%205%2C%201020%20Renens%20VD%2C%20Suisse>
t       +41 (0)21 316 92 37 <tel:+41213169237>
m       +41 (0)78 746 14 24 <tel:+41787461424>[email protected] 
<mailto:[email protected]>
www.ecal.ch <http://www.ecal.ch/> 




 

> On 24 Nov 2016, at 16:56, Stéphane Magnenat <[email protected]> wrote:
> 
> Hello,
> 
>> For an interactive installation we’re building at ECAL with Thymio we
>> need to be able to wirelessly remote control a Thymio with a Raspberry Pi.
>> We’re following this pi example
>> <https://www.thymio.org/en:thymioraspyexample> but are facing an issue,
>> that the Thymio doesn’t appear as an AsebaNode.
>> *
>> *
>> *1- launching D-Bus service:*
>>> dbus-run-session -- bash
>>> asebamedulla "ser:device=/dev/ttyACM0" &
>> 
>> *2- Python Script to retrieve AsebaNodes:*
>>> import dbus
>>> import dbus.mainloop.glib
>>> import gobject
>>> dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
>>> bus = dbus.SessionBus()
>>> network = dbus.Interface(bus.get_object('ch.epfl.mobots.Aseba', '/'),
>>> dbus_interface='ch.epfl.mobots.AsebaNetwork')
>>> network.GetNodesList()
>> 
>> *We get an empty array:*
>>> dbus.Array([], signature=dbus.Signature('s’))
>> 
>> We’re not seeing the “thymio-II” as AsebaNode in that array.
>> Do we need to do anything specific with the Thymio? Upload a custom
>> program or enter a special mode?
> 
> Try launching asebamedulla with the -v switch to know if the connection
> to the robot was successful.
> 
> If so, try using a DBus viewer program such as "qdbusviewer" to see if
> 1. you see the interface, 2. you see the robot.
> 
> Which operating system/version are you using?
> 
> No custom program is necessary.
> 
> best regards,
> 
> Stéphane
> 
> -- 
> http://stephane.magnenat.net
> 
> _______________________________________________
> Aseba-thymio mailing list
> [email protected]
> https://mail.gna.org/listinfo/aseba-thymio

_______________________________________________
Aseba-thymio mailing list
[email protected]
https://mail.gna.org/listinfo/aseba-thymio

Reply via email to