Forum Replies Created
-
AuthorPosts
-
Anders SøborgKeymasterHi Max
Hope that you are doing well. Anyway nothing has changed so both examples should be working. Is it the browser that is showing the connection refused error?
/Anders
Anders SøborgKeymasterHi Damir
Great that you where able to solve the problem. I hope you enjoy MonoBrick…
/Anders
Anders SøborgKeymasterHi there
This would be an excellent opportunity… if you know C++ then it is easy to move to C#.
/Anders
Anders SøborgKeymasterHi
You can see the byte array that is send using the Data property of the Brick Command class. If you use the test project you should be able to see the content before it is send. Alternatively add a print function to the class that prints the content.
/Anders
Anders SøborgKeymasterHi
Is it not possible to have respond to an event from e.g. the touch sensor?
No that is not part of the implementation.
Alternatively, should an endless loop be used which constantly reads from the various, attached sensors and responds accordingly?
Yes that would be one way. Be sure to add a sleep so you don’t do busy waiting. You might find the implementation for the button events usefull.
/Anders
Anders SøborgKeymasterHi
That is great news. Would you mind creating the missing section for the USB tutorial? I will of course give you credit for it.
/Anders
Anders SøborgKeymasterHi there
Sorry I did the C++ library a long time ago – and you are correct the C++ library does not support USB. But are you able to control the brick over USB using MonoBrick communication library?
/Anders
Anders SøborgKeymasterHi there
I tried this on my work computer running Windows 7 and the same Xamarin Version as you and I was able to get it working. From you last screenshot it seems that you did not install the Mono Runtime. What happens when you type mono in a terminal?
/Anders
Anders SøborgKeymasterHi Kristian
Seems that I posted the wrong link in my first post. The one that I wanted to post was this one. Please let me know how it goes.
/Anders
Anders SøborgKeymasterHi there Max
Let us just and keep things separated. This guy is trying to get the USB connection working on Ubuntu so he can manually to transfer files to his brick. He is not using the plugin. In order to achieve this he must get the RNDIS driver working on his installation. I posted a link that should help him get started.
My closing comment about using WiFi has nothing to do with Ubuntu. If the brick is connected to a WiFi network you can communicate with it from either Windows (using Putty), Mac or Linux/Unix over SSH and easily transfer files. So your comment about WiFi not working makes no sense… I guess that you where talking about the Xamarin plugin?
Your claim about the plugin not work on Linux/Ubuntu is simply not true. As you correctly says Xamarin Studio does not exists for Linux/Unix. On these systems you use MonoDevelop. Since Xamarin Studio is a rebranded version of MonoDevelop that uses platform-specific code to enhance the look and feel on Windows and Mac OS the plugin for MonoBrick works without problem with MonoDevelop. Just to show what it looks like on Linux I have provided a few screenshots.
/Anders
Attachments:
You must be logged in to view attached files.
Anders SøborgKeymasterHi there
are you able to connect to the brick using USB without the tunnel?
/Anders
Anders SøborgKeymasterHi there
I am Sorry to let you know that I have not use a lot of time on this so I haven’t actually done it. But I did some google searching and came by the following link that might help you connect to the brick over USB. Please let us all know when you figure out a way to get this working :-). I will then add a new Linux section to the guide.
Please be aware that you can always use WiFi to ssh to the brick….
/Anders
Anders SøborgKeymasterHi there
So if I understand correctly – it works over BT but not over a network connection using the tunnel?
/Anders
Anders SøborgKeymasterHi there
Nice job. Thanks a lot for sharing. I guess that a lot of other people will benefit from this.
/Anders
Anders SøborgKeymasterHi there
I think I solve that problem with the waiting time inside the while loop?
That code is never executed since the motor has not yet started moving 🙂
/Anders
-
AuthorPosts
Follow