New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help building brickman #232

Closed
sharived opened this Issue Dec 21, 2014 · 65 comments

Comments

Projects
None yet
4 participants
@sharived
Copy link

sharived commented Dec 21, 2014

I'm trying to follow the directions on https://github.com/ev3dev/brickman but I think I'm missing something. I've successfully built brickstrap, but when I try doing apt-get build-dep brickman I get the error "You must put some 'source' URIs in your sources.list."

I wasn't sure what was needed for the step - "Install the build-deps in debian/control" so perhaps this is my problem. Would appreciate some help.

BTW, the reason I want to build brickman is because I'd like to add my menus to the GUI for my application. Let me know if I'm not heading in the right direction.

@dlech

This comment has been minimized.

Copy link
Member

dlech commented Dec 21, 2014

What kind of application are you developing?

We haven't really figured out what is the best way to handle this sort of thing yet. There has been some discussion in #129.

I am guessing that unless your entire application is actually going to be part of brickman, you don't want to actually add your menus to brickman itself. However, building brickman and playing around with it would still be a good learning experience.

The error you are seeing means just what it says. Edit /etc/apt/sources.list and duplicate each line. In the duplicates, change deb to deb-src. More info.

The alternative would be to manually install all of the build dependencies...

apt-get install debhelper dh-systemd cmake valac libgee-0.8-dev libgirepository1.0-dev libgudev-1.0-dev libncurses5-dev libjpeg62-turbo-dev libpng12-dev libgrx-dev
@sharived

This comment has been minimized.

Copy link
Author

sharived commented Dec 21, 2014

Thanks, editing the sources.list didn't help (only had 2 lines in there), but installed the packages directly.

I am developing a USB camera that is targeted for kids (aged 8 or 9) using lego robotics systems. I would like to make a very simple UI to bring up ev3dev that would be as easy to use as the standard lego interface. Do you think that would be possible? The idea would be to limit the functionality to simplify the interface.

@dlech

This comment has been minimized.

Copy link
Member

dlech commented Dec 21, 2014

editing the sources.list didn't help

I forgot to mention that you have to run apt-get update after this. But, you got what you needed anyway.

Do you think that would be possible?

I like to thing that anything is possible. 😉

To make sure I am understanding you correctly, you are want to basically replace brickman with something simpler but that can essentially do the same sorts of thing, like pairing Bluetooth. Yes?

@sharived

This comment has been minimized.

Copy link
Author

sharived commented Dec 21, 2014

Yes, I'd like to have a subset of brickman.

@dlech

This comment has been minimized.

Copy link
Member

dlech commented Dec 21, 2014

Do you think we could make brickman user-friendly enough to suit your needs without loosing functionality? I think it would be better if we could work on one implementation together rather that each doing our own thing. For example, we could add a command line switch to start brickman in a "lite" mode that hides the more advanced options.

One thing I would like to do but have never got around to is something like this. If you (or anyone else) wants to design something like this for brickman, I would be willing to help implement it. There is obviously much room for improvement over the current state.


