**** BEGIN LOGGING AT Sun Sep 04 02:59:57 2022 Sep 04 11:13:08 hi Sep 04 11:13:36 I am booting BBB revision c from emmc , i am seeing two usb interfaces when i do ifconfig Sep 04 11:13:54 but when i ping to ip of interface from my laptop , it is not pinging Sep 04 11:15:30 "i am seeing two usb interfaces when i do ifconfig" ? ... do you mean on your laptop? Sep 04 11:16:36 no on BBB Sep 04 11:16:41 in minicom Sep 04 11:17:18 what OS are you running on your laptop? Sep 04 11:17:27 ubuntu 18.04 Sep 04 11:18:25 jkridner: btw, bbb.io seems broken... its http: redirects to https: but its https certificate does not include bbb.io among its (many) domain names Sep 04 11:18:50 Guest9144: can you share the output of "ip addr" on your laptop? (don't paste the output directly into chat, ues a paste service like pastebin.com) Sep 04 11:19:15 ok Sep 04 11:19:44 ("ip addr" is the modern replacement of "ifconfig", which is an obsolete utility) Sep 04 11:20:17 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 Sep 04 11:20:18     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 Sep 04 11:20:18     inet 127.0.0.1/8 scope host lo Sep 04 11:20:19        valid_lft forever preferred_lft forever Sep 04 11:20:19     inet6 ::1/128 scope host Sep 04 11:20:20        valid_lft forever preferred_lft forever Sep 04 11:20:20 2: enp1s0: mtu 1500 qdisc fq_codel state DOWN group default qlen 1000 Sep 04 11:20:21     link/ether c8:5b:76:a4:81:cc brd ff:ff:ff:ff:ff:ff Sep 04 11:20:21 3: wlp2s0: mtu 1500 qdisc mq state UP group default qlen 1000 Sep 04 11:20:22     link/ether c8:3d:d4:6c:37:4f brd ff:ff:ff:ff:ff:ff Sep 04 11:20:22     inet 192.168.0.104/24 brd 192.168.0.255 scope global dynamic noprefixroute wlp2s0 Sep 04 11:20:23        valid_lft 6139sec preferred_lft 6139sec Sep 04 11:20:23     inet6 fe80::e35b:73d2:609:fbb7/64 scope link noprefixroute Sep 04 11:20:24        valid_lft forever preferred_lft forever Sep 04 11:20:27 this is on my laptop Sep 04 11:21:04 Guest9144: *sigh* I explicitly said "don't paste the output directly into chat, ues a paste service like pastebin.com" Sep 04 11:21:44 ok Sep 04 11:22:29 anyway, this is showing your laptop is not seeing either of the two usb network interfaces at all... are you using minicom via the usb interface or are you using e.g. an ftdi serial cable? Sep 04 11:22:50 FTDI Sep 04 11:23:00 maybe try a different usb cable? Sep 04 11:23:16 since it seems it's not being detected as usb device at all Sep 04 11:24:07 but lsusb listing that cable Sep 04 11:24:32 I don't mean a different serial cable, I mean the usb cable to the beaglebone itself Sep 04 11:24:47 or are you saying the beaglebone is showing up in lsusb? Sep 04 11:25:09 oh i have not connected any USB cable Sep 04 11:25:13 ... Sep 04 11:25:20 i have connected USB to serial cable Sep 04 11:25:31 so why did you imagine you could ping a usb network interface on the beaglebone? :P Sep 04 11:26:09 oh..let me find and connect and ping you the result.. Sep 04 11:26:31 you normally don't need a usb-to-serial cable with the beaglebone, that's typically just a last resort means to debug issues if you can't reach the beaglebone in any other way Sep 04 11:26:40 or to debug boot issues Sep 04 11:28:17 ok Sep 04 11:29:02 yes , it pinging Sep 04 11:29:11 thanks  a lot Sep 04 11:29:16 if we do not use minicom Sep 04 11:29:20 use ssh Sep 04 11:29:33 ok. i will use ssh Sep 04 11:29:36 thanks Sep 04 11:29:38  a lot Sep 04 11:29:54 ssh debian@beaglebone.local or ssh debian@192.168.7.1 or whatever its IP is (I don't actually remember, I always use beaglebone.local) Sep 04 11:30:07 and in case you're wondering why there are two usb network interfaces... Sep 04 11:30:50 i am able to ssh Sep 04 11:31:25 one uses a usb standard protocol (CDC-ECM or CDC-NCM depending on image version), the other is microsoft's proprietary RNDIS protocol because as usual microsoft didn't bother to actually properly implement usb standards Sep 04 11:32:13 so Windows needs RNDIS, Mac needs CDC-ECM/NCM, linux supports all of them Sep 04 11:32:32 this is true for debian based system as well ? Sep 04 11:34:02 the beaglebone implements both to be able to support different operating systems... but linux systems (debian, ubuntu, doesn't matter) support both RNDIS and CDC-ECM/NCM hence it will see both interfaces Sep 04 11:34:07 (it doesn't really matter which one you use) Sep 04 11:34:43 oh ok..... Sep 04 11:35:31 thanks for the detail explaination.. Sep 04 11:35:37 (192.168.7.2 uses microsoft's proprietary RNDIS protocol, 192.168.6.2 uses the usb standard protocol) Sep 04 11:38:50 ok , thanks.. Sep 04 11:42:41 How do I get pwm to work on the BBB w/ /dev/bone/pwm/1/b/? I tried w/ echo on the command line and the LED does not light. Sep 04 11:44:02 I also tried w/ a python3 source I found years back. It seems the source runs but the LED does not light up. Sep 04 11:44:27 uhh it works the same as pwm outputs have always worked... /dev/bone/pwm/ just contains some symlinks for convenience Sep 04 11:44:43 is the pin configured to pwm using config-pin ? Sep 04 11:44:57 I tried w/ config-pin and w/out config-pin. Neither work so far. Sep 04 11:45:28 (P9.16 in case of pwm/1/b ) Sep 04 11:45:31 So, should I use /dev/bone/pwm/1/b/ for source or should I use another file location? Sep 04 11:45:32 Right. Sep 04 11:47:16 Here is some source for testing that I keep changing: https://pastebin.com/raw/gACMv4sk . Sep 04 11:47:38 I have not put a start or init function yet. Sep 04 11:47:44 just to confirm, what does /dev/bone/pwm/1/b symlink to? (ls -ld /dev/bone/pwm/1/b ) Sep 04 11:48:01 Let me check. I need to plug into the ole 'puter. Sep 04 11:48:10 Booting now. Sep 04 11:50:20 This... drwxrwxr-x 3 root gpio 0 Jan 1 2000 /dev/bone/pwm/1/b/ Sep 04 11:50:31 without trailing / Sep 04 11:50:37 Oh. Sep 04 11:51:16 lrwxrwxrwx 1 root root 29 Sep 4 03:54 /dev/bone/pwm/1/b -> /sys/class/pwm/pwmchip5/pwm1/ Sep 04 11:51:43 and ls -ld /dev/pwm/ehrpwm1b ? (I'm hoping those symlinks also still exist) Sep 04 11:51:52 I will check. Sep 04 11:52:14 No such file. Sep 04 11:52:27 ugh, annoying Sep 04 11:52:38 realpath /dev/bone/pwm/1/b Sep 04 11:53:57 This >>> /sys/devices/platform/ocp/48000000.interconnect/48000000.interconnect:segment@300000/48302000.target-module/48302000.epwmss/48302200.pwm/pwm/pwmchip5/pwm1 Sep 04 11:54:07 okay that looks correct Sep 04 11:55:02 the python script you pastebinned doesn't do anything though... you're just defining functions, not doing anything with them. (and most of them look at least partially broken) Sep 04 11:55:12 Oh. Sep 04 11:55:16 I know. Sep 04 11:55:29 I have another file that handles the use of the functions. Sep 04 11:56:20 Let me update the script(s). I will show you both of them real quickly. Sep 04 11:58:06 Pastebin just had a pop up w/ an illegal infected site. I will try another way. Sep 04 12:00:49 1. https://pastebin.com/jTx5u61N && 2. https://pastebin.com/N9LLjVCr <<< This is the file I use for testing. The 1. file is for the lib. currenty. Sep 04 12:03:30 So, maybe using the /sys/class/pwm/pwmchip5/pwm1/ file may prove more valuable? Sep 04 12:08:15 no, use the symlink Sep 04 12:08:27 pwmchip numbering is variable and cannot be relied on Sep 04 12:08:31 which is why the symlinks exist Sep 04 12:08:52 Oh. Sep 04 12:08:54 Okay. Sep 04 12:09:58 I tried w/ echo 50000 > period && echo 250000 > duty_cycle && echo 1 > enable. Sep 04 12:10:15 In the file. Sep 04 12:11:39 Maybe the polarity is backwards? Sep 04 12:12:21 those values are bogus Sep 04 12:12:30 duty_cycle can never exceed period Sep 04 12:12:45 Sorry. I meant 25000. Sep 04 12:12:49 My typo. Sep 04 12:13:27 in that case it looks fine to me Sep 04 12:13:45 The led does not light up w/ me using those values. Sep 04 12:14:18 double-check the pin is muxed to pwm Sep 04 12:14:49 Dang. It does work. Sep 04 12:14:53 Hmm. Sep 04 12:15:16 I wonder what exactly happened earlier...oh well. It works now. Sep 04 12:16:29 Okay, so yeppers. It is me and my source I got from online from Mr. Yoder. Sep 04 12:16:52 It is older source w/ an actual import of glob. Sep 04 12:17:00 And some other source... Sep 04 12:17:17 I took that out b/c I was not using it w/ config-pin. Sep 04 12:58:05 How can I add a PosixPath to a String? Sep 04 12:59:24 Forget it. I found something promising. Sep 04 13:18:28 @zmatt: I am coming across issues w/ permission now. I think I got it but I cannot access the pwm instance. Sep 04 13:19:10 simple pwm library: https://pastebin.com/R70P1wAn Sep 04 13:19:17 example usage: https://pastebin.com/0xE3wyAR Sep 04 13:19:39 you didn't have permission issues earlier, so if you're suddenly having them now you presumably just fucked something up :P Sep 04 13:20:00 Aw! Sep 04 13:20:11 or you're getting a permission issue because you got the path wrong and you're effectively trying to create a file in sysfs Sep 04 13:20:23 Oh. Sep 04 13:20:44 I will check. I noticed that to add PosixPath to Strings, the / character is used. Sep 04 13:20:59 in pathlib. Sep 04 13:41:56 Oh...yea. I see now. I am trying to create the file /period by mistake. Sep 04 13:42:29 and it is already there in the /dev/bone/1/b/ file. Sep 04 13:42:54 Sorry. /dev/bone/pwm/1/b/ file. Sep 04 13:45:36 is my file incorrect b/c of what you said, of course, and that I am not accounting for errors? Sep 04 13:49:19 I see you typing words, but I don't really know what they mean. did you see my link to a simple pwm library in python + example usage? Sep 04 13:52:46 Yes. Sep 04 13:52:49 I saw it. Sep 04 13:52:54 it does not look too simple. Sep 04 13:53:08 I will try it. Sep 04 13:53:40 the implementation of the library doesn't have to look too simple, as long as its works properly... what matters is whether the usage is simple :P Sep 04 13:54:12 You are right. Usage over "too simple." Okay...thank you. I will test it. Sep 04 13:54:29 I will test it now, i.e. in a bit. Sep 04 13:54:48 and the library actually is pretty simple, but the configure() method just has a bunch of cases to cover and it tries to do recent error-checking Sep 04 13:55:43 Oh. Sep 04 13:56:13 but ultimately all the configure() method does is write values to period, duty_cycle, and enable Sep 04 13:56:21 I saw the methods. I am not too familiar w/ methods as of now. I guess this is why I am calling it not too simple. Sep 04 13:56:23 Oh. Sep 04 13:56:47 right, what you're saying is "I don't actually know how to program so anything looks complicated to me" :P Sep 04 13:57:05 Blah. Okay. You are right. I do not know everything! Sep 04 14:11:40 You were right, blah-blah-blah, and now things are working. Thank you again! Sep 04 14:11:57 Now, I need to figure out how you did it. Sep 04 21:41:29 I have a PocketBeagle with the Grove kit cape. I purchased a two relay board and I need assistance in configuring cape ports for outputs to control relays. Thx Sep 04 21:42:01 GPIO. Sep 04 21:42:15 Oops. Sorry. Wrong board. Sep 04 21:42:21 It appears that all of the cape connects are configured as inputs except busses Sep 04 21:42:44 You got a RelayCape? Sep 04 21:42:55 set_: pocketbeagle, not beaglebone Sep 04 21:43:12 Guest66: gpios default to input yet Sep 04 21:43:15 Oh. Aw! Okay. Sep 04 21:43:43 *yes Sep 04 21:44:08 It does have connector A2 connected to both AIN2/GPIO44 and AIN3/GPIO45 but there are only examples for using these pins as inputs Sep 04 21:44:31 any gpio can be freely changed between input and output Sep 04 21:44:44 Speed Grove 2 Channel SPDT Relay board Sep 04 21:44:59 Oh. Okay. Sep 04 21:45:37 what language/environment are you using for writing your software? Sep 04 21:45:47 I have no software guide to reconfigure the ports to be used as outputs. Sep 04 21:45:53 python Sep 04 21:46:25 Seeed Software the comes with Grove kit Sep 04 21:46:51 okay I don't really know anything about grove Sep 04 21:47:06 IoT version Sep 04 21:50:04 something that makes it easier to find gpios is this udev rules file: https://pastebin.com/MMC6u7pR if you save it as /etc/udev/rules.d/gpio-symlinks.rules and then reboot then it'll create named symlinks for gpios in /dev/gpio/ (named after the pocketbeagle header pins) Sep 04 21:51:04 Also the A5 port uses P2_35, GPIO 86/AIN5 and P1_2, GPIO 87/AIN6 connections Sep 04 21:53:18 It is sometimes difficult to understand GPIO in sysfs on the PocketBeagle or any am335x w/ the .dts files. I know b/c, like @zmatt says, "set_ does not know how to program." Sep 04 21:53:19 But... Sep 04 21:55:11 I learned about GPIO sort of. /sys/class/gpio/gpio87 on the am335x on the BBB is like this 0 - 3 chips, then 32 * chip + the pin number. Sep 04 21:55:22 Let me go and check if it is that way on the PocketBeagle. Sep 04 21:55:29 the Seeed software creates drivers that manage bits which removes the user from bit banging data and OE controls for the GPIO's and prevents hardware conflicts for neophytes. The flip side is there is insufficient documentation to program hardware directly. Sep 04 21:57:04 Guest66: with that udev rule in place, working with gpios in python is trivial even without any gpio library: https://pastebin.com/kKb5EiFn Sep 04 22:04:47 I never got the pocketbeagle. I am going to get pocketbeagle one day. I see the price went up! Sep 04 22:05:43 I finally got some good solder. I was using 0.064. No good for electronics. Sep 04 22:05:54 I needed 0.032. Sep 04 22:06:11 Now, it just works! Sep 04 22:06:14 No more mess. Sep 04 22:11:02 @zmatt: Um... Sep 04 22:11:46 Is it okay if I share you library you made? I started a post on the forums but rcn-ee wanted me to update the plea for support. Sep 04 22:11:55 for pwm you mean? Sep 04 22:11:59 I am not sure if he wanted me to... Sep 04 22:12:01 yes sir. Sep 04 22:12:59 I was not sure if I needed to share the update and if so, would I need to give you credit, i.e. license or something (name or whereabouts)? Sep 04 22:13:01 I kinda still want to tweak it Sep 04 22:13:08 Okay. No issue. Sep 04 22:13:12 "the update" ? Sep 04 22:13:33 Yea. rcn-ee contacted me on the forums. Sep 04 22:13:44 if you want to link to my library, link to https://pastebin.com/R70P1wAn Sep 04 22:13:54 And wanted me to update people on my...oh. Okay. Sep 04 22:14:19 with the remark that it's barely tested and still subject to being updated Sep 04 22:14:40 I would rather not tell people and keep it to myself but you wrote it and have full auth. over what needs to be done w/ it. Sep 04 22:14:43 A-Okay. Sep 04 22:15:32 like, I just quickly wrote it today in response to your pwm issues, since I figured that writing some working code would be less work then figuring out whatever it is you're doing Sep 04 22:16:16 Right. I understood that fact. Sep 04 22:17:17 So, I will wait to return service on the forums w/ the updated lib. (in case people are wanting to learn more about pathlib, files, and Linux). Sep 04 22:17:31 Oh... Sep 04 22:17:35 and methods! Sep 04 22:18:21 also, note that this code was written for simplicity, not for performance... then again if you wanted performance you wouldn't be using python so *shrug* Sep 04 22:18:30 Ha. Sep 04 22:18:36 I understand. Sep 04 22:18:41 Cython3? Sep 04 22:19:03 People still love C/C++. Even Python3. Sep 04 22:20:07 @zmatt: Would you like the entire lib. I found from that fellow Mr. or Dr. Yoder? Sep 04 22:20:32 It would probably make more sense than my snippets of degradation of his works. Sep 04 22:21:38 I cut out the glob.glob section of one function and then left out the tuple in a table for config-pin. Sep 05 01:08:16 looking for a routine to program I2C bus for 4 channel relay board and how to install driver Sep 05 01:15:53 what board? or what i2c chip does it use? Sep 05 01:21:15 Guest66: what relay board? Sep 05 01:23:28 Hello! Sep 05 01:24:03 @zmatt: I appreciate you. No offense and nothing weird here but thank you for teaching me things. Sep 05 01:24:29 I see you guys are chatting. So, I will stop interrupting. Sep 05 01:27:49 Oh neat...ultraLibrarian has partnered w/ TI for CAD stuff. Now, I can finally make another thing! Sep 05 01:27:57 if by "conversation" you mean someone coming in, asking a question, and then leaving without providing any further details :P Sep 05 01:28:10 Ha. Sep 05 01:28:46 anyway, zZzZ (or trying to) Sep 05 01:28:52 Okay. Later for now! **** ENDING LOGGING AT Mon Sep 05 02:59:56 2022