LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 06-10-2013, 04:33 AM   #1
sushantbhangale
LQ Newbie
 
Registered: Aug 2012
Posts: 4

Rep: Reputation: Disabled
Not working on the ARM board


Code:
char buff[255];
        fd = open("/dev/ttyUSB0", O_RDWR | O_NOCTTY | O_NDELAY |O_TRUNC);
        if (fd == -1){
                printf("Can't open port!\n");
                return 1;
        }
        else {

                while (1)
                {
                        send(fd,"NULL");
                        char st[100];
                       memset(st,'\0',sizeof(st));
                         buff[0] = '\0';
                        send(fd, "AT\r\n");
                        sleep(1);
                        size = read(fd,buff,255);
                        printf("GOT:%s",buff);
                        if(buff[0]=='E')
                        {
                                return -1;
                        }
                }
 
Old 06-10-2013, 01:22 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Continue here:
http://www.linuxquestions.org/questi...rd-4175464834/
 
  


Closed 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

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Not Work on ARM board sushantbhangale Programming 1 06-05-2013 08:57 AM
Kernel Testing using LTP on Beagle board (ARM based Embedded Dev Board) Rajender.G Linux - Newbie 0 07-27-2011 05:19 AM
Need help about porting bind-9.7.0 to ARM board ligang Linux - Embedded & Single-board computer 0 05-29-2010 03:26 AM
Bluetooth on arm board not working mrmuds Linux - Embedded & Single-board computer 0 07-23-2009 02:39 AM
USB mouse not working on the ARM board. manjunathk Linux - Hardware 1 07-12-2005 05:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:17 AM.

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