**** BEGIN LOGGING AT Mon Sep 16 03:00:52 2019 Sep 16 04:25:17 I had a problem with login to my BBB board. Sep 16 04:27:37 it will shows an error " No supported authentication methods available (server sent : public key) " Sep 16 06:40:34 I've just got a new BB-Green, plugged it in, and tryed to follow the instruction to install. ( connecting to win10 ). Im able to browse the Drive it presents.. but i cant install any drivers, and the network does not want to come up. The four blue indicator LEDS are blinking back and forward ( 2 at a time ) at about 1Hz.. ANy clues wht i need to do? Sep 16 06:45:33 i get a com port as well on the usb Sep 16 06:46:16 the com port works. Sep 16 06:46:19 the usb dont' Sep 16 06:46:21 mm Sep 16 06:50:06 the device should, provided a current image, present *two* network interfaces. Both will work the same. This is to cover compatibility with all operating systems. Sep 16 06:51:54 thats what i understood. Sep 16 06:52:03 my devmgr is complainging about the driver Sep 16 06:52:17 RNDIS has an error Sep 16 07:10:52 ok.. used the generic windows one and it worked. Sep 16 07:10:53 :-) Sep 16 07:10:58 good good. Sep 16 09:21:16 mrpackethead: no drivers need to installed for beaglebones, all platforms should have all drivers you need built-in Sep 16 09:22:16 tbr: well, it'll only present two network interfaces on linux, mac and windows will see only one of those each Sep 16 09:23:01 zmatt: yes, the "for one the driver will not work/be found" was implied :) Sep 16 09:27:33 yeah, but effectively that means it won't present two network interfaces as far as the host is concerned, but a network interface and an unknown serial device probably Sep 16 11:42:41 Hi , Sep 16 11:43:29 I am facing problem in installing driver on Beaglebone , Sep 16 11:43:37 how can it be solved Sep 16 11:43:38 you don't need to install any drivers Sep 16 11:44:06 * LetoThe2nd totally installs a bicycle driver on his BBB Sep 16 11:44:11 if you use a recent image, it should work plug-and-play with linux, mac, and windows 10 Sep 16 11:44:51 (of course if you connect via ethernet instead of usb-networking then a driver is never required) Sep 16 11:44:55 yes but there is no icon of BBB in networkcenter Sep 16 11:45:27 i have connected via usb to uart cable Sep 16 11:46:04 ehm, you mean an usb serial cable? then why would you expect it to show up in network center? Sep 16 11:46:43 a serial port is not a networking device Sep 16 11:47:13 the serial console is typically only used to debug boot issues (or networking issues) Sep 16 11:48:41 yes but by installing drivers , one can use BBB internet over usb Sep 16 11:49:31 again, you don't need to install any drivers for that, but for usb-networking you just use an usb cable (or more specifically a mini-usb cable), not "usb to uart cable" Sep 16 11:50:19 (the beaglebone black ships with a mini usb cable) Sep 16 11:51:30 yes you are right , i have connected via mini usb cable Sep 16 11:51:52 but on network it is not showing anything Sep 16 11:52:56 and for that there are some drivers like beaglebone CDM driver Sep 16 11:52:59 be sure to flash the latest image if you haven't already done so (use "Debian 9.5 2018-10-07 4GB eMMC IoT Flasher ") Sep 16 11:53:17 again, you don't need any driver, that's obsolete information Sep 16 11:53:23 ok Sep 16 11:53:38 see also https://beagleboard.org/getting-started Sep 16 11:53:58 then i try to do with latest image , can it be done on 2BG eMMC as i have BBB REV b Sep 16 11:53:58 sorry, use http:// so the autodetection in step 2 works Sep 16 11:54:02 oh Sep 16 11:54:07 that complicates things Sep 16 11:55:17 what do you suggest for my board as I have 2GB eMMC Sep 16 11:56:26 the iot image has too much crap preinstalled to fit 2GB of eMMC. you could use a recent console image and just manually install (using apt) any packages you want if you're comfortable with that Sep 16 11:57:07 rcn-ee[m]: uhhhhh why is there a recent stretch lxqt-2gb image, but no iot-2gb ? o.O Sep 16 11:57:56 ok thanks but not sure about it whether it will work or not Sep 16 11:58:34 Khan81: of course connecting via ethernet instead of usb is always available as option. I don't know the situation with usb networking on windows on older images, I just know it's always been a headache because usb on windows absolutely sucks Sep 16 11:58:50 mostly because microsoft doesn't give a shit about implementing standards Sep 16 11:59:19 it works fine on linux hosts obviously Sep 16 12:00:18 the console image will definitely fit and work, but it's a pretty minimalistic system hence you'd need to be prepared to have to install things yourself that would be preinstalled on the iot image Sep 16 12:00:48 you can find the console image here => https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Debian_Stretch_Console_Snapshot Sep 16 12:00:55 zmatt: thanks nice info Sep 16 12:01:54 there's also an lxqt-2gb image there, although I'd guess that it leaves very little free space on eMMC and you'd typically not want a graphical desktop environment installed on a beaglebone Sep 16 14:05:14 Is it just me or has most environments exploded in size that what seemed incredibly huge yesteryear is now "too small" "suddenly"? Sep 16 17:32:45 yup Sep 16 17:38:23 I can't really comment on "most environments". the eMMC space used by the system (i.e. excluding our application) is 362M nowadays (debian buster, kernel 4.14) versus 344.4M two years ago (debian stretch, kernel 4.9) Sep 16 17:38:36 on our production beaglebones Sep 16 17:39:37 I think shit mostly gets bloated when people keep shovling in more crap and never review whether all of it is still necessary/relevant Sep 16 18:13:51 ^ Sep 16 20:24:22 hello :) Sep 16 20:33:11 (tip: don't expect any response to "hello". if you have a question, just ask it, and be sure to have patience. plenty of knowledgeable people here, but most only glance at chat occasionally) Sep 16 20:33:59 ok, thanks :-). For now I just wanted to say hi :D Sep 16 20:34:05 that's fine :) Sep 16 20:34:13 Just for reference, that is not me. Sep 16 20:34:23 lol Sep 16 20:34:42 But...in customs. Hello! Sep 16 20:35:02 I am currently working w/ a MaxBotix range finder. Sep 16 20:35:09 W/ the BBBW. Sep 16 20:35:17 well, at least you have enthausiasm in abundance... which is not quite a substitute for knowledge, but hey it's something ;) Sep 16 20:35:26 This is going to be fun. Sep 16 20:35:29 Right-o! Sep 16 20:35:41 Enthusiasm is number one in my book! Sep 16 20:37:07 I did find some python scripts for the Range Finder. I am going to try the scripts and then change them. Sep 16 20:37:36 If hitting obstacle = back-up Sep 16 20:38:21 I am going to try to run some basic tests and then apply it to my bot. Sep 16 20:39:20 = = ==? Sep 16 20:39:23 Ha. Sep 16 21:14:19 zmatt I remember a linux distribution that allowed you to tailor itself to just what you needed instead of installing everything. It was used on the beagle board Angstrom linux I think it was called had a really nice automated build chain and everything Sep 16 21:15:11 GenTooMan: the distro isn't the problem as I just illustrated, the issue is how much stuff is preinstalled on the default image Sep 16 21:15:50 also, angstrom appears to be a completely dead project Sep 16 21:16:10 no news since 2015 and site is broken Sep 16 21:16:22 zmatt Well what I meant was that it had an automated system for determining that. Yocto killed angstrom they stopped doing anything around 2014/15. Sep 16 21:16:41 for determining what? Sep 16 21:16:56 and people are free to use yocto if they want to Sep 16 21:18:56 Yocto is far from automated however. Sep 16 21:21:07 Anyhow I suppose I ought to actually finish my BBB projects for a change. Sep 16 21:28:58 hmm, I'm trying to see what exactly is making the iot image so big, but it seems it's more just many small things rather than any specific single thing Sep 16 21:30:01 although the c6x and opencl stuff is definitely dead weight since none of that is relevant on the am335x Sep 16 21:59:07 https://pastebin.com/L5ayqJDM means what? I have been searching online for the description of my error. I have come up w/ many ideas but nothing that helps. Sep 16 23:29:51 set_: often when calling a function you simply supply one or more arguments, like foo(1, 2, 3) ... the meaning of its argument is determined simply by its position (first argument, second argument, etc), hence those are called "positional arguments" Sep 16 23:30:38 alternatively you can explicitly identify the arguments by name, as in serial.Serial(portName="/dev/ttyO2", baudrate=9600) where the portName= and baudrate= identify the names of the parameters to which you're supplying arguments Sep 16 23:31:09 this may increase readability, and it means the order doesn't matter foo(x=1, y=2) is equivalent to foo(y=2, x=1) Sep 16 23:31:21 (usually equivalent anyway) Sep 16 23:31:58 mixing the two styles are arguments is permitted, but then positional arguments *must* precede keyword arguments Sep 16 23:32:09 i.e. foo(1, y=2) is allowed, foo(x=1, 2) is not Sep 16 23:32:36 which is why it's complaining about the 'N' Sep 16 23:33:11 also "portName=" is wrong Sep 16 23:33:14 it's just port= Sep 16 23:33:59 serial.Serial(port="/dev/ttyS2", baudrate=9600, parity='N', timeout=1) Sep 16 23:34:13 note however that parity='N' is already the default, so no need to specify that explicitly Sep 16 23:36:32 Okay. Sep 16 23:37:03 I went from BBIO.UART as UART to serial import Serial. Sep 16 23:37:25 I made it past that section but could not understand the error. I think it may be my hardware. Sep 16 23:37:29 Hold for the paste. Sep 16 23:37:51 well the error you just showed is a simple syntax error Sep 16 23:39:07 I think I tried everything in that section, i.e. ser = serial.Serial(port="/dev/ttyO2", baudrate=9600). Sep 16 23:41:09 I might have to see if my RX from the range finder is reading correctly first. W/ this paste, https://pastebin.com/HW2LFCb5, I am receiving the error that is typed up on line 53. Sep 16 23:41:41 I am powering the device w/ 3.3v instead of 5v too. Sep 16 23:41:53 what device? Sep 16 23:41:58 Oh. Sep 16 23:42:16 LV-MaxSonar-EZ2 Sep 16 23:42:21 MB1020 Sep 16 23:42:50 yep, 3.3v is correct Sep 16 23:43:06 I see. It can be powered from 2.5 to 5.5v. Sep 16 23:43:32 yes, and that supply is also the i/o voltage of its serial interface, hence it is critical to use 3.3v and not 5v Sep 16 23:43:42 Oh! Sep 16 23:43:48 I am glad I did not make that mistake. Sep 16 23:44:21 @zmatt: Do you think I would need RX and TX for this to work? Sep 16 23:44:37 uhh yes Sep 16 23:44:42 Ouch. Sep 16 23:44:47 That is my issue then. Sep 16 23:45:01 I was just using RX, P9.22. Sep 16 23:45:04 how exactly did you imagine you could communicate with it without connecting it? Sep 16 23:45:34 I saw some diagrams. It was either RX from the EZ2 or TX from the EZ2 but not both. Sep 16 23:46:02 Let me show you a couple of diagrams from their website. Sep 16 23:46:05 link? Sep 16 23:46:19 it has to do w/ the rpi but I can change out their software already. Sep 16 23:46:25 Okay. Please hold. Sep 16 23:46:56 https://www.maxbotix.com/072-wireless-sensor-monitoring.htm is one. I will get some more w/ the rpi, too. Sep 16 23:46:58 pin 4 (rx) of the module should go do p9.21 (uart 2 txd), pin 5 (tx) of the module should go to p9.22 (uart 2 txd) Sep 16 23:47:21 Oh. Sep 16 23:47:24 That is what happened. Sep 16 23:47:44 oh never mind Sep 16 23:47:50 I rearranged the pins incorrectly. I was attaching RX to RX and then TX to TX in practice. Sep 16 23:47:51 the rx is apparently not needed Sep 16 23:47:56 Oh. Sep 16 23:48:04 and isn't even a serial input Sep 16 23:48:05 confusing Sep 16 23:48:18 So, I need to use TX to RX w/ RS232? Sep 16 23:48:42 so pin 5 (tx) to p9.22 is indeed all you need, along with pin 6 to 3.3v and pin 7 to ground Sep 16 23:48:55 Right. Sep 16 23:49:04 I used RX instead. Sheesh. Sep 16 23:49:13 I could have messed up royally. I think I did. Sep 16 23:49:23 rx is an input to the device, not an output Sep 16 23:49:28 Oh. Sep 16 23:49:32 Yikes. Sep 16 23:49:53 "yikes" ? Sep 16 23:49:55 Luckily, I soldered the entire pin set on the EZ2. Sep 16 23:50:10 there's no harm in it, it just doesn't do anything Sep 16 23:50:15 Well. That is why there was not any communication and the error arose. Sep 16 23:50:20 Right. Sep 16 23:50:57 It was telling me that, w/ that line 53 on the paste, it did not understand. Sep 16 23:51:09 So, I will use TX on the EZ2. Sep 16 23:51:24 it doesn't say it didn't "understand", it said it didn't receive anything Sep 16 23:51:36 Right. Same thing. It could have printed anything. Sep 16 23:51:41 ? Sep 16 23:51:55 I get it. Calm down. Sep 16 23:52:09 The error arose and the print function stated its mess. Sep 16 23:52:41 But that function could have been anything, e.g. print("I do not understand!") Sep 16 23:52:46 this is pretty awful code btw Sep 16 23:52:49 Ha. Sep 16 23:52:55 I wanted to try something. Sep 16 23:53:18 It just calls the "library" from the previous file and supports it in the new file. Sep 16 23:53:33 I figured I would try it before changing everything. Sep 16 23:53:48 I wanted to put it in w/ the bot on the BBBW. Sep 16 23:54:41 what "library from the previous file" ? it just uses serial Sep 16 23:54:50 @zmatt: I am about to test it. Sep 16 23:54:58 Serial! Sep 16 23:55:02 oh with "awful" I didn't mean "won't work" Sep 16 23:55:10 it's just that it will use 100% cpu load while waiting for data Sep 16 23:55:16 Dang! Sep 16 23:55:21 which is rude Sep 16 23:55:29 How should I go about changing that? Sep 16 23:55:51 yeah I was already checking how to write this a bit better Sep 16 23:59:08 I think of my EZ2, my TX pin is Pin 3. Sep 16 23:59:42 I got it covered. Sep 17 00:00:25 oh actually Sep 17 00:00:37 Oh. Sep 17 00:00:38 this thing outputs inverted serial Sep 17 00:00:43 Dang it. Sep 17 00:00:51 so the beaglebone won't understand it unless you pass it through an inverter Sep 17 00:01:01 Inverter? Gosh. Sep 17 00:01:10 Now, I need to go and find an inverter. Sep 17 00:01:11 Aw! Sep 17 00:02:12 I might just need the BW pin on here. Sep 17 00:02:13 you might be able to use its pulse-output instead (pin 2), but I'm not sure what's the easiest way to do a pulse measurement (although the beaglebone has excellent facilities for it) Sep 17 00:02:25 Okay. Sep 17 00:02:29 I will test it. Sep 17 00:02:29 the BW pin should be left unconnected Sep 17 00:03:22 Oh but if I am using TX (RS232) on the EZ2, the BW pin needs to be set to low and if the BW pin is high... Sep 17 00:03:44 It sends a single pulse for chaining. Sep 17 00:03:49 leaving it unconnected is the same as low, it has internal pull-down Sep 17 00:03:53 I have to look up chaining. Sep 17 00:03:54 Okay. Sep 17 00:04:00 don't pull it high unless you have a use for the chaining pulse Sep 17 00:04:06 it's for using multiple of these modules Sep 17 00:04:11 Oh. Sep 17 00:04:13 Got it. Sep 17 00:04:20 I read that already and forgot. Sep 17 00:04:36 I can try analog too. Sep 17 00:04:38 since they're ultrasonic they'd interfere with each other if they try to do a measurement at the same time Sep 17 00:04:48 you can't since it would be 3.3v analog while the analog inputs of the beaglebone are 1.8v Sep 17 00:05:03 Oh. Sep 17 00:05:07 Dang. Sep 17 00:05:14 I guess when you are right, you are right. Sep 17 00:05:30 Let me go and look up inverter. Sep 17 00:05:37 there'd be ways to interface that, but it would be more complicated than using an inverter to make the serial data work Sep 17 00:06:38 Okay. I can use a type of gate right? Sep 17 00:08:05 @zmatt: Do not worry about it. I am going off to another place real quickly. I might be back. Sorry. Sep 17 00:08:25 I will check in soon. Sep 17 00:21:25 note btw that there should not be an object in front of the sensor the moment you power it on Sep 17 00:21:40 (since it performs a calibration measurement at the moment of powering on) Sep 17 00:22:45 sorry, it calibrates on the first read-command... but leaving rx unused is equivalent to giving continuous read commands Sep 17 00:59:36 so it endlessly calibrates. Sep 17 01:09:17 on the _first_ read-command Sep 17 01:11:26 this still feels gross... https://pastebin.com/RbDjLFjM it would probably actually be better to trigger the module using a gpio when a measurement is desired instead of leaving it in continuous mode and sifting a measurement from the spam Sep 17 01:43:42 @zmatt: The EZ2 has an rx. Okay. So. When it is unused, it reads continuously. Sep 17 01:43:44 Got it. Sep 17 01:44:12 set_: https://pastebin.com/RbDjLFjM my attempt at writing something better... obviously completely untested, so lemme know if you get any errors Sep 17 01:44:20 Okay. Sep 17 01:44:21 but of course you can't even test it without an inverter Sep 17 01:44:28 Oh yea. Dang. Sep 17 01:44:41 Let me see if I have a couple nor gates. Sep 17 01:44:47 or nand gates. Sep 17 01:44:54 one nor gate or nand gate will do of course Sep 17 01:44:59 Okay. Sep 17 01:45:11 if you tie its inputs together you have an inverter Sep 17 01:45:42 (i.e. RX pin of module to both inputs of nor/nand, output to P9.22) Sep 17 01:45:49 Okay. Sep 17 01:45:52 Thank you. Sep 17 01:46:03 I got it. Sep 17 01:47:00 I do not have the gate. Dang it. I only have, please hold. Sep 17 01:49:34 I have some op amps and some other stuff. No nor/nand gates. Blaw! Sep 17 01:52:07 you can also make an inverter using a transistor and two resistors, as in the left drawing of https://photos.app.goo.gl/oufmM2CBPPxBGCh1A Sep 17 01:53:06 with P9.22 instead of DSM2.RX on the left side, and the TX pin of your ultrasonic module instead of sbus.signal on the right Sep 17 01:53:33 maybe replace the 1K resistor by 10K ... 1K seems wildly excessive Sep 17 01:53:42 Okay. Sep 17 01:54:28 I have a transistor and two resistors. Sep 17 01:55:50 @zmatt: That source in the paste is not there any longer. Oh and I see only one photo in the drawing. Sep 17 01:56:17 oh, wrong link Sep 17 01:56:45 on sec Sep 17 01:57:27 I am going to draw this idea out to let you know I understand. Sep 17 01:57:50 https://photos.app.goo.gl/S38CeKmFUe8gBwdn7 Sep 17 02:00:12 Okay. Sep 17 02:03:11 I made a drawing but the info. changed. Sep 17 02:03:22 So, I use the TX on the EZ2. Sep 17 02:03:47 I might have the wiring still for the inverter. Sep 17 02:06:20 The TX on the EZ2 goes to the P9.22 and in b/t that connection is the wiring from the photo. That inverted wiring w/ the trans. and resistors. Sep 17 02:06:26 Okay. I think I can do iot. Sep 17 02:06:32 iot = it Sep 17 02:15:16 I might make a cheap purchase of some nand gates for inverting. Sep 17 02:15:22 Blah. Sep 17 02:16:32 https://photos.app.goo.gl/ESZvoHb6eZY1hwi77 Sep 17 02:16:52 (just to make sure there's no confusion about wiring) Sep 17 02:17:17 sure that's an option too Sep 17 02:17:27 oh lol Sep 17 02:17:28 never mind Sep 17 02:17:44 I accidently drew the 3.3v to ground instead of to the module's vcc, lol Sep 17 02:17:53 leeet's just quickly remove that one Sep 17 02:18:31 No issue. Sep 17 02:19:16 I have that old set up for the BBBlue for DSM2 connections. Sep 17 02:19:16 I found the wiring. Sep 17 02:27:00 there, fixed the photo (same link) Sep 17 02:29:25 OKay. Sep 17 02:29:31 I can produce that. Sep 17 02:29:43 I will have to set this up tomorrow. Sep 17 02:30:38 My cable on the other end of my wiring config. only has two wires, i.e. no power wire. Sep 17 02:31:53 I appreciate the effort and time it took to do all of this explaining. Sep 17 02:32:16 I will attempt this tomorrow. **** ENDING LOGGING AT Tue Sep 17 03:01:14 2019