Forum Replies Created
-
AuthorPosts
-
December 28, 2014 at 20:53 in reply to: The translation of ReadSensorColorEx(IN_1,colorval,raw,norm,scaled) from NXC #5146
Anders SøborgKeymasterHi Again
Is this a question regarding the Mono Brick Communication library or the MonoBrick firmware?
I think that you (again) asked the question in the wrong forum 🙂
/Anders
Anders SøborgKeymasterHi Again
Your video was shared on MindCubers Facebook page, MonoBrick’s twitter and Facebook page as well as the EV3 Fan Group Facebook page. Let’s see how it goes…
/Anders
Anders SøborgKeymasterHi Jacek
Merry christmas. This is awesome. I will post it right away. Could I maybe steel the code and place in our Git repository – just as an example?
/Anders
Anders SøborgKeymaster
Anders SøborgKeymaster
Anders SøborgKeymasterHi there
Nice work. I would like to include this is the upcoming release. In our firwmare we use the following function to generate the wpa_supplicant_wep.conf file.
static void WriteWpaSupplicantConfiguration (string ssid, string password, bool useEncryption) { MonoBrickFirmware.Native.ProcessHelper.RunAndWaitForProcess("rm",WpaSupplicantFileName); string encryption; if(useEncryption) encryption = "WPA-PSK"; else encryption = "NONE"; string[] lines = { "#This file is auto generated by MonoBrick - will be overwritten at startup", "#ap_scan=1", "#fast_reauth=1", "# Pers", "ctrl_interface=/var/run/wpa_supplicant", "network={", " ssid=\"" + ssid + "\"", " key_mgmt="+encryption, " psk=\"" + password + "\"", " pairwise=CCMP TKIP", " group=CCMP TKIP", "}", }; System.IO.File.WriteAllLines(@WpaSupplicantFileName, lines); }
You can find function in the firmware startup app found here. Would it be possible for you to extend/rewrite this function to support WEP and then test if it actually works?
Thanks
Anders
Anders SøborgKeymasterHi there.
The webserver example found in the master branch is working. Simply compile the project and upload the program to your EV3. When the webserver has started (which takes a while) simply type in http://yourIp:yourPort/documentation to see a list of what is currently supported. Please note that using port 80 is not working so use something like 8080. As you will see from the URL list the webserver is written as a REST service so data is retrieved via JSON – so writing a client that that can interact/control the EV3 is fairly simple.
/Anders
Attachments:
You must be logged in to view attached files.
Anders SøborgKeymasterHi Max
This is an absolutely amazing piece of work that you have done (I havn’t read all of it and my german is not that great – but 55 page guide is great)… once that you fell that it is done I will place on the front page on the firmware page so it can be downloaded… what about the Visual Studio template that you did is that still working?
/Anders
Anders SøborgKeymaster
Anders SøborgKeymasterHi there
I will have this issue solved in the next release – which will be soon…
/Anders
Anders SøborgKeymasterHi there
sorry for the late reply – it seems that we don’t support old routers with only WEP or WPA encryption. It could be added but to be completly honest this is not our highest priority at the momment. You Will have to connect without encryption.
/Anders
Anders SøborgKeymasterGreat
Please let me know how it goes…
/Anders
Anders SøborgKeymasterHi Jacek
Very nice work… maybe you would be interested in sharing the code as part of our Git repository. Also is there a youtube video that I can embed on the firmware page?
/Anders
Anders SøborgKeymasterHi again
Ok great – make a pull request on Git – so you can get credit for the improvements… thanks
/Anders
Anders SøborgKeymasterHi there
I also noticed that LcdConsole.WriteLine method is not thread safe. There should be lock block:
I don’t think this is an issue since the kernel module is thread safe. Have you seen this fail?
And start pooling call in the speedprofile method:
Great I will have a look at it. I actually think by looking at it that your suggestion is better than mine… I will have a look at it tonight.
/Anders
-
AuthorPosts
Follow