Dear Eric,

Thanks for all the information! I will read all the articles and videos. 
Now I have a small problem. I followed the video to map an image of 
Angstrom on my SD card, and boot the BBB with this system. However, when I 
try to connect the BBB to my mac through USB, the ip of the BBB won't be 
assigned automatically (it shows "self assigned IP", 169.254.51.158). Also 
I cannot ssh to it from Terminal. So I cannot get the control of the BBB 
from my computer. Do you know how to solve it?

Thanks!
Henry



在 2015年6月12日星期五 UTC-4下午10:46:34,Eric写道:
>
> As a quick hack, the hard button(s) may be easier with less code, but you 
> are right, using the soft button approach with software based menus is much 
> more flexible.  With the touchscreen attached, the beagle starts running 
> it's display on the touchscreen and enables the touch interface as if it 
> were a mouse.  what you will likely want to do is when the system starts 
> have it start your button menu interface.  that program will be the main 
> thing the user sees and by pushing certain buttons in the menu you create 
> each button causes a software action or conversely a software routine can 
> bring up a window or button.
>
> take a look at the following to get you started:
>
> https://en.wikipedia.org/wiki/PyQt
> https://wiki.python.org/moin/PyQt
> https://en.wikipedia.org/wiki/PySide
> https://en.wikipedia.org/wiki/PyGTK
> https://en.wikipedia.org/wiki/WxPython
> https://en.wikipedia.org/wiki/Tkinter
>
> https://www.youtube.com/watch?v=53oeJPKRttY
> https://www.youtube.com/watch?v=fqK8N48kPXs
> https://www.youtube.com/watch?v=0vvb7Kv59qA
> https://www.youtube.com/watch?v=8D_aEYiBU2c
>
> within python you ought to be able to use the python serial library and 
> one of the above libraries/toolkits to get your buttons working.  i.e. push 
> software button, execute routine that spews string over serial, return to 
> menu.
>
> Eric
>
> On Fri, Jun 12, 2015 at 2:33 PM, Henry Yongfan Men <[email protected] 
> <javascript:>> wrote:
>
>> Dear Eric, thanks for the reply! I’m planning to use soft button, not the 
>> hard button. Because in the end, I will end up adding many soft buttons 
>> with different names that can send different strings to the next device 
>> through serial port.
>>
>> Now I have very rookie questions: 
>> 1) I have connect the BBB to the computer, and I have opened the webpage 
>> of http://192.168.7.2, and can perform the scripts on the webpage text 
>> box; I have also opened Cloud9 IDE (http://192.168.7.2:3000/) and 
>> performed some programs. But I noticed that the Cloud9 access some path 
>> that the USB disk cannot find. My question is, how to get to the beagle# 
>> status 
>> before entering any command to modify the configuration of the serial port? 
>> From the terminal of the computer? Or Cloud9? Or webpage test box?
>> 2) It seems that when I connect the BBB to the back of the touch screen 
>> and turn it on, the board enters a system with touch control. So I suppose 
>> that I should run some GUI (some soft buttons) program from that system, 
>> instead of from computer via a USB cable. How to do that?
>>
>> Now I’m reading the book “Bad to the Bone: Crafting Electronic Systems 
>> with BeagleBone and BeagleBone Black”. It’s a very good book, but the 
>> progress seems to be too slow. I hope I could finish this by this weekend. 
>> But based on my background, there seems to be some barrier I should conquer 
>> first. So I really need some expert like you to instruct a little bit. Look 
>> forward to your reply. Thanks again.
>>
>> Henry
>>
>> 在 2015年6月12日星期五 UTC-4下午3:43:14,Eric写道:
>>>
>>> did you want to use soft buttons (buttons generated on the touchscreen 
>>> as needed in software) or hard buttons (buttons on the display that consist 
>>> of an actual hardware switch that causes a detectable contact closure) for 
>>> this?  For the soft buttons I'd look at Qt.  For the hard buttons, look at 
>>> how the beagle can edge detect an input and generate an interrupt based 
>>> upon that.  I'd be happy to look a bit further once you have an idea which 
>>> direction you want to go.
>>>
>>> Eric
>>>
>>> On Fri, Jun 12, 2015 at 12:32 PM, Henry Yongfan Men <[email protected]> 
>>> wrote:
>>>
>>>>
>>>> Dear all,
>>>>
>>>> I'm a complete newbie in this community. As a postdoc, I'm responsible 
>>>> of building a off-computer control system. I decided to use BeagleBone as 
>>>> the central controller. But since I have other academic jobs, I wish I 
>>>> could finish the project quick and dirty. So maybe I need some specific 
>>>> guidance on it.
>>>>
>>>> Now for the first version of the system, my idea is just have two 
>>>> buttons appearing the touch screen and when I press either of the buttons, 
>>>> the BBB will send out a string through the serial port. I have another 
>>>> device waiting for the string command to trigger some control, so the rest 
>>>> is already ready.
>>>>
>>>> I think this is rather easy, isn't it? But I spent about a whole day 
>>>> today trying to figure out how to send the string out, and still cannot be 
>>>> successful. Not to mention the touchscreen part. I have experience in 
>>>> Matlab and LabVIEW programming, a little C experience, no Javascript or 
>>>> Python, and now I have a BBB, a 7-inch touch screen, a USB cable, and a 5V 
>>>> 3A power supply. I can make the serial port with connectors to the board 
>>>> with no difficulty. I have tried to boot the board with the 5 power supply 
>>>> and the LCD screen hooked up, and I could see the operating system. So 
>>>> could anyone tell me how to step into this field with a relatively quicker 
>>>> method? Thanks!
>>>>
>>>> Sincerely,
>>>> Henry
>>>>
>>>> -- 
>>>> 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.
>>>>
>>>
>>>
>

-- 
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.

Reply via email to