**** BEGIN LOGGING AT Thu Apr 04 02:59:57 2019 Apr 04 03:05:58 I think I got some bum ESCs. Apr 04 03:06:12 Oh well. Apr 04 09:06:57 Hello, I need help to create small loginpage and get back data from that page into BeagleBone. Apr 04 09:13:24 Anyone? Apr 04 10:34:00 hi every. I am a solar systems engineer and need some help Apr 04 10:34:36 i want to use the victrons energy Mppt (solar cahrger) in my off grid solar systsm Apr 04 10:35:09 we used the beagle board before and manage to get the live data (performance) from the off-grid system Apr 04 10:35:25 but i want to know if there is any way to store the data in the beagle baord? Apr 04 12:01:22 You can store data on the BBB. Apr 04 12:01:40 You need to write to a file and append to it. Apr 04 12:05:53 i.e. 'w' and 'a' in python. Apr 04 12:53:13 Hello there, im new to open hardware could you please advise - am i free to simply use beagleboard x15 pcb layout files in my commercial projects? do i need to do anything with regard to licencing? thanks! :) Apr 04 13:42:18 zmatt: rcn-ee says you aren't happy with bbb.io/latest-images .... Apr 04 13:42:57 * jkridner[m] wanted to try to do one set of images to do both flasher and non-flasher per a proposal on the list. Apr 04 13:43:02 I think it was more-or-less rejected. Apr 04 13:43:28 so, you think maybe we should just add some javascript-y stuff to enable flasher images to show up on the latest-images page? Apr 04 13:43:53 rcn-ee: will you start building both flasher and non-flasher images? Apr 04 13:44:50 rcn-ee and zmatt : what if we ever push the changes to Etcher across the finish line? I've used it for flashing boards and it is a pretty nice experience. Why not just finish that tool? Apr 04 13:45:11 ravikp7: what is the status of Etcher with BeagleBoot integrated? Apr 04 13:45:23 ravikp7: I know there was a Windows compatibility thing for a while, but I thought Parthi had fixed it. Apr 04 13:46:09 can we please get it published and update bbb.io/getting-started to use it? Apr 04 13:46:18 next step is adding support for BeagleBone AI, of course. Apr 04 14:52:24 jkridner: I think remaining things are to get the usb mass storage done by kernel instead of uboot, plus adding tests to the module as there are not any currently :( Apr 04 14:54:16 And the tcp/ip proxy server also needs to be disintegrated from the bootloader server module. Separate modules for both would make more sense or using it as some kind of plugin Apr 04 14:57:23 I can look into the other things later this week, but would need some help on getting a uboot/kernel build for usb mass storage Apr 04 14:59:54 ravikp7: did you see my buildroot setup using NETCONSOLE? I think that provides you a fairly direct way of booting the kernel and can be configured to run mass storage from the kernel in a ramdisk.... with your other changes, it could also provide a recovery console. Apr 04 15:01:05 I didn't think the proxy would really get in the way. couldn't it essentially just be turned off? and, if the target isn't trying to get out to the world, does listening on the ports really make a difference? Apr 04 15:01:59 u-boot UMS is trivial, no? if you use my NETCONSOLE demo setup, you'd just send the 'ums' command to u-boot. Apr 04 15:02:48 'ums 0 mmc 1' Apr 04 15:02:50 Uboot ums was very slow for flashing, right? Apr 04 15:03:14 (ums 0 mmc 0 for PocketBeagle) Apr 04 15:03:15 it is very slow, yes. Apr 04 15:03:27 I guess I could get back into buildroot and build the image. Apr 04 15:05:14 The proxy dependencies needs some native modules to be build, like winpcap on windows, so without it the modules couldn't be loaded. Apr 04 15:05:30 I think, I'd have to take a look again into it Apr 04 17:35:39 Hi I am trying to program the beagle bone to read and write data over serial port , it's supposed to write first , then wait for a response and read it, The other device which is a microcontroller is not fully functional yet , would it be possible to test if the program is working through Putty , if the microcontroller is not ready yet? Apr 04 17:37:02 What makes you think that wouldn't work? Apr 04 17:39:01 I think it would work It's just I'm a little confused. Apr 04 17:39:52 I think I am unable to test the program on the laptop, the only way is to run it on the beagle bone right ? Then would I have to install putty on the beagle bone or how does this work? Apr 04 17:39:52 for tx/rx lines that's fine for debugging, but if you use cts/rtc lines you'd need more 'hardware' emulation.. Apr 04 17:40:15 sshd is running on the beagle by default Apr 04 17:41:20 Oh ok and there shouldn't be any issues If I use port /dev/ttyusb0 in my program right? I believe I can either use 0 or 3? Apr 04 17:41:52 You "use" the one that "exists" for that "device"... Apr 04 17:42:10 Oh Ok , the beagle bone is programmed to write first , so I would have to open a session to read from it? and then another session to write to it? Apr 04 17:42:32 Hello! Apr 04 17:42:49 @Eng Apr 04 17:43:10 @EngineerNeil time to read and do more research.. Apr 04 17:43:18 One software/src code example/program can perform your tasks. Apr 04 17:44:03 Hi set_ , yes I think I am almost done with the program actually , in python Apr 04 17:44:39 pastebin has a pasting service. Show us your software and we/I can try to help you. Apr 04 17:44:49 I am doing that now rcn-ee , I ran into this link http://beaglebone.cameon.net/home/serial-ports-uart Apr 04 17:45:30 rcn-ee[m]: I am taking the helm of whatever this is, e.g. if you do not mind. Give me permission! Apr 04 17:46:15 I am creating an account Apr 04 17:46:24 EngineerNeil: paste w/ pastebin your Python/C or whatever software you are using to read/write. I/O! Apr 04 17:49:09 Pastebin! Apr 04 17:51:17 https://pastebin.com/FkUUjPXw Apr 04 17:53:42 Okay. Cough and hmm. I do not know everything that you are trying to do. Basics may help. I am big on basics. Apr 04 17:53:43 ... Apr 04 17:53:58 Do not leave yet. I can come up w/ something that will take a bit of time. Apr 04 17:54:00 Please hold. Apr 04 17:56:02 Do you have the BeagleBone Cookbook? Apr 04 17:56:25 I need the BBBW to read 4 numbers from the user , then write '9----' over the serial port, 9 appened to the user entry, the microcontroller sends back 4 characters, I get the last 2 characters and output the result to a textfile Apr 04 17:56:39 No Apr 04 17:56:59 I finally found the info. I was looking for the other day when you mentioned something about this idea. Apr 04 17:57:21 Yes Apr 04 17:57:29 I did Apr 04 17:57:38 In that book is a basic idea on connecting your BBB to an Arduino or TI Launchpad. Apr 04 17:57:52 Let me review it again. Apr 04 17:57:56 Please hold. Apr 04 17:58:03 oh that would be cool Apr 04 18:00:12 EngineerNeil: The actual software is in node.js/bonescript/JavaScript format. Does this matter? Apr 04 18:01:13 I haven't really used node.js but It might help Apr 04 18:02:00 I mean, if anything, you can test it to see if your BBB uart connection has communication w/ the Launchpad. Apr 04 18:02:25 Or, do you know for a fact that your BBB can communicate w/ your Launchpad? Apr 04 18:02:28 3.3v? Apr 04 18:03:04 set_: can you check this link for me http://beaglebone.cameon.net/home/serial-ports-uart from the table , they have the ports named as /dev/ttyO0 would it be possible I need to use this instead of /dev/ttyusb0 ? plus it seems port 0 I cannot use Apr 04 18:03:41 I really don't know but I am assuming since in other TI projects they are I believe Apr 04 18:03:44 I will try to find out Apr 04 18:04:43 I will get the software for the node.js/bonescript software and you can test it. If your LEDs blink on your end of the Launchpad, the BBB can communicate w/ it. Oh and do not attach 5v boards to your BBB if you have a UART tx/rx link. Apr 04 18:06:30 What should I do then? Apr 04 18:08:19 You run the program to find if your uart connection works. Apr 04 18:09:52 I have to run it on the Beaglebone right , and then open 2 terminals with putty and try to read and write from the port while the program is running on the BBB? Apr 04 18:11:26 Yes. Apr 04 18:11:38 If you have Win X, then use PuTTY. Apr 04 18:11:46 Yes. Apr 04 18:12:02 Also set_ could you please check this link for me? http://beaglebone.cameon.net/home/serial-ports-uart they are naming the ports as /dev/ttyO0 and /dev/ttyO1 and so on I am using /dev/ttyusb0 also it seems I cannot use port 0 could you verify that for me from that link? Apr 04 18:12:31 I cannot test the program on the laptop first? I have putty on windows but i dont have it on the Beaglebone Apr 04 18:12:56 You run your software on the BBB, e.g. python3 YourFileName.py or eatatjoes.c -g -o eatatjoes. Apr 04 18:13:27 You do not need PuTTY on your BBB. You run PuTTY on Win X. Apr 04 18:13:29 Only! Apr 04 18:13:42 Yes I don't think I can run my program now I think I need a main function to run it this way no? Apr 04 18:14:56 Heh? EngineerNeil: Heh? Apr 04 18:15:03 main function? Apr 04 18:15:15 So, you want to type up your software in c/c++? Apr 04 18:15:31 I think I am missing something. Apr 04 18:15:43 No no , as my program is now , I should be able to run it using python filename.py? Apr 04 18:16:32 python3 filename.py, sure! You can try it. Does it work? Apr 04 18:17:54 I still don't have the file on the BBB Apr 04 18:17:59 EngineerNeil: Do you need .ino files or .py files or .c or .cpp? Apr 04 18:18:02 Oh Apr 04 18:18:12 Put the file on your BBB and save it. Apr 04 18:18:33 How Do I put it through SSH? Apr 04 18:18:46 Are you on Win or Linux Desktop? Apr 04 18:18:53 Blastoff! Apr 04 18:19:09 I have both but I am logged in on windows now , i can log off and log in to linux if necessary Apr 04 18:19:32 Use PuTTY on Win. ssh debian@xxx.xxx.x.xx on Linux. Apr 04 18:20:04 Regenerate, right? Apr 04 18:20:12 You are working on a regenerative model? Apr 04 18:20:35 What is that? Apr 04 18:20:40 Forget about that. Apr 04 18:21:11 I think it is called AI, i.e. code that codes code. Apr 04 18:22:01 You mean so that the program runs automatically on start up? Apr 04 18:22:11 No but you can do that too! Apr 04 18:22:34 Could you please explain how ? I am curious to know Apr 04 18:23:29 EngineerNeil: I think something is holding you back. Look here for news on .service files: https://www.freedesktop.org/software/systemd/man/systemd.service.html. Apr 04 18:24:50 If I do that , and let the user enter the input through the website and I get the input from there instead , theoretically I won't need it to be connected to any computer , just have it powered and connected to WIFI that would be amazing Apr 04 18:26:53 If I want to connect to the BBB serial port on putty do I connect to /dev/ttyusb0 or /dev/ttyO0 do you know? Apr 04 18:27:29 EngineerNeil: Type this in your terminal: Apr 04 18:27:41 config-pin p9.21 uart Apr 04 18:27:49 config-pin p9.22 uart Apr 04 18:27:59 Type those two commands. What happens? Apr 04 18:28:56 EngineerNeil: Can I shorten your name to il? Apr 04 18:30:06 yes , that's weird I can't connect not even through the browser Apr 04 18:30:26 Use PuTTY on Win. Apr 04 18:30:56 dang. bbl. Sorry EngineerNeil/il. I will chat w/ you later. I am so sorry. Apr 04 18:31:05 Yes I am but it says connection time out , I restarted it Apr 04 18:31:20 ok see you later Apr 04 18:32:14 https://pastebin.com/15UYdNdD is the software for your .ino file for Energia on the Launchpad. Apr 04 18:32:41 Just use that to set up your Launchpad or change some of it so that it is not verbatim. Apr 04 18:34:34 I am pretty sure that book, BeagleBone Cookbook, was typed up by Yoder & Kridner. Apr 04 18:34:39 Yep. Apr 04 18:35:36 I am sure you can configure to change that software. When I get back, I will get you set up w/ some src code for the UART Channel on your BBB. Apr 04 18:35:41 I can connect to the BBB now Apr 04 18:36:03 Thanks after how long approx.? Apr 04 18:36:33 I am still confused what the ports are named on the BBB I don't know if you saw the link I sent earlier Apr 04 18:38:18 I wrote config-pin p9_21 uart Apr 04 18:38:41 No error but doesn't look like anythnig happened lol do I do the same for 22? Apr 04 18:41:44 debian@beaglebone:~$ ls -l /dev/ttyO* lrwxrwxrwx 1 root root 5 Apr 4 18:29 /dev/ttyO0 -> ttyS0 lrwxrwxrwx 1 root root 5 Apr 4 18:29 /dev/ttyO1 -> ttyS1 lrwxrwxrwx 1 root root 5 Apr 4 18:29 /dev/ttyO2 -> ttyS2 lrwxrwxrwx 1 root root 5 Apr 4 18:29 /dev/ttyO3 -> ttyS3 lrwxrwxrwx 1 root root 5 Apr 4 18:29 /dev/ttyO4 -> ttyS4 lrwxrwxrwx 1 root root 5 Apr 4 18:29 /dev/ttyO5 -> ttyS5 Apr 04 18:42:05 dang that's not readable Apr 04 18:48:12 Hello all , can anybody help? when I run ls on the Beagle bone , I can see ttys0 ttys1 ttys2 .. I didn't before does that mean I can use the serial ports now? also In my program I have the port named as /dev/ttyusb0 , would I have to change that to /dev/ttys0 ? Apr 04 18:49:40 there's more to using the serial ports than just seeing the interfaces... you still have to make sure the pin muxes are correct. you would need to point your code to the right port. Apr 04 18:50:13 case matters, to it would be /dev/ttyS0.... but that one is used by the console by default. Apr 04 18:51:18 In my program I port it to /dev/ttyusb0 , can I change it to S0 or is it a problem if it's used by the console? Apr 04 18:54:12 I am also confused about something , If I run the program on the beagle bone , How can I use putty on my windows laptop to check what is being read and written by the beagle bone Apr 04 19:01:55 open another terminal in PuTTY, i.e. you can have more instances of your BBB running in PuTTY/ssh. Apr 04 19:03:24 or use a .service file and enable it w/ systemctl. Apr 04 19:04:57 connect your uart2 pins to your launchpad and use config-pin p9.21 uart && config-pin p9.22 uart. Apr 04 19:06:37 So, from BBB ---> uart2 pins "TO" Launchpad whatever pins. Which launchpad do you have again? Apr 04 19:12:39 or use /dev/ttyO1 or /dev/ttyO2 or whatever UART connection you want from your BBB. The BBB has four uart channels. Apr 04 19:12:40 ... Apr 04 19:15:34 Yep. Bum ESCs on my drone. All that cheap, cheap silicone and metal "makey-no-worky." Apr 04 19:16:43 That poor BBBlue just wanted to fly right. Apr 04 19:21:30 EngineerNeil: what are you even saying? just use ttyUSB0, ignore the ttyS* ports Apr 04 19:21:48 set_: he's not using a serial connection, the launchpad has an integrated usb-serial converter Apr 04 19:22:10 config-pin is of no need or use to him Apr 04 19:22:36 EngineerNeil: you don't need to config-pin anything, it is not relevant for you Apr 04 19:24:26 Oh. Got it. Apr 04 19:24:39 So, what is the issue? Apr 04 19:25:23 zmatt: Does he not know what to call the UART channel on the BBB? Apr 04 19:26:10 lsusb? Apr 04 19:26:55 Or is it that the communication b/t the two, BBB and Launchpad, are not connecting? Apr 04 19:27:10 EngineerNeil: "I think I am unable to test the program on the laptop, the only way is to run it on the beagle bone right ?" nope, like I said before it should work fine on any random linux system Apr 04 19:28:04 set_: I have no idea what his issue is, I don't see him describing any issue (but I haven't read scrollback in any detail, nor do I feel like doing so) Apr 04 19:28:41 Do not. Most of what he stated or what he asked was not voluntary. He did paste a thing of src code in Python. Apr 04 19:28:52 That was voluntary. Apr 04 19:30:01 zmatt: From what I understand, he just wants to read and write to files w/ 'a' and 'w' or blah. I actually have no idea. Apr 04 19:30:21 Speaking of. Where did he go? Apr 04 19:30:43 Search Party: "BBB users!" Apr 04 19:38:59 Dang it. Apr 04 19:39:25 I may have spoke abruptely. He is probably mad now. Apr 04 19:42:12 Hi , I have a python program on my laptop that I would to get onto the Beaglebone , what is the best way? I don't want to create a file through SSH and retype the whole program Apr 04 19:42:48 scp YOURFILE BBB-HOSTNAME Apr 04 19:43:00 scp YOURFILE BBB-HOSTNAME: Apr 04 19:43:22 or ip address instead of hostname Apr 04 19:43:48 the first one will actually just act like "cp" ... you want the : Apr 04 19:44:29 there are lots of other best ways, too Apr 04 19:45:06 do I have to navigate to the folder where the file is first , then write scp filename BBB-192.168.7.2 ? for example Apr 04 19:48:22 filename.py Apr 04 19:48:35 you could write the full path to the file, instead Apr 04 19:48:47 scp /home/USERNAME/SOMEDIRECTORY/filename.py 192.168.7.2: Apr 04 19:48:59 got you thank you Apr 04 19:49:09 I will log in to Linux and try it out I will be back , thanks Apr 04 19:49:11 or a relative path: scp SOMEDIRECTORY/filename.py 192.168.7.2: Apr 04 19:49:26 ok Apr 04 19:49:32 I'll be right back Apr 04 19:51:37 scp blah/filename.py 192.168.x.xx: <--- make sure that colon is located after your last numerical value on the address. Apr 04 19:59:44 Hi , I tried doing scp path to file BBB-192.168.7.2 Apr 04 20:00:04 it says cp: cannot stat Apr 04 20:00:36 is BBB-192.168.7.2 a valid hostname? Apr 04 20:00:48 Oh sorry hold on I did a mistake Apr 04 20:00:59 you either want ip address or hostname Apr 04 20:01:20 If I use the ip is BBB- still needed Apr 04 20:02:07 Ok It didn't return any error Apr 04 20:02:15 I'm going to check if the Beaglebone has the file Apr 04 20:02:21 : Apr 04 20:03:08 It doesn't look like it , I did ls on the BBB Apr 04 20:04:13 : Apr 04 20:06:16 But after I do ls on the laptop , I see BBB-192.168.7.2 that Apr 04 20:06:21 os weird Apr 04 20:06:29 EngineerNeil: you should really learn to read what people say Apr 04 20:07:36 read what? Apr 04 20:07:36 if neither the source nor destination contains a colon, scp just acts like cp Apr 04 20:08:00 and "BBB-192.168.7.2" is neither a valid hostname or nor a valid IP address Apr 04 20:08:04 EngineerNeil: sorry, my initial typo probably lead you astray Apr 04 20:08:24 yeah but set_ said: < set_> scp blah/filename.py 192.168.x.xx: <--- make sure that colon is located after your last numerical value on the address. Apr 04 20:08:42 * vagrantc nods Apr 04 20:08:45 so like I said, he needs to learn to read what people sa Apr 04 20:08:46 say Apr 04 20:09:21 details do matter here :) Apr 04 20:09:58 I did not receive this message , all I can see from set_ is : Apr 04 20:10:04 just a colon Apr 04 20:10:15 But now that I read your message , I understand , thanks Apr 04 20:10:28 that's something he said after that to remind you again of the : Apr 04 20:10:31 (I assume) Apr 04 20:11:11 I logged in after that so I did not get it Apr 04 20:11:15 I only got the : Apr 04 20:11:56 But anyway let me try that out Apr 04 20:13:31 in general it's scp localpath hostname:remotepath to copy a file to a device and scp hostname:remotepath localpath to copy a file from a device, where hostname can (as always) also be an IP address, and the destination can either be a filename or a directory (in which case it will create the file in that directory, with the same name as the source file) Apr 04 20:14:03 the web interface to freenode really seems to set up new people for failure :( Apr 04 20:14:27 yup Apr 04 20:14:36 hard enough teaching people to stick around a while, having it auto-disconnect regularly just adds insult to injury Apr 04 20:16:39 It asked me for a password but It's not accepting my password Apr 04 20:17:08 That is correct. Use : after your address. Apr 04 20:17:18 oh right, use username@hostname instead of just hostname Apr 04 20:17:24 i.e. debian@192.168.2.7: Apr 04 20:17:26 ok Apr 04 20:17:30 thanks Apr 04 20:17:42 otherwise it'll default to your local username (same as ssh) Apr 04 20:17:42 7.2 Apr 04 20:17:45 My goof! Apr 04 20:17:46 .7.2 yes sorry Apr 04 20:18:49 Worked , thanks Matt Apr 04 20:18:57 I just saw what I typed. I should have typed scp filename.py debian@192.168.x.xx: like vagrantc did. Apr 04 20:19:15 I am curious to know how old are you , you seem to be a very intelligent guy Apr 04 20:19:20 Matt Apr 04 20:19:34 96? Apr 04 20:19:38 Hhahahaah Apr 04 20:19:45 you could also create a ~/.ssh/config file containing https://pastebin.com/6GtuL4S7 ... then afterwards you can just ssh or scp to "bbb" instead of "debian@192.168.7.2" .. saves a bit of typing Apr 04 20:19:48 My guess 43 lol Apr 04 20:20:06 Nice! Apr 04 20:20:15 35 Apr 04 20:20:22 I am older! Apr 04 20:20:34 I am so old and inequivalent. Apr 04 20:21:29 just create a text file there and paste that in there? cool tip thank you Apr 04 20:21:56 You too set! Apr 04 20:22:54 It gave me an error for import serial , it means pyserial is not installed right? Apr 04 20:23:29 Right. Apr 04 20:23:49 yeah, just do pip3 install pyserial or sudo apt install python3-serial Apr 04 20:23:53 just pip install pyserial would do? Apr 04 20:24:06 pip3, just like python3 Apr 04 20:24:07 ok Apr 04 20:24:24 How can I check If I have pip 3 Apr 04 20:24:43 DO NOT ---> sudo pip install <--- b/c it causes lapses in memory Apr 04 20:24:54 it'll say command not found if you don't. in that case sudo apt install python3-pip Apr 04 20:24:55 Ok Apr 04 20:25:13 and like set_ said in a really weird say, you generally don't want to use "sudo pip3" Apr 04 20:25:25 (you generally don't want to use "pip" at all, since you generally don't want to use python2) Apr 04 20:25:47 *weird way Apr 04 20:25:56 Yes I remember that from last time , I am not using that anymore Apr 04 20:26:11 Dang it. I meant pip3 install. Sheesh. Apr 04 20:26:21 lol Apr 04 20:26:25 EngineerNeil: can you identify the serial port device your peripheral device is attached to? Apr 04 20:26:36 ok pyserial installed Apr 04 20:26:46 raffo: ttyUSB0 Apr 04 20:27:15 When I do ls on the beagle bone , it shows ttyS0 , I don't know if it should be that instead Apr 04 20:27:32 EngineerNeil: it should show up as ttyUSB0 or ttyACM0 on the beaglebone Apr 04 20:27:36 if not, then something is wrong Apr 04 20:27:39 lsusb, right? Apr 04 20:27:49 lsusb doesn't show useful information Apr 04 20:27:53 he could use minicom to talk to the device. Apr 04 20:27:54 (in this case) Apr 04 20:27:55 Northing is connected to it yet maybe that's why? Apr 04 20:28:03 Ha! Apr 04 20:28:04 EngineerNeil: obviously Apr 04 20:28:05 Just the USB to the laptop the microcontroller is not connected Apr 04 20:28:18 Ok Apr 04 20:28:43 are you in a terminal console for your beaglebone? Apr 04 20:28:52 Yes Apr 04 20:29:11 commands! Apr 04 20:30:11 Wow, it is working Apr 04 20:30:50 CC1310, right? Apr 04 20:31:07 bring up the system log and see if you see kernel messages as you connect the peripheral: journalctl -n20 -f Apr 04 20:32:01 Yes but the CC1310 is not connected somebody else is taking care of programming it , we have a meeting in 2hours if he has his program ready we can definitely test it Apr 04 20:33:05 Yea boy! Apr 04 20:33:08 Two Hours! Apr 04 20:33:37 EngineerNeil: if not, he should prioritize the serial communication. even if it's just dummy data, as long as it has the right format Apr 04 20:33:52 So, this board is the 6LOWPAN version launchpad. Nice. Apr 04 20:39:36 So, you have the MSP432, too? Apr 04 20:41:46 I just have the cc1310 launchpad Apr 04 20:42:15 I tried to make an exception so that if no usb is connected dummy data is passed Apr 04 20:42:40 I have updates on my code set , would you like to check it out i'll throw it in pastebin Apr 04 20:42:45 that doesn't let you test serial communication though Apr 04 20:43:03 I don't feel any particular urge to check it out Apr 04 20:46:11 set_: Set checked my code earlier I was actually sending this to him sorry I didn't write his name Apr 04 20:48:17 Well , if you want here it is , https://pastebin.com/ATpKHc36 no obligations Matt or _set :P Apr 04 20:48:53 you could make the udev create a symlink if it is plugged in EngineerNeil Apr 04 20:49:12 so /dev/cc1310 Apr 04 20:50:15 btw, please just spell people's nicknames correctly. most irc clients have tab completion for nicknames to reduce the effort to do so. Apr 04 20:52:54 Rickta59 How do I do that? Apr 04 20:53:13 use the vid pid and some entries Apr 04 20:54:21 https://github.com/stm32duino/Arduino_Tools/blob/master/linux64/49-stlinkv2-1.rules there is an example calling the symlink "stlinkv2-1_%n" .. Apr 04 20:54:52 lsusb will show you the vid pid of the cc1310 Apr 04 20:55:01 http://beaglebone.cameon.net/home/serial-ports-uart according to this link , uart0 is coupled with the serial console . Would there be any issues using it or am I better off picking a different one Apr 04 20:55:03 you plug those numbers in and change the name Apr 04 20:55:22 Ok thank you very much Apr 04 20:55:25 are you using a custom board? Apr 04 20:55:29 or a launchpad? Apr 04 20:55:36 Launchpad Apr 04 20:55:50 I have a MSP432, a couple, but not the 6LOWPAN version. I keep thinking how I can incorporate this software to work w/ the the MSP432. Apr 04 20:55:51 ... Apr 04 20:56:01 Two hours is not much time. Apr 04 20:56:48 I have the FRAM version and a G2 version. Apr 04 20:57:09 What does it actually mean that UART0 is coupled to the serial console? Apr 04 20:57:22 mind shows up as 0451:bef3 Apr 04 20:57:24 mine Apr 04 20:58:47 might be tricker though ... I forgot those have 2 cdc acm devices Apr 04 20:59:43 are you using a ftdi dongle? I notice you have ttyUSB0 Apr 04 21:00:02 the launchpad has ttyACM devices Apr 04 21:00:35 * looks at his board cc1310 lp, rev 1.3 Apr 04 21:00:50 Oh. You have one. Dang it. Apr 04 21:01:08 Let Rickta59 help you, EngineerNeil. Apr 04 21:01:09 zmatt still there? Apr 04 21:01:36 Yes please Apr 04 21:02:51 It says on the link I sent earlier that UART0 is enabled by default and it's coupled to the serial console , the other ports are not enabled by default , I am trying to undestand what that means and whether there are issues with using it Apr 04 21:03:04 EngineerNeil: Google that question. See what pops up. Apr 04 21:03:12 Go to TI.com and type it in. Apr 04 21:03:38 Did you review the SRM or whatever TI called their RM? Apr 04 21:03:54 But this has to do with the BeagleBone, http://beaglebone.cameon.net/home/serial-ports-uart Apr 04 21:04:37 usually on a lp board with an xds110 (the onboard cmsis-dap device), ttyACM0 is the jtag, and ttyACM1 is the virtual com port connected to the chip Apr 04 21:04:46 * the chip in this case is the cc1310 Apr 04 21:04:57 Boingo! Apr 04 21:05:09 I do not know why but that makes me happy. Apr 04 21:05:28 What does Jtag mean ? Sorry I am still a noob Apr 04 21:05:46 Google! Apr 04 21:05:59 So do you advise to keep it as uart0 in my program Apr 04 21:06:20 if you are plugging the cc1310 launchpad into the Beaglebone it doesn't use the BBB tty .. it provides its own on the launchpad and the beaglebone enumerates that as ttyACM0 and ttyACM1 Apr 04 21:07:05 oh interesting Apr 04 21:07:10 * same goes for an msp432 Apr 04 21:07:16 Aw. Apr 04 21:07:25 msp432 launchpad Apr 04 21:07:43 So I will have to have ttyacm0 in my program or ttyacm1 depending where it's coming from the CC1310 program? Apr 04 21:07:55 Is it wrong to have it as ttyusb0 in my beaglebone program Apr 04 21:08:26 unless you have a usb dongle that is plugged into the cc1310 yes it is wrong Apr 04 21:08:30 I was thinking I will have to deal with one port only :/ Apr 04 21:08:43 I was wrong, dang it. Again. My MSP boards are 430 and not 432s. Apr 04 21:08:48 * ftdi, prolific, etc Apr 04 21:09:05 I ordered an ftdi didn't get in yet , what about putty? Apr 04 21:09:27 Ok I will have to change usb to acm when the CC1310 is plugged in correct? Apr 04 21:09:46 * i came in to this thread late Apr 04 21:09:58 you are planning on always using the launchpad? Apr 04 21:10:20 Yes the launchpad will be connected to the beagle bone always , but not it is being programmed by my teammate Apr 04 21:10:36 does the code on the cc1310 only use one serial port? Apr 04 21:11:11 Let me check, I can post the code on pastebin if you like? both mine and his Apr 04 21:11:19 ok .. Apr 04 21:11:22 if it uses only one port Apr 04 21:11:31 then yes you have to recode for the ttyACM1 Apr 04 21:11:38 why did you buy the ftdi? Apr 04 21:11:49 Here is mine https://pastebin.com/ATpKHc36 Apr 04 21:12:00 i saw that, which is why i was commenting Apr 04 21:12:09 Just in case I needed to debug , for this time or in the future Apr 04 21:12:22 Oh , so Is ACM0 problematic? Apr 04 21:12:23 you know you can debug with openocd and the cmsis-dap Apr 04 21:12:35 ttyACM0 is the cmsis-dap interface Apr 04 21:12:43 it is a debugger Apr 04 21:13:20 I like that the boards work w/ 3.3v that the BBB feeds them. Apr 04 21:13:24 Oh so I cannot use that one , that was what I was trying to find out ,in the link they said it's coupled with the serial console , but I didn't understand what that meant then Apr 04 21:13:29 openocd -f interface/cmsis-dap.cfg -target/ti-cc1310.cfg .. athought those are probably not the names Apr 04 21:14:16 you could even debug from you desktop through the network Apr 04 21:15:12 * or not .. i don't see a cc1310 target for openocd .. Apr 04 21:15:17 sorry to get your hopes up Apr 04 21:15:34 I changed usb0 in my program to ACM1 Apr 04 21:16:01 No worries , does this command install openocd Apr 04 21:16:31 which command? Apr 04 21:16:42 it isn't a newbie exercise Apr 04 21:16:52 probably better to plug an ftdi in and do printf Apr 04 21:17:26 * looks like the xds1110 and the cc1310 would be advanced efforts Apr 04 21:17:32 Here is the CC1310 code https://pastebin.com/HPTee6X6 Apr 04 21:18:19 openocd -f interface/cmsis-dap.cfg -target/ti-cc1310.cfg Apr 04 21:18:41 no that doesn't install Apr 04 21:18:52 and after i typed it I went to look for the cc1310.cfg Apr 04 21:18:55 and it doesn't exist Apr 04 21:19:08 if you want to explore this the google words are probably Apr 04 21:19:20 I don't know it is a little confused , so TTys0 translates to ttyACM0 and it is reserved for debugging Apr 04 21:19:23 site:e2e.ti.com "openocd" "cc1310" "xds110" Apr 04 21:20:07 uart = UART_open(Board_UART0, &uartParams); Apr 04 21:20:21 that line determins which pins are using the cc1310 Apr 04 21:20:40 not looking at the schematic, i'd guess that is the pins wired to /dev/ttyACM1 Apr 04 21:21:27 http://www.ti.com/tool/LAUNCHXL-CC1310 start there Apr 04 21:21:28 I hope so I changed my pthon program from USB0 to ACM1 instead Apr 04 21:21:31 find the schematic Apr 04 21:22:24 on the bbb .. do tail -f /var/log/syslog Apr 04 21:22:28 unplug the board Apr 04 21:22:32 replug the board Apr 04 21:22:37 it will tell you the name Apr 04 21:22:51 and if for some reason a host python script hangs up the port Apr 04 21:23:02 it may actually get a different number when you plug it back in Apr 04 21:23:11 Ok I will try that when I have the board , we are meeting in 1 hour he might have his program ready the one I sent you is not uptodate Apr 04 21:23:23 so it isn't always going to be /dev/ttyACM0 and ttyACM1 .. Apr 04 21:23:27 but most likely will Apr 04 21:23:46 in any case you want the last one Apr 04 21:23:47 ok , if not then I will have to maybe add exceptions in my pthon program? Apr 04 21:24:30 what does this command do? tail -f /var/log/syslog Apr 04 21:25:00 says show me the last lines of the syslog Apr 04 21:25:10 and keep checking it and show me any new data Apr 04 21:25:35 it's your system log. sometimes it is /var/log/messages. Apr 04 21:25:36 i guess a more BBB way of doing it would be the journal Apr 04 21:25:49 I just did it the microcontroller was not connected it did some stuff Apr 04 21:26:25 Sometimes fun ends in calamity. Enjoy but not to excess. Apr 04 21:27:09 lol Apr 04 21:27:29 But It's not fun when you don't understand what is going on , I still don't undestand what this does :( Apr 04 21:28:17 It printed a lot of stuff and it is still printing Apr 04 21:28:35 DHCP request pack usb stuff liek that Apr 04 21:29:18 hit ctrl-c to stop it Apr 04 21:29:26 it is showing you messages from the kernal Apr 04 21:30:05 it is reiterating the end of the long list of messages. Apr 04 21:30:29 I am going to try it too. Apr 04 21:30:42 What am I supposed to read from it I don't undestand Apr 04 21:30:54 this iss what you should see when you have a launchpad 1310 Apr 04 21:31:02 https://dpaste.de/5dT4/raw Apr 04 21:31:17 something like that Apr 04 21:31:25 won't be exactly the same Apr 04 21:31:45 but you get the idea that the BBB is acknowledging the device and shows you what the tty names are Apr 04 21:32:07 if the launchpad is connected to it , any launchpad? I got one but it doesn't have the C program on it Apr 04 21:32:21 probably Apr 04 21:32:28 ok if my teammate has his launchpad programmed i will try this command Apr 04 21:32:40 but i dont know if a blank launchpad will help m but I do have one Apr 04 21:32:59 that stuff is all being done by the tm4c1294 chip on the board Apr 04 21:33:15 * the tm4c chip is the xds110 Apr 04 21:33:46 ok so you are saying it should show something Apr 04 21:33:56 it is probably also handling the virtual comm port * i don't see a usb hub chip Apr 04 21:34:26 micro usb Apr 04 21:34:27 rcn-ee[m]: have you ever used f_tcm (under ConfigFS)? Seems Linux USB3 wants UAS and not bulk-only transport, and I think using tcm instead of just mass_storage is the right way to go. ... just pinged alan_o with the same question. :-) Apr 04 21:34:31 On the CC1310 Apr 04 21:34:49 there are 2 chips on the launchpad Apr 04 21:35:10 the tm4c1294 and the cc1310 .. * Apr 04 21:35:38 the tm4c is responsible for providing the debugger (ttyACM0) and the virtual com port (ttyACM1) Apr 04 21:36:01 the cc1310 doesn't do usb so its UART is connected to pins on the tm4c Apr 04 21:36:04 Yes I can see them looking at the launchpad Apr 04 21:36:08 which act as a passthru Apr 04 21:36:24 look at the launchpad schematics Apr 04 21:36:24 Oh Apr 04 21:36:55 Ok is that a problem for me Apr 04 21:37:05 i don't know Apr 04 21:37:16 seems like it is the solution for you :) Apr 04 21:37:57 to start ... Apr 04 21:38:06 i would just put a simple program on the cc130 Apr 04 21:38:31 one that sends a single 'U' out the serial port Apr 04 21:38:44 on the bbb .. connect to it with minicom or putty or screen Apr 04 21:38:57 that will verify you have the correct port Apr 04 21:39:00 then move on Apr 04 21:39:05 EngineerNeil: a lot of stuff get logged in the system log, you just need to learn to ignore the noise. try plugging/unplugging other things like a mouse so you get an idea of what to look for. Apr 04 21:39:15 sends out a single 'U' and waits a second Apr 04 21:39:17 over and over Apr 04 21:39:23 Yes , I am meeting with my team mate today , he most probably has his program ready, If I plug in his CC1310 later today to my beaglebone and run the command you gave me earlier , would i be able todetermine the port by that? Apr 04 21:39:41 i'm sure you will Apr 04 21:39:53 Ok I think that will be a lot easier Apr 04 21:39:58 If not then I will try that Apr 04 21:40:05 If he doesnt have it ready Apr 04 21:40:26 I have to go now thanks for all the info , talk to you all later Apr 04 21:41:40 Oh by the way Apr 04 21:41:54 Port UART 1 is not enabled by default right , I would have to enable it Apr 04 21:42:33 If I do ls in the main folder and I see ttys1 and ttys2 ... does it mean they are all enabled? Apr 04 21:50:39 when I enter tail -f /var/log/syslog , in the terminal window ttyusb() looks like that , it shows no port number Apr 04 22:04:22 post the log output. **** ENDING LOGGING AT Fri Apr 05 02:59:57 2019