Marcin Krzewski

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Monobrick on Android #3865
    Author Image
    Marcin Krzewski
    Participant

    Hi Anders

    I still can’t connect.
    "youDeviceName"
    Should it be my phone name or my ev3 brick name? And does it matter if I turn on bluetooth and pair devices before I run the app on my phone? Or should I do it in the app using the code you provided? Btw. I dont exactly know what you mean by "This can be done by using the static property on the Bluetooth class"

    Sorry if my questions are dumb, I’m still learning.

    Marcin

    in reply to: Mailbox Send and Receive on Android #3853
    Author Image
    Marcin Krzewski
    Participant

    Hi Greg

    in your first post you said you can connect to EV3 using MonoBrickAndroid so I assume you created an app for that. I’m trying to do that to, my app is supposed to control a car via bluetooth, but I’m having truble establishing connection. Could you share your code? If not whole maybe just the connection part?

    Marcin

    in reply to: Monobrick on Android #3852
    Author Image
    Marcin Krzewski
    Participant

    Hi Anders

    I did as you said and I’m getting an error in the line var device = MonoBrick.Bluetooth<MonoBrick.EV3.Command, MonoBrick.EV3.Reply>.GetBondDevice("youDeviceName");
    saying 'MonoBrick.Bluetooth<MonoBrick.EV3.Command,MonoBrick.EV3.Reply>' does not contain a definition for 'GetBondDevice' D:\Projekty\EV3\Kama2\Kama2\Activity1.cs
    I copied the bluetooth class from the test project. Do you know the solution to that? How should the definition of the GetBondDevice method look like?

    Marcin

    in reply to: Fail to connect Ev3 via USB #3823
    Author Image
    Marcin Krzewski
    Participant

    Thanks for the reply Anders. I was using the test project and I was able to solve the problem on my own. The error was
    (System.BadImageFormatException)A System.BadImageFormatException was thrown. An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
    and I fixed it by changing in the Visual Studio project properities\build target platform option to 32 bit. Hope this can help if someone has the same problem.

    in reply to: Fail to connect Ev3 via USB #3820
    Author Image
    Marcin Krzewski
    Participant

    Hi,
    my EV3 is connected via usb, when I run TestApplication I just get “Failed to open connection” error. I’m using Visual Studio 2012 and Windows 8.1. I know it’s probably the hidapi related error, I already tried copying hidapi.dll and hidapi.dylib files from my \LEGO MINDSTORMS EV3 Home Edition\HidApi folder to \TestApplication folder but it doesn’t fix the problem. I also tried compiling my own hidapi library according to instruction on http://www.signal11.us/oss/hidapi/ but it doesn’t give the .dylib file and compiled hidapi.dll alone also doesn’t fix the problem. What am I doing wrong? Could you give me step-by-step instruction how to do it? Or should I switch to different software (Win7/VS2008)?

Viewing 5 posts - 1 through 5 (of 5 total)
Posted in

Make a donation