I'm getting a little off topic here, so to get back to the original subject: have you got brickman to build? I'm also in IRC most of the time (#ev3dev on freenode.net) if you need more guidance.

@rhempel

This comment has been minimized.

Copy link
Member

rhempel commented Dec 21, 2014

I'm with @dlech on this one - let's see if we can get a general consensus (well 80 - 90%) on what we'd like brickman to do, then work out a rough transition diagram to see what it might look like. The starting goal should be along the lines of what is the minimum functionality we want to have, ie:

  • set up bluetooth
  • set up wifi
  • set up usb network
  • navigate script directories
  • set up "environment vars" for scripts
  • test mode for sensors/motors

@dlech, maybe brickman can always start in lite mode, unless an env var is set to advanced mode? Is it worth thinking about being able to "plug in" menus to brickman?

I use a tool called PencilProject for rough ui prototypes, any other tools that might fit the bill?

@dlech

This comment has been minimized.

Copy link
Member

dlech commented Dec 21, 2014

maybe brickman can always start in lite mode, unless an env var is set to advanced mode?

It would have to be a configuration file rather than environment variable, but yes this is a possibility.

Is it worth thinking about being able to "plug in" menus to brickman?

I actually have had this in mind from the start. The only problem is that you need a stable brickman API for the plugins to use which is a ways off.

any other tools that might fit the bill?

Pencil and paper (and scanner)?

@rhempel

This comment has been minimized.

Copy link
Member

rhempel commented Dec 21, 2014

What is this "pencil and paper" and "scanner" that you speak of? Of course, first drafts are best done with pencil and paper. When you get tired of drawing the same diagram over and over, then it's time to switch to the computer.

@rhempel

This comment has been minimized.

Copy link
Member

rhempel commented Dec 21, 2014

And yes, config file is more like what I was thinking when I put "env vars" in quotes...

@sharived

This comment has been minimized.

Copy link
Author

sharived commented Dec 21, 2014

Yes, I did get brickman to build. Thanks again!

I think it is possible that a lite version of brickman would be sufficient for my needs. Although if I was to do my own thing I would drop some of the options that would be useful for the general population - for example I don't need wifi because I'm using the USB port for my camera. However if the UI is simple enough then a few extra options are fine.

I think @rhempel's list looks like a good start. My top priority is simplifying bluetooth. I will work out a suggested flow for that in the next couple of days.

It would be nice if we could get the wired USB connection set up more automatically like it works on the standard Ev3. It seems like they have something running in the background that checks whether the USB cable is connected. Is there anyway to do something similar or is it more complicated because we need to set up the gadget device?

@dlech

This comment has been minimized.

Copy link
Member

dlech commented Dec 21, 2014

Is there anyway to do something similar or is it more complicated because we need to set up the gadget device?

We can add a configuration file for connman to automate some of this. By default, the gadget connection is not enabled and does not connect automatically. We should be able to change that. man page

We still have the issue of needing a different driver (RNDIS or CDC) depending on if you are connection to Windows or Mac/Linux. There is not a way to automatically detect this, so it will have to be a manual selection.

One the correct driver is selected and automatic connection is enabled, the it will automatically connect when you plug in the USB cable. But again, it is not so simple because we are setting up a network connection (the standard LEGO firmware uses HID instead of RNDIS/CDC). Again, the setting here depends on what you are connecting to.

In the latest kernel, I enabled some options that allow tethering networking connections. This may be a simpler option if you don't need Internet access on the EV3 itself. There is no UI for it yet in brickman, but you can enable it via connmanctl in a terminal. Basically, you enable tethering on USB or Bluetooth, then when you connect the host computer, the host computer should automatically configure itself.

@sharived

This comment has been minimized.

Copy link
Author

sharived commented Dec 23, 2014

as mentioned I was able to build and run brickman fine, but when I tried building and running the brickman test, I am getting an error.
I'm assuming I build it from brickstrap. "make" works fine and I get a brickman executable, but when I run "make run" I get an error
"Unable to init server: Could not connect : Connection refused"
and then "Gtk-WARNING **: cannot open display"
any idea what I'm doing wrong?

Also I assume that path-to-brickdm-source should really be path-to-brickman-source
cmake -DCMAKE_BUILD_TYPE=Debug -DBRICKMAN_TEST=1

@dlech

This comment has been minimized.

Copy link
Member

dlech commented Dec 23, 2014

any idea what I'm doing wrong?

brickman test is meant to be build and run on your desktop. It is used to speed up development of the UI. Basically, it provides a fake screen and a dummy implementation of all of the controller stuff (as in model-view-controller). This way, you can work on the view much more efficiently.

Also I assume that path-to-brickdm-source should really be path-to-brickman-source

Yes.

@dlech dlech added the brickman label Dec 30, 2014

@sharived

This comment has been minimized.

Copy link
Author

sharived commented Jan 10, 2015

Finally getting back to this. So here's my idea for the lite version of bluetooth setup.

I'd like a top level option called "Bluetooth network"
Once selected it would automatically scan for available devices. Listing most recently used devices first.
When select a device, if it has already been paired just use it. If it hasn't been paired then initiate pairing automatically and start using it.

What do you think? Let me know if you need a better explanation or something more graphical. I'm not sure how this fits in with the rest of the lite version or if this could just be used with the current version.

@dlech

This comment has been minimized.

Copy link
Member

dlech commented Jan 10, 2015

For your use case, assuming that networking is the only thing you ever use Bluetooth for, then I guess this would be OK. For the general user though, it is too specialized.

Have you tried connecting by enabling tethering on bluetooth on the EV3? this is by far the easiest way (except for the fact that there is no UI for enabling tethering on the EV3 yet). The only downside is that the EV3 cannot connect to the Internet using tethering. Another plus to this method is that you will be able to connect to more host devices (basically anything that can use a smartphone bluetooth tether)

The flow would go something like this:

  1. Make sure bluetooth is power on on the EV3.
  2. Enable tethering via bluetooth on the EV3. (For now, run connmanctl then tether bluetooth on. It will give an error message that it is in progress. This seems to be a bug, so just ignore it.)
  3. Pair the EV3 to the host computer. This can be initiated either from the EV3 or the host computer.
  4. On the host computer
    • Windows 7: Open Bluetooth devices, select the EV3 and click "Connect using Access Point".
    • Linux: Open bluetooth settings and check the box that says "Use your mobile phone as a network device".

That's it. The EV3 is always at 192.168.1.1.

@dlech dlech referenced this issue Jan 12, 2015

Closed

Launch programs from brickman #129

1 of 2 tasks complete
@sharived

This comment has been minimized.

Copy link
Author

sharived commented Jan 12, 2015

I am communicating to the Ev3 via snap! so I probably need internet, but I thought I'd try it and see. I tried following the directions above, but I must be misunderstanding something.
Here's what I did.
My bluetooth is "on" on the Ev3. I used my "wired" connection to ssh into Ev3 to run conmanctrl - not sure if there is another way.
I deleted the old pairing I had with my Mac and then paired it again to the Ev3.
I tried ssh'ing with 192.168.1.1, but nothing there. I then went back and connected via bluetooth the "old" way and I could ssh into my 192.168.2.3 address.

When you say - EV3 is always at 192.168.1.1 - is this on power up of the Ev3?

@dlech

This comment has been minimized.

Copy link
Member

dlech commented Jan 12, 2015

I forgot you were on Mac, so I didn't try that before. Unfortunately, there seems to be problems with Mac - at least on 10.10. (I've tested and it works fine with Windows, Linux and Android).

