Dear William, The chip is Silabs CP2103.
For standard usage, for example, if I plug the chip via USB cable to a Windows PC, then the OS will ask me to install a driver for the CP201X. After installing the driver, there will be a new COM port in the device manager. Then I can setup the baud rate for the COM port, and start using it. But for Beaglebone Black, I don't know if there is a driver for this specific chip. So I thought this is not possible. But I found this: < https://fleshandmachines.wordpress.com/2012/05/05/beaglebone-and-usb-serial-converter/#comment-136 > In this post the BBB seems to be able to communicate through the CP2012 chip. So this gives me some hope. But I tried to connect the chip with the BBB with a standard USB cable, and there is nothing showing up when I cat the /dev/ttyUSB0. Do you think there is a way? Thanks! Best, Henry 2015-07-29 12:56 GMT-04:00 William Hermans <[email protected]>: > *1) I need my BBB to communicate with a device that has a Serial-USB chip, >> which means that the only physical connector is USB. Is it possible to use >> a USB cable to connect the BBB to that device and use serial command to >> communicate? Does BBB need to install any drivers to recognize this >> serial-USB chip?* >> > > I'd need to know which chip you're speaking of, and then will not > necessarily have a better answer. With that said, it sounds like you'd > need a driver for the chip / device, and then you would communicate over / > through this device via UART. There is however always libusb, but on the > physical layer, it sounds as though you would still be communicating via > UART anyway. > > >> *2) When coding the GUI program, I need multi thread functions. For >> example, some of the buttons doesn't work when I press one of the buttons >> ---- becasue the sub function when the button is pressed is being called, >> and the whole program is waiting for it to finish. But I need to have at >> least an emergency stop button. I don't know what is the easiest way of >> doing so.* >> > > Sounds like the called button press function is a blocking call. Perhaps > refactor these functions to only set flags. Then run a tight control > "loop", having the check done for button presses *first*. With priority on > your emergency stop button check / code. With all that said. it may behoove > you to read up on MISRA C https://en.wikipedia.org/wiki/MISRA_C, > especially if this project has to do with human safety. Or MISRA C++ . . . > > *I think we still need some experts like you to guide us on to be on the >> right track.* >> > > Thanks for the vote of confidence ! However I would not consider myself an > expert. Rather I'd consider myself a person who has perhaps had a good bit > of experience with Linux. Then who has been programing since the early to > mid '90's - As a hobby. Multiple languages, and mostly on Windows. Some > bare metal( No OS ), and some Linux programming experience - I'm working on > this now. I also do read *a lot* on various aspects related to programming. > So perhaps I do know *of* many things, but have no practical hands on > experience. Qt for example I've read quite a bit about, But only toyed > around with in my own code. For a little while. > > On Wed, Jul 29, 2015 at 1:40 AM, Henry Yongfan Men <[email protected]> > wrote: > >> Dear William, >> >> I think we still need some experts like you to guide us on to be on the >> right track. Because the deeper we go in, the more difficulties we are >> likely to encounter. And sometimes we have to step back, and start from the >> fundamentals. Because the coding is not that easily picked up from sideways. >> >> For example, now I'm facing two difficulties: >> >> 1) I need my BBB to communicate with a device that has a Serial-USB chip, >> which means that the only physical connector is USB. Is it possible to use >> a USB cable to connect the BBB to that device and use serial command to >> communicate? Does BBB need to install any drivers to recognize this >> serial-USB chip? >> >> 2) When coding the GUI program, I need multi thread functions. For >> example, some of the buttons doesn't work when I press one of the buttons >> ---- becasue the sub function when the button is pressed is being called, >> and the whole program is waiting for it to finish. But I need to have at >> least an emergency stop button. I don't know what is the easiest way of >> doing so. >> >> Please, if you would, share some of your ideas. Anything would be >> appreciated. Thanks! >> >> Best, >> Henry >> >> 在 2015年7月27日星期一 UTC-4下午6:13:43,William Hermans写道: >>> >>> *I think William is right about developing natively on the beaglebone. >>>> The GUI design could be done from other desktop and copied to BBB, or done >>>> natively. So are the cpp files (if you are using C++, I don't know how to >>>> do other languages like Python or bonescript). But all the program files >>>> (to me there are only four: mainwindow.h, mainwindow.cpp, mainwindow.ui, >>>> and mian.cpp) should be kept together into a single folder (the folder's >>>> name should be the project's name), and compiled and built by very simple >>>> command as follows: 1) qmake - project; 2) qmake; 3) make.* >>> >>> >>> Well more exactly *compile* natively. But I think you got the idea. As >>> for the devils advocate "thing" I know what I would have done, and it >>> probably had nothing to do with what either of you were trying to >>> accomplish. >>> >>> So what I would have done - Is that I would have forgotten about the >>> LCD, and tossed together a Nodejs app, and had the GUI on a remote web >>> browser page. Honestly I really do not care for javascript much, but if I >>> needed a super quick proof of concept - that probably would have been the >>> easiest route for me. For you two . . . no idea. >>> >>> Anyway, like I said, that does not sound like the direction that either >>> of you wanted to go. >>> >>> On Mon, Jul 27, 2015 at 1:55 PM, Yongfan Men <[email protected]> wrote: >>> >>>> Frank, thanks. The 'good sleep' really sounds ancient to me. But I love >>>> my wife and daughter, so everything that is in trade is worthy. >>>> >>>> Anyway, I'm glad that you feel more on track now. Let me know if you >>>> have any further questions (especially questions in detail) so that we can >>>> discuss and grow together. >>>> >>>> I'm also rookie in dealing with this little guy, but I'm confident that >>>> eventually both of us could be an expert on that because it's really a >>>> useful little thing. And FYI many start-ups are using BBB as the embedded >>>> systems in their products. For example, openqPCR < >>>> http://beagleboard.org/project/openqpcr/>. See the touch screen on the >>>> machine panel? We can do that soon, too! >>>> >>>> Have you read about a book that you can build a high-end home security >>>> system out of this BBB? I'm gonna do that when I build my own house in the >>>> future. I will. >>>> >>>> Henry >>>> >>>> 2015-07-27 16:31 GMT-04:00 Frank Rizzo <[email protected]>: >>>> >>>>> Henry, many thanks for the info and congrats on the new addition to >>>>> the family! >>>>> >>>>> Some of the pages of the book are available online and the example >>>>> section at the end is exactly the example I was looking for. I went ahead >>>>> and ordered it off Amazon Prime. >>>>> >>>>> Looks like installing QT4 and QT developer is all you really need on >>>>> the BBB to be able to run some quick GUI examples. This is great news!!! >>>>> >>>>> I hope to have something running this weekend. Once again, thanks for >>>>> your time and I hope you get some sleep in the coming weeks ;-) >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> 门 涌帆 (Men Yongfan), PhD >>>> BIOPIC building Peking University >>>> +86 18611230987 >>>> +86 10 62758323 >>>> [email protected] >>>> >>>> -- >>>> For more options, visit http://beagleboard.org/discuss >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "BeagleBoard" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> > -- 门 涌帆 (Men Yongfan), PhD BIOPIC building Peking University +86 18611230987 +86 10 62758323 [email protected] -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
