Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-12-2012, 10:17 AM
|
#1
|
|
LQ Newbie
Registered: Dec 2012
Posts: 14
Rep: 
|
ARM Processor with Linux platform
Hello guys, i'm kinda new here, i wanna ask something about debian linux OS which i have it running in my ARM processor. I have one DSP processor connected to my ARM processor through UART and i used UC00B device (UART to USB converter) which is basically UART from the DSP processor connect to USB of my ARM processor. In order to run the DSP processor, i need to send a set of command to that particular device. Here,what i'm trying to ask is, what kinda of software could i used to send several set of command from the ARM processor to the DSP processor? Please help me out here as i'm kinda new to linux also. Thanks guys.
|
|
|
|
12-12-2012, 10:47 AM
|
#2
|
|
Moderator
Registered: Aug 2002
Posts: 10,682
|
Welcome to LinuxQuestions.
I assume we are talking about RS-232 UART communications. Depends on your needs but cutecom is a GUI application that can send binary as well as ASCII data.
|
|
|
|
12-12-2012, 10:13 PM
|
#3
|
|
Guru
Registered: Mar 2008
Posts: 8,526
|
Does this DSP device work in x86 linux? Is it an audio/sound card sort of deal?
|
|
|
|
12-13-2012, 01:45 AM
|
#4
|
|
LQ Newbie
Registered: Dec 2012
Posts: 14
Original Poster
Rep: 
|
Quote:
Originally Posted by michaelk
Welcome to LinuxQuestions.
I assume we are talking about RS-232 UART communications. Depends on your needs but cutecom is a GUI application that can send binary as well as ASCII data.
|
Yes i need to send some sort of command to the DSP processor through the serial port. Under Linux this serial port is known as /dev/ttyAM0. How do i write the command? i need to send something like this "0x250x230000CHK0xF5". 1 more thing is the DSP processor will reply back the same format command to the terminal, question is how to retrieve?
|
|
|
|
12-13-2012, 01:53 AM
|
#5
|
|
LQ Newbie
Registered: Dec 2012
Posts: 14
Original Poster
Rep: 
|
Quote:
Originally Posted by jefro
Does this DSP device work in x86 linux? Is it an audio/sound card sort of deal?
|
Thanks for replying. Please refer to reply i sent to michaelk. The DSP processor does not have any OS.
|
|
|
|
12-28-2012, 10:50 AM
|
#6
|
|
Moderator
Registered: Aug 2002
Posts: 10,682
|
Without knowing anything about the command protocol it is difficult say exactly what steps are required. I would assume that the DSP would automatically respond and the message will be displayed.
Since this isn't a pure binary command i.e CHK as part of the command you would type in the command and just press the enter key. My first choice is minicom since this is typically included with most distributions.
|
|
|
|
12-28-2012, 11:35 AM
|
#7
|
|
LQ Newbie
Registered: Dec 2012
Posts: 14
Original Poster
Rep: 
|
Quote:
Originally Posted by michaelk
Without knowing anything about the command protocol it is difficult say exactly what steps are required. I would assume that the DSP would automatically respond and the message will be displayed.
Since this isn't a pure binary command i.e CHK as part of the command you would type in the command and just press the enter key. My first choice is minicom since this is typically included with most distributions.
|
yes minicom helped me alot. but i need to combine this with PHP. is it possible? is it possible to send command using minicom through PHP?
|
|
|
|
12-28-2012, 11:45 AM
|
#8
|
|
Moderator
Registered: Aug 2002
Posts: 10,682
|
I've never tried nor do I know if it actually works but here is a php class for communicating with the serial port. Other languages may be better suited. What are you trying to accomplish?
http://code.google.com/p/php-serial/
|
|
|
|
12-28-2012, 07:11 PM
|
#9
|
|
LQ Newbie
Registered: Dec 2012
Posts: 14
Original Poster
Rep: 
|
Quote:
Originally Posted by michaelk
I've never tried nor do I know if it actually works but here is a php class for communicating with the serial port. Other languages may be better suited. What are you trying to accomplish?
http://code.google.com/p/php-serial/
|
i'm trying to control the terminal using php. is AJAX possible?
|
|
|
|
12-29-2012, 10:30 AM
|
#10
|
|
Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 5,283
|
Good rule of thimb is to learn the minimum amount possible in any one hardware job. Otherwise you end up ready for a home for the bewildered.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:12 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|