So, to recap:

  • Enable tethering on the EV3. I found you can to this in a single command. connmanctl tether bluetooth on.
  • Repair the EV3 with the Mac.
  • Now, in the Mac Bluetooth tray icon, there is a "Connect to Network" option for the EV3.
    screenshot_1_12_15__12_20_pm

Alternately, you can connect via network preferences.
network_and_mac_bluetooth_pan_won_t_stay_connected_-_google_search

Now, here is where the problems start. For some reason my EV3 was not automatically setting the new connection as trusted, so there is a possible bug in brickman. When I tried to connect, a dialog popped up on the EV3 asking me if I wanted to allow the connection. You can select "Accept" and it will proceed, but this will continue to pop up every time you connect. To fix this, I had to use bluetoothctl on the EV3 to set the connection as trusted.

That wasn't so bad, but after connecting everything looks good, then a few seconds later, it just disconnects itself. I'm not seeing anything obvious in the error logs, so I have not got to the bottom of it yet.

If you haven't upgraded to OS X 10.10 yet, it would be worth trying with an older OS version to see if the behavior is different.

@sharived

This comment has been minimized.

Copy link
Author

sharived commented Jan 12, 2015

I'm using 10.9.5 - I'm still having issues though.

I enabled tethering using my "wired" connection.
Re-paired my ev3dev from my host.
But I don't see the ev3dev on the bluetooth option (from the tray)
screen shot 2015-01-12 at 1 14 41 pm

If I connect via bluetooth the "old" way I can only disconnect
screen shot 2015-01-12 at 1 18 11 pm

Here's my network screen if I don't connect via bluetooth and I unplug my wire
screen shot 2015-01-12 at 1 23 47 pm

Here's what my network screen says when I'm connected the "old way"
screen shot 2015-01-12 at 1 19 36 pm

Do I not have PAN set up correctly?

@dlech

This comment has been minimized.

Copy link
Member

dlech commented Jan 12, 2015

I enabled tethering using my "wired" connection.

No. You need to enable tethering on the Bluetooth connection. connmanctl tether bluetooth on.

@sharived

This comment has been minimized.

Copy link
Author

sharived commented Jan 12, 2015

How do I enter the "connmanctl" command? I am ssh'ing via my wired connection to enter the command. Or are you saying I use the "old" bluetooth connection to run the command?

@dlech

This comment has been minimized.

Copy link
Member

dlech commented Jan 12, 2015

Use your wired connection for ssh like you said.

@sharived

This comment has been minimized.

Copy link
Author

sharived commented Jan 12, 2015

So does it seem like I'm missing something with my PAN setup then?

@dlech

This comment has been minimized.

Copy link
Member

dlech commented Jan 12, 2015

