LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 12-12-2012, 10:17 AM   #1
Marvin_G
LQ Newbie
 
Registered: Dec 2012
Posts: 14

Rep: Reputation: Disabled
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.
 
Old 12-12-2012, 10:47 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,750

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
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.
 
Old 12-12-2012, 10:13 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
Does this DSP device work in x86 linux? Is it an audio/sound card sort of deal?
 
Old 12-13-2012, 01:45 AM   #4
Marvin_G
LQ Newbie
 
Registered: Dec 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
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?
 
Old 12-13-2012, 01:53 AM   #5
Marvin_G
LQ Newbie
 
Registered: Dec 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
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.
 
Old 12-28-2012, 10:50 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,750

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
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.
 
Old 12-28-2012, 11:35 AM   #7
Marvin_G
LQ Newbie
 
Registered: Dec 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
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?
 
Old 12-28-2012, 11:45 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,750

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
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/
 
Old 12-28-2012, 07:11 PM   #9
Marvin_G
LQ Newbie
 
Registered: Dec 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
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?
 
Old 12-29-2012, 10:30 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,373

Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Maiking linux server on ARM platform Fajkowsky Linux - General 1 11-13-2012 10:07 AM
Compiling/porting linux for arm on a platform santinelli.paolo Linux - Embedded & Single-board computer 2 01-30-2011 10:38 AM
How to Port Linux on ARM processor Pinkesh Linux - General 4 12-10-2009 02:23 PM
I'm confused again, Is an Arm processor the same as a MIPS processor? MrUmunhum Linux - Hardware 3 09-24-2009 04:47 AM
Linux on ARM processor knobby67 Programming 1 09-19-2009 07:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration