**** BEGIN LOGGING AT Wed Jun 19 02:59:57 2019 Jun 19 04:02:21 zmatt: about the question of the other day: dsp through pipes: an example Jun 19 04:02:32 echo "2+2" | octave Jun 19 04:02:38 but it's too slow Jun 19 04:33:23 or maybe not Jun 19 05:31:35 solved. Jun 19 06:11:59 hello Jun 19 06:12:11 ı have a question Jun 19 06:12:21 can you help to me please ? Jun 19 06:12:53 ibrahim: how should we, if we do not know your problem? Jun 19 06:13:18 ibrahim: -> ask your question. if somebody knows, you'll get an answer. if nobody knows, then not. Jun 19 06:13:49 ı want to control stepper motor with beaglebone but ı couldnt choose the board . ı need to help Jun 19 06:14:09 ı should connect the encoder and stepper motor Jun 19 06:15:16 you mean something like https://www.seeedstudio.com/Motor-Bridge-Cape-p-2569.html probably? Jun 19 06:23:51 should I use the motor bridge with beaglebone black for control sttepper motor? Jun 19 06:24:28 its one way. you certainly need some form of additional hardware. Jun 19 16:39:39 hello all Jun 19 16:40:16 I am new to BBBW and started playing around with it. Having issues with bluetooth config Jun 19 16:40:21 Any help please ? Jun 19 16:48:19 hello all Jun 19 16:48:28 i just set up a new BBB with the 9.5 stretch iot image Jun 19 16:48:36 when i try to ssh in the default password is not working Jun 19 16:48:46 i have tried many times and am sure my caps lock is off etc Jun 19 16:48:51 is there another password to try? Jun 19 16:49:04 i am doing ssh debian@192.168.7.1 and then using password temppwd Jun 19 16:49:24 strange Jun 19 16:49:43 it really should just work Jun 19 16:50:02 don't you need 192.168.7.2 ? Jun 19 16:50:04 that is what i thought Jun 19 16:50:18 oh, you may be right, duh Jun 19 16:50:19 oh actually that's a good question... I always use hostnames rather than IPs myself Jun 19 16:50:21 let me try that Jun 19 16:50:23 hehee Jun 19 16:50:28 might have been trying to ssh to myself Jun 19 16:50:29 lol Jun 19 16:52:23 yup, that was it. i feel stupid Jun 19 16:52:24 thanks Jun 19 16:52:39 np :D Jun 19 16:56:08 I guess one would normally expect the dhcp server to be .1 and its first client to be .2 rather than the other way around, as is actually the case :P Jun 19 17:18:34 hi the encoder doesnt work Jun 19 17:19:11 anyone here? Jun 19 17:19:41 no, just 156 bots Jun 19 17:20:31 you just didn't get an answer because 1. you didn't wait long enough 2. your question (or remark rather) was too vague to give any useful reply Jun 19 18:21:59 we should have a bot that auto-greets web users with a stock message... Jun 19 18:22:16 they clearly don't read/see the topic Jun 19 18:22:43 We are the Borg. You will be assimulated. Jun 19 18:22:43 oh I like the new shortlinks jkridner :D Jun 19 18:22:47 Like that? ;) Jun 19 18:22:57 ds2: that wfm :D Jun 19 18:22:57 I think a suitable explanation on the webchat page would already help a lot Jun 19 18:23:05 ^ that also Jun 19 18:24:15 "you will not get a reply in under 4 minutes" Jun 19 18:24:52 prehaps icons of messages in a bottle being thrown into the digital ocean? Jun 19 18:25:08 "closing your browser immediately after posing a question and you don't get an immediate answer is considered rude" Jun 19 18:25:33 ds2: that would work, except we have a literal digitalocean :p Jun 19 18:25:45 the confusion .. gah. Jun 19 18:41:36 anyone here to help ?? Jun 19 18:42:56 ? Jun 19 18:42:57 ? Jun 19 18:42:58 ? Jun 19 18:42:59 ? Jun 19 18:42:59 ? Jun 19 18:43:00 there are plenty of knowledgable people here, but probably noone is interested in being your personal assistant on an unspecified topic. Jun 19 18:43:00 ? Jun 19 18:43:07 and fucking hell stop spamming Jun 19 18:43:52 Ard Jun 19 18:43:56 and do NOT send unsolicited private messages Jun 19 18:44:29 if you have a question, just ask it, and have patience since it can sometimes take quite a while to get an answer Jun 19 18:46:48 I have a new BBBW and i am trying to configure it ...i am able to enable wifi and ping.. now trying to figure out bluetooth and struck here Jun 19 18:47:11 [CHG] Device 80:6C:1B:5A:74:EC Trusted: yes Changing 80:6C:1B:5A:74:EC trust succeeded [bluetooth]# agent on Agent is already registered [bluetooth]# default-agent Default agent request successful [bluetooth]# connect 80:6C:1B:5A:74:EC Attempting to connect to 80:6C:1B:5A:74:EC Failed to connect: org.bluez.Error.Failed Jun 19 18:47:37 when sharing multi-line text, please use a paste service such as pastebin.com Jun 19 18:47:49 pasting it directly into chat makes it hard to read and usually truncates it Jun 19 18:47:55 yes sir Jun 19 18:47:59 understood Jun 19 18:50:17 why are you sending me private messages again? stop doing that Jun 19 18:50:41 To cross check the pastebin Jun 19 18:50:49 and it aint happening Jun 19 18:51:07 ? Jun 19 18:51:52 So here is my error while connecting via bluetooth Jun 19 18:52:10 you just go to pastebin.com in your web browser, paste the text into the big input field, optionally change the other settings below it and then hit the "Create New Paste" button below it Jun 19 18:52:23 and then give us the url of the resulting page Jun 19 18:53:02 ok Jun 19 18:53:03 https://pastebin.com/4DGGQ04s Jun 19 18:58:24 I don't have any experience with bluetooth on linux, but based on some quick googling I found that some people need to "trust" and *then* "pair" the device before they connect, so that may be worth trying: https://unix.stackexchange.com/a/373583 Jun 19 18:58:45 I tried that matt ..no help Jun 19 18:58:53 Thanks tho Jun 19 19:00:20 it doesn't help that the error message is so utterly useless here Jun 19 19:01:55 maybe check if there's more useful information in logs? you can view all system log messages since last boot using: journalctl -b Jun 19 19:02:39 or just view the log in real-time using journalctl -f and then open a second ssh connection and use that to try to connect Jun 19 19:03:26 (to see if any log messages are produced during the attempt to connect to the bluetooth device) Jun 19 19:04:20 okay Jun 19 19:06:29 amazing sir. Jun 19 19:06:31 a2dp-source profile connect failed for 80:6C:1B:5A:74:EC: Protocol not available Jun 19 19:06:36 logs says this Jun 19 19:07:03 yeah so that's one I find often on the internet... although it seems odd to be that pulseaudio would be required Jun 19 19:07:14 the device you're trying to connect to is an audio device? Jun 19 19:07:20 no Jun 19 19:07:26 android mobile phone Jun 19 19:08:06 yeah, so I feel like it ought to be able to ignore the audio aspect instead of failing to connect entirely... very strange Jun 19 19:09:13 yeah and my bbbw says Jun 19 19:09:14 pulseaudio-module-bluetooth is already the newest version (10.0-1+deb9u1) Jun 19 19:10:48 veremitz: cool. it's been a while. Jun 19 19:10:57 thanks to parthi Jun 19 19:13:10 i am trying to write an android app which can discover my bbbw and connect to it and communicate Jun 19 19:13:39 but struck here from 2 days Jun 19 19:17:24 and i can see these errors in the log too Jun 19 19:17:25 Failed to obtain handles for "Service Changed" characteristic Jun 19 19:17:33 beaglebone bluetoothd[2377]: Sap driver initialization failed. Jun 19 19:17:58 beaglebone bluetoothd[2377]: sap-server: Operation not permitted (1) Jun 19 19:19:06 well if you intend to make a custom bluetooth application then none of this may be important anyway? Jun 19 19:19:25 since you'd probably have some kind of custom application dealing with pairing requests Jun 19 19:20:32 you'll need to configure what sort of service you want to offer anyway, and presumably once bluez stops trying to be an a2dp sink, this problem goes away anyway Jun 19 19:20:45 yeah Jun 19 19:22:54 Hey aravind: Look here: https://github.com/imfatant/test#extras. Jun 19 19:23:19 set_: I don't think he actually wants to send audio Jun 19 19:23:24 There is a section that explains the set up and...oh? Jun 19 19:23:42 I saw pusleaudio-module-bluetooth. Jun 19 19:23:52 Did someone try bluetoothctl? Jun 19 19:23:53 yes, its involvement is undesirable Jun 19 19:23:59 Okay. Oh. Jun 19 19:24:01 (of the pulseaudio bluetooth stuff) Jun 19 19:24:05 Okay. Jun 19 19:24:32 I have not paired my BBBW yet but I tried w/ the BBGW. I was successful for a couple of times. Jun 19 19:24:45 I connected and paired it. Jun 19 19:25:01 Off to the notes. Jun 19 19:25:18 I am still having the same issue Jun 19 19:25:24 does bluez seriously have no documentation other than the dbus api? :-/ Jun 19 19:26:05 aravind: Did you enable your bluetooth.service file yet? Jun 19 19:26:23 bluetooth.service is enabled by default afaik? Jun 19 19:26:28 Oh. Jun 19 19:26:29 Okay. Jun 19 19:26:30 if it weren't, he wouldn't be able to use bluetoothctl Jun 19 19:26:39 also, he's seeing log messages from it, therefore it's running Jun 19 19:26:41 yes Jun 19 19:26:52 Aw. Let me try again. Oh. He is sending messages already? Jun 19 19:27:03 i restarted my bluetooth as well Jun 19 19:27:11 aravind: the sap failure shouldn't be a problem, I'd presume anyway Jun 19 19:27:18 okay Jun 19 19:27:24 Oh...are you paired and just not getting your software working? Jun 19 19:27:30 In order to be able to use audio equipment like bluetooth headphones or speakers, you need to install the additional pulseaudio-bluetooth package Jun 19 19:27:32 (sap = sim access profile) Jun 19 19:27:44 here my case is with mobile device Jun 19 19:27:52 Oh. Jun 19 19:28:10 but still i have pulse audio up to date Jun 19 19:28:12 yeah your problem is more that the audio profile is not wanted or desired, but bluez is trying to use it Jun 19 19:28:37 pulseaudio shouldn't even be installed, not on an iot device Jun 19 19:29:22 (unless you're making a bluetooth speaker maybe :P ) Jun 19 19:29:29 so...you were able to pair the MAC Address of your phone already? Jun 19 19:30:19 I think there should be an application that supports this pairing, i.e. not just the pairing alone. Jun 19 19:30:56 yes matt Jun 19 19:30:59 I can pair Jun 19 19:31:10 Okay. Jun 19 19:31:17 i am going to send you a full log now Jun 19 19:31:28 So, the app you made to show on your phone is not working? Jun 19 19:31:46 right now i am not using any app Jun 19 19:31:56 just the default android bt feature Jun 19 19:32:18 Okay. I think this may be an issue. I remember the old interface that the Seeed-Studio people came up w/ a while back. Jun 19 19:33:11 They made an app that could sign in WiFi and Bluetooth over cellular while attaching to their version of the BBBW, i.e. the BBGW. Jun 19 19:33:13 Anyway... Jun 19 19:33:16 Long story, short. Jun 19 19:34:11 oh i see Jun 19 19:34:13 Bluetooth worked while their WiFi failed... Jun 19 19:34:29 It was the application and not the tech. Jun 19 19:34:30 here is the complete log Jun 19 19:34:34 https://pastebin.com/hmuqPx5W Jun 19 19:35:22 journalctl -f has the same error -- a2dp-source profile connect failed for 80:6C:1B:5A:74:EC: Protocol not available Jun 19 19:35:38 What is the foot print for BBG0896? Jun 19 19:35:53 which protocol am i missing here :-( Jun 19 19:38:12 systemctl status bluetoot -- > https://pastebin.com/ynCzBhFM Jun 19 19:38:48 Maybe it is not 4.1 compatible? Jun 19 19:39:18 that means it tried to connect a2dp but failed to do so, most likely because pulseaudio isn't running (since it's normally only launched from within a gui login session). the solution here is to figure out how to disable a2dp entirely Jun 19 19:40:09 yes Jun 19 19:40:17 cause i don't actually need it Jun 19 19:40:40 Now trying to connect an iphone Jun 19 19:40:44 i will share Jun 19 19:42:56 aravind: can you share the output of: busctl tree org.bluez Jun 19 19:43:26 yes sir Jun 19 19:44:12 (the "sir" is quite unnecessary btw) Jun 19 19:44:23 Yea. Call me that. Jun 19 19:44:28 Just playin' Jun 19 19:44:35 hahah Jun 19 19:44:39 never mind Jun 19 19:44:42 https://pastebin.com/vk2Rc6CU Jun 19 19:44:47 here is the tree Jun 19 19:44:48 I am going to pair my BBBW now. Jun 19 19:44:54 please try Jun 19 19:44:55 w/ a phone and computer to test. Jun 19 19:45:08 Okay. Jun 19 19:45:09 I got the same error with my iphone as well Jun 19 19:45:39 i am just 20 ..so calling sir is kool with me :-D Jun 19 19:45:46 unless you are ok Jun 19 19:46:20 I really don't need to be called "sir", thanks Jun 19 19:46:29 ma'am? Jun 19 19:46:34 Sorry. Jun 19 19:46:37 * zmatt slaps set_ Jun 19 19:46:42 Ouch! Jun 19 19:46:48 hahaha Jun 19 19:48:23 I can reproduce the issue when trying to connect to my phone from my laptop Jun 19 19:48:24 matt and set_ ..if you guys don't mind please share me ur emails privately .. I promise i won't spam ..just topic related doubts Jun 19 19:48:37 I do mind Jun 19 19:48:47 :-( Jun 19 19:49:38 just ask questions here in chat so other people can chip in (reminder: I have no experience with bluetooth on linux) and to ensure your troubleshooting becomes part of the irc logs and therefore may help others in the future Jun 19 19:49:44 Sorry. Jun 19 19:49:50 I am testing now. Jun 19 19:50:04 yeah make sense Jun 19 19:50:43 Look here: https://pastebin.com/qvTBf7a0 is what I will try now. I just rebooted. Jun 19 19:52:28 aravind: there's definitely a compile-time flag to disable audio-related profiles, but I haven't found any runtime-configuration option yet Jun 19 19:52:54 okay Jun 19 19:53:07 you think a fresh image re install will help ? Jun 19 19:53:16 i jst read over some thread Jun 19 19:53:59 Okay. Jun 19 19:54:14 I got my BBBW paired w/ the Android Phone. Jun 19 19:54:22 It comes in as beaglebone. Jun 19 19:54:42 So... Jun 19 19:54:54 pair Jun 19 19:55:02 connect Jun 19 19:55:10 trust Jun 19 19:55:22 The phone should ask you, too. Jun 19 19:55:25 yeah Jun 19 19:55:36 it pops pair code at pairing step Jun 19 19:55:43 So, right. Redo it. Jun 19 19:55:48 aravind: hmm, so I'm looking at the dbus interface and it seems that there's ConnectProfile to connect a single profile of a device, and "Connect" which will "connect any profiles the remote device supports that can be connected to and have been flagged as auto-connectable on Jun 19 19:55:52 out side." Jun 19 19:55:54 *our Jun 19 19:55:54 redo the pair (MAC Address> Jun 19 19:56:04 set_: pairing isn't the problem, he's paired Jun 19 19:56:09 Okay. Jun 19 19:56:15 yes Jun 19 19:56:23 it says already paired Jun 19 19:56:32 connect just throws error Jun 19 19:56:34 bb-wl18xx-bluetooth.service loaded active running BB WL18xx Bluetooth Service Jun 19 19:56:35 So, you cannot connect or you cannot trust? Jun 19 19:56:36 Oh. Jun 19 19:56:39 aravind: so the problem here is that because bluez and the phone support a2dp, using "connect" will attempt to connect a2dp and that fails Jun 19 19:56:52 Aw! Jun 19 19:57:10 aravind: which profile are you trying to get connected? Jun 19 19:57:25 sorry ? Jun 19 19:57:36 I didnt get that Jun 19 19:57:38 since the dbus documentation for the Connect method (which is presumably what "connect" in bluetoothctl uses) says that "If at least one profile was connected successfully this Jun 19 19:57:43 method will indicate success." Jun 19 19:58:10 okay Jun 19 19:58:19 it evidently attempted to connect a2dp and sap, and both of those failed Jun 19 19:58:19 So, erase that profile? Jun 19 19:58:30 I don't know what profile you were hoping to connect Jun 19 19:58:38 which profile ? Jun 19 19:58:50 yes Jun 19 19:58:51 I am sorry i have no idea about profile here Jun 19 19:58:59 please explain me Jun 19 19:59:08 basically which sub-protocol of bluetooth Jun 19 19:59:25 Right. If there is one profile called beaglebone and this profile needs pairing, connecting, and trusting, you need to forget it first and then retry. Jun 19 19:59:33 set_: what? Jun 19 19:59:41 there is no profile called "beaglebone" Jun 19 19:59:44 That is what I understood. Jun 19 19:59:48 then you misunderstood Jun 19 20:00:04 i am confused now Jun 19 20:00:11 Oh my phone, my profile for the BBBW is called beaglebone. And the pair for my phone is called something different. Jun 19 20:00:15 aravind: tip to avoid getting confused: ignore everything set_ says Jun 19 20:00:20 Right! Jun 19 20:00:21 hahahaha Jun 19 20:01:13 So...communication b/t the two: ----->> Phone = z4 and BBBW = beaglebone Jun 19 20:01:42 Those names are profiles for those devices. Jun 19 20:02:06 set_: no they're not Jun 19 20:02:15 bluetooth profiles are these: https://en.wikipedia.org/wiki/List_of_Bluetooth_profiles Jun 19 20:02:42 Hey. aravind: did you erase or disable your a2dp service yet? Jun 19 20:02:44 Oh. Jun 19 20:02:50 no Jun 19 20:02:54 how to do so Jun 19 20:03:23 it looks like you'd have to recompile bluez to fully remove it, but it isn't actually a problem to have it enabled (probably) Jun 19 20:03:39 "connect" failed not merely because a2dp failed, but because it failed to connect *any* profile Jun 19 20:03:48 Oh. Jun 19 20:03:52 okay Jun 19 20:03:56 also in your final application you won't be using bluetoothctl anyway Jun 19 20:04:09 true Jun 19 20:04:33 Okay. Let me get this right. So, you can pair but not connect. Since you cannot connect, you cannot trust? Jun 19 20:04:59 I can trust the device Jun 19 20:05:02 after pair Jun 19 20:05:04 so I think you should read up more on bluetooth, figure out what profile you expect to use, and how to implement such a service on a linux system as well as how to make an android client for it Jun 19 20:05:12 Oh. Jun 19 20:05:15 yes matt. Jun 19 20:05:23 tons of digging needed Jun 19 20:05:24 In b/t the pair and trust, use connect. Jun 19 20:05:38 yes did that Jun 19 20:05:41 Oh. Jun 19 20:05:47 and also many ways around Jun 19 20:05:48 yes Jun 19 20:05:51 And it works but it does not stay working? Jun 19 20:06:09 it won't connect Jun 19 20:06:13 at all Jun 19 20:06:14 set_: again, it fails to connect because none of the profiles can connect Jun 19 20:06:19 Okay. Jun 19 20:06:21 Got it. Jun 19 20:06:32 Did anyone look at my paste? Jun 19 20:06:35 the logs indicates it attempts a2dp and sap, but both fail for understandable reasons Jun 19 20:06:54 Okay. I ready what you typed zmatt. I got that part. Jun 19 20:07:38 # load-module module-suspend-on-idle ??? this part Jun 19 20:07:59 is this you pasted ? Jun 19 20:08:14 Yes. Scroll to /etc/pulse/default.pa and change it. Jun 19 20:08:35 It is uncommented. It needs to be commented. Jun 19 20:08:40 okay Jun 19 20:08:40 why are you talking about pulseaudio? it's not desired in this application Jun 19 20:08:42 But you will have to reboot after it is done. Jun 19 20:08:42 https://www.hackster.io/guycole/android-beaglebone-interaction-via-bluetooth-rfcomm-da8dcf Jun 19 20:08:47 okay Jun 19 20:08:50 Oh. Jun 19 20:08:51 Okay. Jun 19 20:08:55 That link is my current plan guys Jun 19 20:09:09 this isn't an audio application, pulseaudio should not be running or even be installed tbh Jun 19 20:09:12 but i want to know things while working Jun 19 20:09:22 agreed Jun 19 20:10:29 anyway, as far as I understand your custom service would register itself with bluez, and then it would become discoverable by the phone, allowing your app to connect to it Jun 19 20:10:40 So, what you said zmatt is fact beyond fact for now b/c of what the logs state? Jun 19 20:10:44 right now there's just nothing to "connect" Jun 19 20:10:48 hence connect fails Jun 19 20:10:51 Oh. Jun 19 20:11:43 the a2dp and sap errors are red herrings: they're things bluez supports internally hence it tries to use them, but they're not actually functional in your configuration nor are they desired Jun 19 20:12:06 okay Jun 19 20:12:57 that's my understanding so far anyway Jun 19 20:13:29 Got ya Jun 19 20:13:44 I am going to dig a bit more Jun 19 20:14:00 and will let you know here Jun 19 20:21:32 So, just for some notes on this subject. When starting a pair, it may or may not go through. Just "pair" once more (again), then "connect", and then "trust". Jun 19 20:23:26 oh and aravind: That is a cool project. Are you just trying to update the older version of the image and kernel used? Jun 19 20:25:20 there's definitely something odd going on... even though I wasn't able to connect to my phone earlier, now I am, and nothing has changed Jun 19 20:26:55 oh i see Jun 19 20:27:16 my last step for today will be that set_ Jun 19 20:27:31 Okay. Do not worry if that does not work. It just worked for me. Jun 19 20:27:52 I might have a different kernel and image altogether. Jun 19 20:28:18 root@beaglebone:~# uname -a Linux beaglebone 4.14.71-ti-r80 #1 SMP PREEMPT Fri Oct 5 23:50:11 UTC 2018 armv7l GNU/Linux Jun 19 20:28:31 Let me check mine. Jun 19 20:28:53 what about cat /etc/dogtag? Jun 19 20:30:18 uname -r: 4.14.94-ti-r96 Jun 19 20:30:21 BeagleBoard.org Debian Image 2018-10-07 Jun 19 20:30:35 root@beaglebone:~# lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 9.5 (stretch) Release: 9.5 Codename: stretch root@beaglebone:~# Jun 19 20:30:48 This is mine: BeagleBoard.org Debian Image 2019-01-27. Jun 19 20:31:08 4.14.71-ti-r80 Jun 19 20:31:32 I am using some old image i guess Jun 19 20:31:40 You are using the correct image. Jun 19 20:31:49 oh cool Jun 19 20:31:51 I was testing some new images a while back on different boards. Jun 19 20:32:01 ok Jun 19 20:32:19 Hey aravind: Did you back up your info? Jun 19 20:32:36 On the BBBW? Jun 19 20:32:58 Like...back up to another medium or device outside of the BBBW? Jun 19 20:33:32 noo Jun 19 20:33:41 Oh. Jun 19 20:33:51 You might want to in case things transpire oddly. Jun 19 20:34:03 okay Jun 19 20:34:24 Do you use Linux or Windows? Jun 19 20:34:26 aravind: in case it's of any interest, here's a transcript of me exploring my phone via the bluez dbus interface and connecting to a single profile (AVRCP target) Jun 19 20:34:31 https://pastebin.com/f1Zz0j0h Jun 19 20:34:40 windows Jun 19 20:34:57 For your Windows, use WinSCP. Jun 19 20:35:13 aravind: your image is the latest official release, set_ is apparently running a testing image Jun 19 20:35:30 You can put all your folders and files on your development desktop. Jun 19 20:35:35 yeah Jun 19 20:35:37 Sure Jun 19 20:35:49 Okay. Jun 19 20:36:06 Yes. I am using a testing image. Jun 19 20:36:59 I just wanted to throw that out there, i.e. just in case you are willing to try new things. Jun 19 20:37:23 I have done things before that rendered my Linux BBBW system useless. Jun 19 20:37:24 Oops. Jun 19 20:37:54 aravind: just read your hackster page... so you *do* know what profile you want to use, namely RFCOMM Jun 19 20:38:23 yes for now rfcomm Jun 19 20:40:00 in there he says this ...BBBW hosts a python application which accepts a connection request Jun 19 20:40:11 So with that python script i can do it ? Jun 19 20:40:26 in where? Jun 19 20:40:51 article hackster Jun 19 20:41:08 ah duh Jun 19 20:41:28 apt-get update; apt-get upgrade Jun 19 20:41:43 apt-get install python-bluez Jun 19 20:41:51 Go to the github repo he has listed. Jun 19 20:41:56 He all the src code in it. Jun 19 20:42:00 yeah Jun 19 20:42:35 tweak /etc/systemd/system/dbus-org.bluez.service. Jun 19 20:42:39 note that there's also an "rfcomm" utility to setup rfcomm connections, so a custom python script may not be necessary (but it may be more practical if you want to automatically accept connections) Jun 19 20:42:56 Change this line: ExecStart=/usr/lib/bluetooth/bluetoothd to ExecStart=/usr/lib/bluetooth/bluetoothd -C Jun 19 20:43:01 okay matt Jun 19 20:43:31 you shouldn't do that probably Jun 19 20:43:39 -C, --compat Jun 19 20:43:39 Provide deprecated command line interfaces. Jun 19 20:43:51 those interfaces are presumably deprecated for good reason Jun 19 20:43:59 oh i see Jun 19 20:44:03 okay Jun 19 20:47:02 this is happening Jun 19 20:47:11 anyway, I've got stuff to do, good luck with your project Jun 19 20:47:15 when i try to connect from his app Jun 19 20:47:29 discoverable on Changing discoverable on succeeded [CHG] Controller 6C:C3:74:E7:89:DA Discoverable: yes Jun 19 20:47:39 [CHG] Device 80:6C:1B:5A:74:EC Connected: yes Jun 19 20:47:49 the very next second Jun 19 20:47:50 [CHG] Device 80:6C:1B:5A:74:EC Connected: no Jun 19 20:48:02 it gets disconnected automatically Jun 19 20:48:09 Sure. Thanks matt for the help Jun 19 20:50:11 I will try it. Jun 19 20:50:23 Please hold. Jun 19 20:50:27 okay Jun 19 20:51:50 aravind: You might want to get your own UUID from your Python console. Jun 19 20:52:09 okay Jun 19 20:52:22 Do you know how to use python to get your UUID? Jun 19 20:53:05 yup Jun 19 20:53:24 Okay. See the last .py file in his repo? Jun 19 20:53:35 You will need to change that UUID to fit your UUID. Jun 19 20:53:52 perky_blue.py ? Jun 19 20:54:13 okay got it Jun 19 20:54:23 Yes. Jun 19 20:54:24 service_uuid = "00001101-0000-1000-8000-00805F9B34FB" Jun 19 20:54:45 str(uuid.uuid4()) Jun 19 20:54:59 will this give me correct one Jun 19 20:55:17 That or python3, them import uuid. Jun 19 20:55:23 them = then Jun 19 20:55:30 got it Jun 19 20:55:55 uuid.uuid4() Jun 19 20:56:07 perfect Jun 19 20:56:23 That entire alpha-numerical "thang" is your UUID. Jun 19 20:56:27 You can use that one. Jun 19 20:56:42 sure Jun 19 20:56:56 Oh and replace the UUID in the perky_blue.py file w/ your UUID. Jun 19 20:57:05 yeah Jun 19 20:57:35 aravind: he is using python2.7.x. Jun 19 20:57:41 This may get tricky. Jun 19 20:57:54 This is from two years ago. Jun 19 20:57:57 yeah he got Python 2.7.7 Jun 19 20:58:07 python2 is obsolete Jun 19 20:58:09 Oh. Do you use 2.7.x? Jun 19 20:58:10 Right. Jun 19 20:58:19 yeah i will check that Jun 19 20:58:29 I will change the script accordingly Jun 19 20:58:33 try Jun 19 20:58:37 I know it is not maintained but it may still be around. Jun 19 20:58:50 don't forget to install python3-bluez instead of python-bluez Jun 19 20:59:15 ok Jun 19 20:59:28 yeah it's still around, it seems persistently hard to get of, like cockroaches ;P Jun 19 20:59:32 *get rid of Jun 19 20:59:37 Right. Jun 19 20:59:43 haha Jun 19 21:00:06 aravind: so, your print statements are now different, right? Jun 19 21:00:28 Instead of print "I like tacos", you need print("I like tacos") Jun 19 21:00:40 That is one thing. Jun 19 21:01:47 yeah Jun 19 21:01:56 i will handle that changes Jun 19 21:02:48 Okay. Jun 19 21:03:00 Have you tried the software w/out error yet? Jun 19 21:03:17 w/ updating to python3's ideas. Jun 19 21:04:03 To tell you the truth, I am not sure what this software is supposed to do just yet. Jun 19 21:04:18 Create a bunch of files or something about some LED examples? Jun 19 21:04:38 I did not get good a socket ideas. Jun 19 21:05:48 yeah he changing the led light colors along with bbbw accepting pairing requests via rfcomm Jun 19 21:06:13 Okay. Is there even red or yellow on the BBBW? Jun 19 21:06:20 Or green for that matter? Jun 19 21:06:23 no Jun 19 21:06:26 Oh. Jun 19 21:06:27 thats what Jun 19 21:06:34 all are default blue Jun 19 21:06:39 So, what are we doing w/ this...okay. Jun 19 21:06:50 he changing the gpio Jun 19 21:06:55 to change led colors Jun 19 21:07:03 just to see things clear Jun 19 21:07:30 aravind: So, you wanted to duplicate this project to get LEDs working and notes of these LEDs taken? Jun 19 21:07:43 no Jun 19 21:07:51 w/ bluetooth though, right? Jun 19 21:07:55 Oh. Jun 19 21:07:57 i am not using LEDs here Jun 19 21:08:00 Okay. Jun 19 21:08:01 yeah with bt Jun 19 21:08:06 Just the onboard LEDs. Jun 19 21:08:20 i just want to communicate with my BBBW and android mobile Jun 19 21:08:26 Oh. Got it. Jun 19 21:08:56 So, his software should get you to communicate firstly. Then, onto other things? Jun 19 21:09:17 yeah he did the basic connection with bluetooth via rfcomm Jun 19 21:09:23 Okay. Jun 19 21:09:40 yeah and later i have other plans Jun 19 21:09:44 I am being nosey. I wanted to try to place your ideas. Jun 19 21:09:48 No issue. Jun 19 21:10:04 kool Jun 19 21:11:08 later on after connection establishes i want to tell my bbbw to connect to my wifi and send data to AWS Jun 19 21:11:10 lol Jun 19 21:11:21 Okay. Jun 19 21:11:41 i am collecting data from sensors and my sensors will sit on bbbw Jun 19 21:12:06 Nice! Jun 19 21:12:14 Hey...I just ran the software. Jun 19 21:12:19 okay Jun 19 21:12:23 result ? Jun 19 21:12:32 I get an error, too. It is not like your error since I can connect. Jun 19 21:12:40 mmm Jun 19 21:12:43 I just tried the .py software to see if it would work. Jun 19 21:12:56 I got error: no module named bluetooth. Jun 19 21:13:03 i will do that tonight Jun 19 21:13:06 ohh Jun 19 21:13:18 I need to download a module named bluetooth obviously. Jun 19 21:13:34 Maybe the module is not ready. Jun 19 21:14:16 ? Jun 19 21:15:09 no idea Jun 19 21:15:20 I have to run that script too Jun 19 21:15:25 Does your .py software run. Jun 19 21:15:26 ? Jun 19 21:15:36 No Jun 19 21:15:39 Oh. Jun 19 21:15:41 i havent tried yet Jun 19 21:15:43 Did you try to run it. Jun 19 21:15:45 Oh okay. Jun 19 21:16:09 There is an error and some missing items, i.e. like a module, library, and etc... Jun 19 21:16:12 Till this point i was trying to do that within bluetoothctl Jun 19 21:16:26 so that i can make my own script Jun 19 21:16:31 oh. Jun 19 21:16:33 Okay. Jun 19 21:17:05 I mean, if the bluetooth module/library existed, it may work just fine. I just cannot find where this fellow gets the bluetooth module/library from. Jun 19 21:17:16 if a2dp is really a problem then i am going to go with rfcomm like what he did Jun 19 21:17:24 hahaha Jun 19 21:17:31 he is ultimate uncle Jun 19 21:17:35 lol Jun 19 21:17:41 i emailed him Jun 19 21:17:49 i found his email lol Jun 19 21:18:23 okay set_..I have a class to attend Jun 19 21:18:23 Ut oh! Jun 19 21:18:26 set_ greets finding modules can be "fun" especially for net connectivity devices as there are literally a plethora of them Jun 19 21:18:28 Have fun! Jun 19 21:18:31 later Jun 19 21:18:34 you too Jun 19 21:18:36 Later. Jun 19 21:18:40 Big Thanks Jun 19 21:18:51 aravind: No issue, have fun. Jun 19 21:19:14 GenTooMan: have you heard of the bluetooth module in python3? Jun 19 21:19:25 I used apt install. I might try pip3 next. Jun 19 21:19:32 yes Jun 19 21:19:33 pip Jun 19 21:19:41 no python3 Jun 19 21:19:41 Oh. pip or pip3? Jun 19 21:19:45 Okay. Jun 19 21:19:45 pip3 Jun 19 21:19:47 GOt it. Jun 19 21:21:28 always use pip3 if you want to be sure for Python3 .. ALWAYS.. muhahah <-- mad man for not doing so. Jun 19 21:22:00 Otay! Jun 19 21:22:02 set_ of course after Jan 1, 2020 pip will become pip3 Jun 19 21:22:09 Oh...good news. Jun 19 21:22:22 Man. bluetooth will not work as a pip3 install. Jun 19 21:22:26 I must be missing something. Jun 19 21:22:31 set_ they are dropping python 2 support at that point after 10 years. Jun 19 21:22:39 oh. Jun 19 21:22:40 Oh well. Jun 19 21:23:01 Like usual, we will all provide the same support for python2 right? Jun 19 21:23:15 no mas veces. Jun 19 21:24:42 set_ https://pypi.org/search/?q=bluetooth Jun 19 21:24:56 just follow TI and use another bluetooth stack :P Jun 19 21:25:50 Otay. Jun 19 21:25:55 ds2 no that's YABS (Yet Another Bluetooth Stack) I've seen several on TI's website but they are for different devices. Jun 19 21:26:11 I found pybluez. Jun 19 21:26:26 GenTooMan: yes... problem is BlueZ in its current form is a PoS Jun 19 21:26:45 BlueZ wants to kitchen sink to do anything useful nowadays Jun 19 21:26:56 Otay. I am out. I think I was working myself into a frenzy. Jun 19 21:27:03 for notta. Jun 19 21:27:50 s/wants to/wants a/ Jun 19 21:28:06 I'll dim the set_ lights. :D Jun 19 21:28:28 smooches. Jun 19 23:32:26 .pl files and e-mails! Jun 19 23:34:50 sorry...! = are not easy! Jun 19 23:38:35 I dont know where to start. I have a pocketnc and it has a old begle board and I cant get the anything to conect Jun 19 23:45:50 Yea boy! Jun 19 23:45:54 Update your image! Jun 19 23:46:17 brad_: Is is black or white? Jun 19 23:50:11 Sorry...is the BBB a BBB or BB? Jun 19 23:58:28 looks like a BBB from the photos google finds Jun 19 23:59:20 Nice! I always wanted one of those items. Jun 19 23:59:35 The PocketNC... Jun 19 23:59:46 It looked cool. Jun 20 00:00:04 Attach it to something heavy. Jun 20 00:00:18 You know...190 lbs. or larger. Jun 20 00:02:12 brad_: pocketnc has instructions for logging in on their beaglebones: https://support.pocketnc.com/hc/en-us/articles/360009240393-BeagleBone-Troubleshooting Jun 20 00:15:44 I just went to their site. It is nicer than I remember. Jun 20 00:15:50 Updates! Jun 20 00:34:16 emails here i come! I got it working. Jun 20 00:34:49 perl, emails, webservers, mailservers, and the BBB! Jun 20 00:44:07 what do people do with something as small as a PocketNC? Jun 20 00:52:15 Plastic, I am guessing. Jun 20 00:53:22 Or...or...small metal components like fitted parts or things related to four cycle engines? Jun 20 00:53:35 with a mill? Jun 20 00:53:48 Ya. Is that thing three axis or four? Jun 20 00:53:51 don't think you can fit a boring head on a PocketNC Jun 20 00:53:56 Oh. Jun 20 00:54:17 I'd think a lathe would do better then to try to circular interpolate on a mill Jun 20 00:54:32 I thought that thing had more than one axis. Jun 20 00:54:33 it is a neat and fun little machine, I just can't think of a good use for something that small :D Jun 20 00:54:39 Oh. Jun 20 00:54:41 think it is 4 axis Jun 20 00:56:00 Oh. Jun 20 00:56:26 even a sherline feels tight :D Jun 20 00:56:49 Yea. Sometimes the idea is starting from scratch w/ something new. Jun 20 00:57:19 Bigger machines offer more capabilities w/ a larger footprint. Jun 20 00:57:36 Desktop mfg. is still nice for around the house and for the neighborhood. Jun 20 00:58:04 *nod* Jun 20 00:58:21 a bridgeport for the neighborhood would be nice... esp. with a conversational CNC setup Jun 20 00:59:58 I was researching some machines a while back. I found some knock off machines at some site that sells nothing but Chineses/Japanese machines. Man...they had this one w/ all the gadgets, faceplate, and so on. It was only $200.00 for a mini lathe. Jun 20 01:00:17 ... Jun 20 01:00:50 I looked at the Jet brand for a mini lathe. Yikes. There stuff is not made in the states any longer. It was three times that cost. Jun 20 01:02:13 those 7x12's? Jun 20 01:02:23 Yea, sort of. Jun 20 01:02:27 I guess those are the dimensions. Jun 20 01:02:48 that's a very useable lathe Jun 20 01:03:10 I can do pens, small handles, and other items w/ the correct add ons. Jun 20 01:03:11 onlything i can't get to work on that thing is threading Jun 20 01:03:18 oh. Jun 20 01:03:20 Yea. Jun 20 01:03:26 you do metal or wood lathe work? Jun 20 01:03:30 I have not tried threading. Jun 20 01:03:31 Wood. Jun 20 01:03:44 nice Jun 20 01:03:54 those are bigger machines, aren't they? Jun 20 01:04:03 The wood lathes? Jun 20 01:04:24 yeah Jun 20 01:04:43 I have a small rendition at the house. Jet Mini Lathe but everything else is/can be larger. Jun 20 01:04:52 that tool rest thing always seem huge (compared to the compound/cross slide on a metal lathe) Jun 20 01:04:59 I can mine from a fellow down the road that liked to lie a lot. Jun 20 01:05:18 What. Have you seen those metal lathes? Those things are enormous. Jun 20 01:05:31 I guess it depends. Jun 20 01:05:57 yes, the 7x12 is smaller then the smallest wood lathe I have seen at woodcraft Jun 20 01:06:09 I saw this video on YouTube about MIT showing off one of their metal lathes. Jun 20 01:06:10 Oh. Jun 20 01:06:39 Those metal lathes have to heavy for precision, right? Jun 20 01:06:53 not exactly Jun 20 01:07:14 weight is more for vibration control but they are smaller ones Jun 20 01:07:24 I am looking into chucks for my lathe right now JMT-3 is my size. Mini! Jun 20 01:07:51 No one seems to know what in the hell I am talking about. I purchased this chuck for my lathe. Wrong! Jun 20 01:07:52 http://www.mini-lathe.com/ <-- those are reasonably useable Jun 20 01:07:59 I should look. Jun 20 01:08:02 please hold. Jun 20 01:08:25 JMT-3? MT3 is morse 3.... J is usually jacob but those are mutually exclusive things Jun 20 01:09:47 Thank you. I am new to lathes. I purchased a book to familiarize myself w/ the terminology. Jun 20 01:10:03 I was researching the idea and came up short. Jun 20 01:10:11 ah Jun 20 01:10:15 Yep. Jun 20 01:10:39 I mean. I have been around them and other machines but I wanted something for me. Jun 20 01:10:43 MT/JT refers to the taper Jun 20 01:10:46 Right. Jun 20 01:10:59 fun journey to go down... expensive one though Jun 20 01:11:07 I found this fellow. Jun 20 01:11:17 He seems to want to give out freebies. Jun 20 01:11:58 He is close to death he says b/c of some illness. Jun 20 01:12:12 if you want to get a 7xXX, I suggest getting the XX as large as possible. the extra room is nice Jun 20 01:12:29 now if someone would do a CNC retrofit kit for a 7xXX based on the Beagle.... Jun 20 01:12:38 Yea. I got this extension to my mini. It can handle 5ft. now. Jun 20 01:12:48 5ft? table legs? :D Jun 20 01:12:51 No. Jun 20 01:12:55 Oh. Jun 20 01:12:56 Ya. Jun 20 01:13:00 Ha. Jun 20 01:13:16 One large robot table coming up. Jun 20 01:13:33 robot like a CNC router table? Jun 20 01:13:42 that can handle 4'x8' ply? :D Jun 20 01:13:46 No. Most likely not. Jun 20 01:13:51 I found that online for cheap. Jun 20 01:14:02 I wonder if I could find their site again. Jun 20 01:14:17 MakeBot or something like that... Jun 20 01:14:22 I'd try to put together a kit if I had time but I already got a back burner CNC rebuild project happening already :/ no time Jun 20 01:15:52 I get that. I am still surging in learning basics on most concepts. Jun 20 01:16:08 I am cannot do everything as one person but I shall try. Jun 20 01:16:21 am = cross that out Jun 20 01:16:35 You say kit? Jun 20 01:16:57 like a BBB w/ motors and a frame? Jun 20 01:17:02 yep Jun 20 01:17:25 BBB and stepper drivers are easy... making the mounts and interfacing it mechnically is time consuming Jun 20 01:17:34 It is not easy. BOM, Materials, and set up, then service, and finally something that should not happen then happens. Jun 20 01:17:38 Right. Jun 20 01:18:04 I got the mechanical off some old machine I got. Jun 20 01:18:32 It was an expensive machine for some reason. I forget why or for what reasons. I learned about their set up easily. Jun 20 01:18:40 It is a cheap machine that cost a lot. Jun 20 01:19:02 hehe Jun 20 01:19:44 You know what I am saying...right? All that extruded aluminum in different formats and the nuts/bolts, the side plates, and the ... Jun 20 01:20:11 I guess it would be fantastic to see those extruded aluminum machines in iron. Jun 20 01:20:36 yes Jun 20 01:20:54 apparently cast iron is better then aluminum from a vibration absorption standpoint Jun 20 01:21:18 For a basic respect to the metal industry. right...I always thought b/c it was heavier. Jun 20 01:21:40 but aluminum can work Jun 20 01:21:52 think parts of the sherline and taig are aluminum Jun 20 01:22:05 I found a guy online that does cast iron melts in b/t bars of ceramic. Jun 20 01:22:29 He just pours it into the ceramic cast to make the moldings. Jun 20 01:22:41 or machine it out of billets Jun 20 01:22:54 I have to look that word up. Jun 20 01:22:56 billets. Jun 20 01:23:39 Out of someone's house? Jun 20 01:24:00 Weird stuff came up when I looked it up. Jun 20 01:24:14 sure Jun 20 01:24:37 people have big enough mills in the garage Jun 20 01:24:45 Bridgeports, HAAS Minimills, etc Jun 20 01:24:59 Yea. I have seen people w/ those in their garages. Jun 20 01:25:10 They are dead now but I used to know them. Jun 20 01:25:18 bridgeport can easily deal with iron/steel Jun 20 01:25:51 Right. Man. I tried to drill into SS w/ a HSS drill on a heavy mill. Jun 20 01:25:54 Blah. Jun 20 01:25:56 Smoke. Jun 20 01:26:07 Nothing but smoke. Jun 20 01:26:10 what kind of SS? Jun 20 01:26:19 and what speed/feed? Jun 20 01:26:24 I do not have a clue. All I know is that it was stainless. Jun 20 01:26:30 Slow mo' Jun 20 01:26:34 some SS are very unfriendly to machine Jun 20 01:27:02 slow can be bad for SS; you need to cut it fast and hard enough to keep ahead of the work hardening Jun 20 01:27:18 I noticed. I then got the fellow, the dead fellow, to drill w/ his cobalt drill bits into the stainless. He broke it in my face. Jun 20 01:27:18 or make sure you get a machineable alloy 416 is pretty nice Jun 20 01:27:18 ... Jun 20 01:27:23 Yea. Jun 20 01:27:33 I keep reading how to drill into stainless. Jun 20 01:27:47 I think 303 (or is it 304) is also pretty nice if you don't care to heat treat Jun 20 01:27:55 People keep saying slow and steady w/ lots of oil. Jun 20 01:28:11 304 sounds normal. Jun 20 01:28:48 316 and 304, right. Jun 20 01:29:14 I just went for an interview on machining. Jun 20 01:29:39 Tried it out. They gave me some faulty testing tools to test and measure the steal before me. Jun 20 01:30:00 Damn bastards thought, I am guessing here, I was going to flip out. Jun 20 01:30:40 sounds fun Jun 20 01:30:51 416 is magnetic and heat treatable Jun 20 01:31:16 I was holding their tools for measuring like which end is up. Then, I figured out it must be a prank. Jun 20 01:31:23 I took off and lied on my app. Jun 20 01:31:30 Weird days. Jun 20 01:32:24 metrology is a big part of machining. if you can't measure it, how do you know what you made is within spec? Jun 20 01:33:05 another fun thing to see done with a BBB is a simple CMM Jun 20 01:33:23 even 0.005 accuracy would be a good starting point Jun 20 01:33:57 Are you talking about modeling? Jun 20 01:34:06 no, just machining Jun 20 01:34:09 Oh. Jun 20 01:34:11 Okay. Jun 20 01:34:16 CMM? Jun 20 01:34:30 Coordinate Measuring Machine Jun 20 01:34:39 basically a robot that can measure a part Jun 20 01:34:50 Aw. Jun 20 01:34:51 generate reports on size, roundness, etc Jun 20 01:34:59 On the BBB? Jun 20 01:35:08 Is that possible w/ the gpu? Jun 20 01:35:12 BBB as brain Jun 20 01:35:16 Oh. Jun 20 01:35:18 Got it. Jun 20 01:35:37 you can do a crude one with those chinese calipers... that is about 0.005 accurate or better Jun 20 01:35:51 drive a ruby probe with a stepper.... Jun 20 01:36:29 some kind of feed back is needed to detect when it contacts the part Jun 20 01:36:48 I know nothing right now on ruby probes. I would have to read more. Jun 20 01:36:52 Sorry. Jun 20 01:40:42 ds2: Hey. Jun 20 01:40:48 Sorry about knowing too little. Jun 20 01:40:52 =) Jun 20 01:40:54 I hope you have had some fun! Jun 20 01:40:58 gotta start somewhere Jun 20 01:41:04 Machine talk w/ me gets boring, I know. Jun 20 01:41:06 Right! Jun 20 01:41:21 no biggie... I am waiting for things to compile :D Jun 20 01:41:42 I am setting up a hackster.io thing for people to prey on. Jun 20 01:41:57 Some info. for people to populate online and enjoy. Jun 20 01:42:20 I first started by testing some ideas from the Perl website (which did not work). Jun 20 01:42:31 I grabbed the BBBW and got to work. Jun 20 01:42:41 email! Jun 20 01:42:56 Sometimes the simplest things create fun. Jun 20 02:06:45 ds2: https://xkcd.com/303/ Jun 20 02:15:52 https://www.hackster.io/functt/beaglebone-black-wireless-and-perl-w-emails-7a560de is my take on email w/ Perl from some website. Jun 20 02:15:53 ... Jun 20 02:15:58 I finally got it to work. **** ENDING LOGGING AT Thu Jun 20 03:00:00 2019