If bluetooth tethering was not turned on when you paired, then you need to repair for the Mac to see the new service. I haven't figured out a way for the Mac to re-enumerate bluetooth services otherwise.

@sharived

This comment has been minimized.

Copy link
Author

sharived commented Jan 12, 2015

I had turned on bluetooth tethering before I paired... I have a window's machine I can try it on. I'll do that next.

@dlech

This comment has been minimized.

Copy link
Member

dlech commented Jan 12, 2015

One thing I forgot to mention is that Mac also seems to be picky about the Bluetooth device class. You can change the device class by editing /etc/bluetooth/main.conf. Find the line

#Class = 0x000100

And delete the '#' to uncomment the line. Then restart bluetooth.

systemctl restart bluetooth

And repair again. The EV3 will now tell what it is connecting to that it is a "Computer".

@sharived

This comment has been minimized.

Copy link
Author

sharived commented Jan 13, 2015

Didn't seem to help, other than now I lost the options in the Ev3 bluetooth menu to make it visible (I had to do it with bluetoothctl) and scan for devices. I'll try windows.

@dlech

This comment has been minimized.

Copy link
Member

dlech commented Jan 13, 2015

You must be using an older version of brickman. If fixed that bug. Restarting brickman should bring them back. systemctl restart brickman.

@sharived

This comment has been minimized.

Copy link
Author

sharived commented Jan 13, 2015

I had been using brickman v0.2.0 - I just upgraded to v0.3.0 - now my "visible" option is visible again on the bluetooth menu, but everything else is happening the same.

Another thing to note is that after I pair the ev3 is not connected via bluetooth - the only way for me to see if from the mac bluetooth screen is to manually connect again. Not sure if this is what I was supposed to be doing.

I'll try again on my windows 8 machine.

@sharived

This comment has been minimized.

Copy link
Author

sharived commented Jan 14, 2015

If I right-click on the Bluetooth network connection - I don't get an option to connect. It just has view, disable, rename, properties, etc.
I just tried again and am sure that I had tethering on (I turned it off and an again) before I paired.

It seems like it doesn't know that the Ev3 is a network device.
Are there any setting I should check on the EV3 itself? Anything PAN related?

@dlech

This comment has been minimized.

Copy link
Member

dlech commented Jan 14, 2015

On the EV3, you can verify that tethering is working correctly by running bluetoothctl and looking at the output of show. You should see something like this:

[bluetooth]# show
Controller 00:17:E7:B4:71:28
    Name: ev3dev
    Alias: ev3dev
    Class: 0x020100
    Powered: yes
    Discoverable: yes
    Pairable: yes
    UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
    UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
    UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
    UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
    UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
    UUID: NAP                       (00001116-0000-1000-8000-00805f9b34fb)
    Modalias: usb:v1D6Bp0246d0517
    Discovering: no

If you see UUID: NAP, then it is working correctly.

@dlech

This comment has been minimized.

Copy link
Member

dlech commented Jan 14, 2015

Also check the Class: line.

@sharived

This comment has been minimized.

Copy link
Author

sharived commented Jan 14, 2015

I notice my class is different. No NAP

[bluetooth]# show
Controller 00:17:E7:AE:4E:D7
        Name: ev3dev
        Alias: ev3dev
        Class: 0x000100
        Powered: yes
        Discoverable: no
        Pairable: yes
        UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
        UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
        UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
        Modalias: usb:v1D6Bp0246d0517
        Discovering: no
@dlech

This comment has been minimized.

Copy link
Member

dlech commented Jan 14, 2015

The most important part of the class is the last 4 numbers, so it should be OK.

However, no NAP is a problem. It means that ConnMan did not register it correctly.

To be certain, the command you are using to enable tethering is connmanctl tether bluetooth on.

If you leave bluetoothctl running in one terminal and run connmanctl in a separate terminal, you should see something like this:

Terminal 1 (bluetootctl):

[CHG] Controller 00:17:E7:B4:71:28 Class: 0x000100
[CHG] Controller 00:17:E7:B4:71:28 UUIDs:
    00001200-0000-1000-8000-00805f9b34fb
    00001800-0000-1000-8000-00805f9b34fb
    00001801-0000-1000-8000-00805f9b34fb
    0000110e-0000-1000-8000-00805f9b34fb
    0000110c-0000-1000-8000-00805f9b34fb
