tonggiang001:
I think my professor can accept the Web method because he only want a simple function for user.
Are you sure? Are these your professor's words that are calling for a USB connection?
tonggiang001:
"A system designed that simply has a series of buttons I can push to notify different people.
I can simply pushes the button to notify anybody. The system should be USB connectable to her PC to allow here to change the messages, phone numbers, email addresses, etc. easily through an application."
Do you have any clearly instructions or resources that I can look at.
I don't want to do the project for you, you should be doing your own work and research.
If you want to go with the bridge method using the the simple /data/put/ URL above, I think the links and class names I provided above should be enough to get you started.
If you want to make a web application and do it all on the Yun without a PC application (use a web browser on the PC) then take a look at the Bottle or Flask frameworks, or similar frameworks, as they can simplify things (even though they may be overkill for a project like this.) For example, the Bottle site has a sample to-do list application tutorial where it generates some simple web pages to display and set information, saving the data between runs in a simple database.
While not necessarily the simplest/fastest way to approach it because of the leaning curve, knowing what I know now (which in no way covers every possible method) my instinct on approaching a task like this is to do most of it in Python and Bottle (but that could just be because that is what I'm currently in the process of learning, and I like what I see so far.) I would use Bottle running on the Yun to develop a simple web app to take the place of the PC application, and allow configuring what each button does. That information is stored in a simple sqlite database, just like the Bottle tutorial to-do application. Then, the sketch on the Yun is looking for key presses, and when it finds one, it uses a Process object to run a Python script on the Linux side of the Yun, passing the key pressed as a parameter. The Python script takes the key number, looks up the contact information in the database, and sends the required email using the Python email package.
I'll help by pointing you the general direction, but I'm not going to give you code, nor am I going to give much more general information than this. If you have a specific question, I'll see if I can help, but I'm not going to answer a general "how do I do it?" type of questions - you need to research that on your own.