Forum Replies Created
-
AuthorPosts
-
Anders SøborgKeymasterHi
I am a little confused…
Copy the example code above
What sample code – there are a lot of examples in the programming guide
Also it seems from the following quote
but how can i start that on the Brick, nothing happend after pressing “play”….
That you think that the communication library can run code on the brick. This is not the case. For this you need the MonoBrick firmware. MonoBrick communication library is used for USB, WiFi and Bluetooth communication with the EV3 running the standard firmware.
Anders
Anders SøborgKeymasterOk use the test project. It includes the source – then you should be able to build the way you want it. Why is it important that it is x64?
Also, is there a way to get sensor “change events” instead of polling the sensor data?
No the EV3 can not “send” an event when a sensor value changes – so polling is the only way.
Anders
Anders SøborgKeymasterHi Jacek
Yes but it is not possible to use the latest from the Git repository as LCD won’t work since it is for a new image that we are testing… you will have to wait a week or two
Anders
Anders SøborgKeymasterHi
Just download the test project and build your own version – source code will be available from GIT at some point. But are you getting any error using the dll?
Anders
Anders SøborgKeymasterDownload it from the test project…
Anders
Anders SøborgKeymasterNo not at all – but you need to create your own “Connection” class with support for Bluetooth on IOS. Use the bluetooth class as a starting point. Also you might to look at the Android implementation…
Anders
Anders SøborgKeymasterHi Chris
Using two different com ports it should in theory work?
That should work – but why not communicate directly instead of using a PC as a bridge?
Anders
- This reply was modified 10 years, 8 months ago by Anders Søborg.
Anders SøborgKeymasterHi Chris
Why do you want to use a PC as a “bridge” whenyou can make the NXT send a message to another NXT using Bluetooth?
Anders
Anders SøborgKeymasterHi Antonio
Great video and a nice idea to use Skype to stream video to the PC…shared it on twitter…
Let me suggest that you delete that part of the guide, or make it clear that it is not necessary.
As far as I can tell it says on the top of the page: “This guide descries how to establish a WiFi connection with the EV3 LEGO Mindstorms brick using the standard firmware”. It does not mention anything about the MonoBrick Communication library. To determine how the to establish a connection with the EV3 using the standard firmware I created a Wireshark dump that shows how this is done by the software that comes with the EV3. This is what is show and described in details in the guide…
If I work in a Mac with xamarin / Mono, I can compile the code, BUT, the console program is generated as an .exe for windows. I haven’t found any way to compile it for mac os, even though the compiler is in a mac.
A exe file compiled for the .NET framework can run on many different operating systems using Mono. Mono is a open source implementation of the .NET framework. It runs on Windows, Mac OS, Linux and even the EV3 (using the MonoBrick firmware). On Mac OS Simply open a terminal and type “mono someFile.exe” then the program will execute. From Xamarin studio it is also possible to run the program. You might need to make Xamarin open a terminal otherwise it the output will be show in the output window of the IDE.
I would suggest that the guides explain this issue very clear, again for us, amateur programmers 🙂
I have to draw the line at some point – and I don’t feel that my site should be a guide on how to use Xamarin studio/Mono there are plenty of other sites that already does that…
I have executed this .exe console program in a virtual machine in mac os (with windows 7 installed with Parallels 9). However, I received this failure to connnect message mentioned before. The firewall is deactivated, by the way.
Like I said something must be wrong with your network settings…
I don’t klnow what do you mean with “the library works in MAC”. It compiles, but does not generate a mac console.
Look at my answer above
Anders
Anders SøborgKeymasterHi
Your example looks ok. But why are you running the program inside a VM when the MonoBrick communication library works on Windows, Linux and Mac? When you run inside a VM a lot of things can happen with Network traffic – your host machine has different network settings that the OS running in the VM – this might give your problems like UDP traffic being blocked… Furthermore I need to understand the following:
The ev3 brick is connected to wifi
That is good and you are all set to go..
…and I have established a tcp/ip connection with the brick.
What do you mean by this? How did you do that? The reason I am asking is that you don’t need to do anything other that connecting the brick to your WiFi network and then use MonoBrick communication library to connect to the brick…. but again try not to run the example inside a VM.
Hope to hear from you soon…
Anders
Anders SøborgKeymasterHi
Great…
Anders
Anders SøborgKeymasterHi again
A fix has been committed to GIT. There was no error on port 1 but errors on port 2,3 and four. Sorry for that…
Anders
Anders SøborgKeymasterHmm I will have a look at strait away…
Anders
Anders SøborgKeymasterHi
Have a look at the programming guide for the MonoBrick communication library… that will show you how to establish a WiFi connection using the MonoBrick communication library…. no need to look at the WiFi guide.
Anders
Anders SøborgKeymasterHi
But I did not update the download link yet… you need to get the update from GIT. I don’t know what it is that you are seeing…
Anders
-
AuthorPosts
Follow