[CHG] Controller 00:17:E7:B4:71:28 Class: 0x020100
[CHG] Controller 00:17:E7:B4:71:28 UUIDs:
    00001200-0000-1000-8000-00805f9b34fb
    00001800-0000-1000-8000-00805f9b34fb
    00001801-0000-1000-8000-00805f9b34fb
    0000110e-0000-1000-8000-00805f9b34fb
    0000110c-0000-1000-8000-00805f9b34fb
    00001116-0000-1000-8000-00805f9b34fb

Terminal 2:

root@ev3dev:~# connmanctl tether bluetooth off
Error disabling bluetooth tethering: In progress
root@ev3dev:~# connmanctl tether bluetooth on
Error enabling bluetooth tethering: In progress
root@ev3dev:~# 

00001116-0000-1000-8000-00805f9b34fb is the UUID corresponding to NAP. You can see that it was removed when I turned tethering off and added when I turned it back on.

If you still aren't getting anything, check the output of journalctl -r for errors related to connmand or bluetoothd. (And reboots always work wonders).

@dlech

This comment has been minimized.

Copy link
Member

dlech commented Jan 14, 2015

And I just realized that you never said what kernel version you are running. If you were running an old version of brickman, then you are probably running an old kernel. The modules required for tethering were added in 3.16.1-7-ev3dev. This is probably what the problem is.

