LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Hardware (http://www.linuxquestions.org/questions/forumdisplay.php?f=18)
-   -   ARM Processor with Linux platform (http://www.linuxquestions.org/questions/showthread.php?t=4175441149)

Marvin_G 12-12-2012 10:17 AM

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.

michaelk 12-12-2012 10:47 AM

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.

jefro 12-12-2012 10:13 PM

Does this DSP device work in x86 linux? Is it an audio/sound card sort of deal?

Marvin_G 12-13-2012 01:45 AM

Quote:

Originally Posted by michaelk (Post 4847825)
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?

Marvin_G 12-13-2012 01:53 AM

Quote:

Originally Posted by jefro (Post 4848179)
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.

michaelk 12-28-2012 10:50 AM

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.

Marvin_G 12-28-2012 11:35 AM

Quote:

Originally Posted by michaelk (Post 4858503)
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?

michaelk 12-28-2012 11:45 AM

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/

Marvin_G 12-28-2012 07:11 PM

Quote:

Originally Posted by michaelk (Post 4858550)
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?

business_kid 12-29-2012 10:30 AM

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.


All times are GMT -5. The time now is 08:47 AM.