And this is why everyone is supposed to follow these instructions every time you post an issue (it's the link in the big yellow box when you click "New Issue").

It would have saved both of us a lot of trouble if I would have thought to ask earlier (although I did mention about the modules in my first comment).

@sharived

This comment has been minimized.

Copy link
Author

sharived commented Jan 14, 2015

Thanks for pointing out the big yellow box - I hadn't noticed it. I definitely wasn't up to date when we started all this. However, I'm using 3.16.1-7-ckt3-ev3dev1 now. Does that work?

@dlech

This comment has been minimized.

Copy link
Member

dlech commented Jan 14, 2015

You probably mean 3.16.7-ckt3-ev3dev1, but yes that is > 3.16.1-7-ev3dev, so it has the required modules.

@sharived

This comment has been minimized.

Copy link
Author

sharived commented Jan 14, 2015

So I rebooted everything and ran in to windows. Here's my output for bluetoothctl. BTW, is it normal to lose my wired connection when I turn tether on?

[bluetooth]# show
Controller 00:17:E7:AE:4E:D7
        Name: ev3dev
        Alias: ev3dev
        Class: 0x000100
        Powered: yes
        Discoverable: yes
        Pairable: yes
        UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
        UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
        UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
        Modalias: usb:v1D6Bp0246d0517
        Discovering: no
[CHG] Controller 00:17:E7:AE:4E:D7 Discoverable: no
[CHG] Controller 00:17:E7:AE:4E:D7 Class: 0x020100
[CHG] Controller 00:17:E7:AE:4E:D7 UUIDs:
        00001200-0000-1000-8000-00805f9b34fb
        00001800-0000-1000-8000-00805f9b34fb
        00001801-0000-1000-8000-00805f9b34fb
        0000110e-0000-1000-8000-00805f9b34fb
        0000110c-0000-1000-8000-00805f9b34fb
        00001116-0000-1000-8000-00805f9b34fb
[CHG] Controller 00:17:E7:AE:4E:D7 Class: 0x000100
[CHG] Controller 00:17:E7:AE:4E:D7 UUIDs:
        00001200-0000-1000-8000-00805f9b34fb
        00001800-0000-1000-8000-00805f9b34fb
        00001801-0000-1000-8000-00805f9b34fb
        0000110e-0000-1000-8000-00805f9b34fb
        0000110c-0000-1000-8000-00805f9b34fb
@dlech

This comment has been minimized.

Copy link
Member

dlech commented Jan 14, 2015

It looks like it is getting turned on, but then turns back off. Perhaps this has to do with losing the Wired connection. I am using a wired USB Ethernet adapter instead of the USB Gadget connection. I will give it a try the other way and see if it makes a difference.

@dlech

This comment has been minimized.

Copy link
Member

dlech commented Jan 14, 2015

I don't lose the USB Gadget connection when I turn on bluetooth tethering.

Just want to make sure you do not run connmanctl tether gadget on. This will kill your wired connection.

@sharived

This comment has been minimized.

Copy link
Author

sharived commented Jan 14, 2015

No I have never run "connmanctl tether gadget on"

@dlech

This comment has been minimized.

Copy link
Member

dlech commented Jan 14, 2015

Well, something is telling bluetooth tethering to turn off after you turn it on. Or it crashes or something happens to make it unregister from bluetoothd. Did you ever check journalctl for error messages?

@dlech

This comment has been minimized.

Copy link
Member

dlech commented Jan 14, 2015

On the plus side, bluetooth tethering seems to be playing nice with my Mac now. I think it was just my Mac being weird and not any problem with anything on the EV3. If we could just get to the bottom of what the heck is different between our EV3's, I think you would be up and running on both Mac and Windows.

@sharived

This comment has been minimized.

Copy link
Author

sharived commented Jan 14, 2015

Just doing that now. here are all messages in red (I think)

Jan 14 00:48:12 ev3dev connmand[612]: Method "ListAdapters" with signature "" on interface "org.bluez.Manager" doesn't exist
Jan 14 00:48:11 ev3dev connmand[612]: The name net.connman.vpn was not provided by any .service files
Jan 14 00:48:10 ev3dev connmand[612]: iptables support missing error 2 (No such file or directory)
Jan 14 00:48:10 ev3dev connmand[612]: No IPv6 support
Jan 14 00:48:10 ev3dev connmand[612]: No IPv6 support
Jan 14 00:48:10 ev3dev connmand[612]: Failed to flush table 'mangle': Invalid argument
Jan 14 00:48:10 ev3dev connmand[612]: iptables support missing error 2 (No such file or directory)
Jan 14 00:48:10 ev3dev connmand[612]: Failed to flush table 'filter': Invalid argument
Jan 14 00:48:10 ev3dev connmand[612]: iptables support missing error 2 (No such file or directory)
Jan 14 00:38:44 ev3dev connmand[346]: Method "ListAdapters" with signature "" on interface "org.bluez.Manager" doesn't exist
Jan 14 00:38:43 ev3dev bluetoothd[442]: sap-server: Operation not permitted (1)
Jan 14 00:38:43 ev3dev bluetoothd[442]: Sap driver initialization failed.
Jan 14 00:38:38 ev3dev ntpd[406]: restrict: error in address '::1' on line 42. Ignoring...
Jan 14 00:38:38 ev3dev ntpd[406]: restrict: error in address '::' on line 38. Ignoring...
@dlech

This comment has been minimized.

Copy link
Member

dlech commented Jan 14, 2015

We don't have IPV6 on the EV3, so that is expected. However, I think you are missing a package (that we need to add to the image that we distribute). Try installing iptables (sudo apt-get install iptables).

@sharived

This comment has been minimized.

Copy link
Author

sharived commented Jan 14, 2015

Yay! That was it. Thanks for your dedication on this. I just got it working on my Mac, will verify windows next. The only deviation is that I didn't get address 192.168.1.1 - mine is at 192.168.0.2. I'll play around with it a bit and let you know if I see any other issues.

@dlech

This comment has been minimized.

Copy link
Member

dlech commented Jan 14, 2015

Here's to persistence! 😌

I found out that the IP address doesn't always use the same subnet. But you can use the network properties to figure it out easily. We should of course add it to brickman too.

@sharived

This comment has been minimized.

Copy link
Author

sharived commented Jan 14, 2015

Actually it was at 192.168.0.1. And I verified that my Snap! app works, so I can use the tethered mode. So right now I would need to use connmanctl each time, right? But once you add this to brickman it would be automatic?

@dlech

This comment has been minimized.

Copy link
Member

dlech commented Jan 14, 2015

Looks like we would need to add something to /etc/connman/main.conf for it to remember the tethering setting, but then it would be automatic.

@sharived

This comment has been minimized.

Copy link
Author

sharived commented Jan 14, 2015

Tried windows, but not completely working. I can not connect to the access point and I'm connected and can look at the status details. I'm not getting an IPv4 Default gateway though

image

@sharived

This comment has been minimized.

Copy link
Author

sharived commented Jan 14, 2015

false alarm. I didn't realize that my ev3 had hung during the process. Rebooted everything and it worked!

@dlech

This comment has been minimized.

Copy link
Member

dlech commented Apr 16, 2015

Should we close this issue?

@sharived

This comment has been minimized.

Copy link
Author

sharived commented Apr 16, 2015

Sure. Thanks!

@nesteruk

This comment has been minimized.

Copy link

nesteruk commented May 4, 2017

Having read the discussion above, I can note that sometimes the EV3 is not visible in the list of connectable devices. Also, plenty of random errors on the brick itself when attempting to initiate network connection. It's hit and miss, sometimes it works, sometimes it doesn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment