linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* serial port read working but not write.
@ 2004-07-24 23:36 suresh shenoy
  2004-07-26  7:24 ` Salomon, Frank
  0 siblings, 1 reply; 20+ messages in thread
From: suresh shenoy @ 2004-07-24 23:36 UTC (permalink / raw)
  To: linux-serial

Hi all,

  
   Frank, 
  
     I tried that test. It told me that hexdump was
not a option in dd. I dont know much about dd so i
read the man pages but could not figure out. 


   Secondly,

      I changed the interrupt to 0 but still the
numbers are increasing. 

      One thing that i did recognize is the baud rate
for send was wrong which i changed to 115200 and then
tried again but it still dint work. I am sending the
correct packets. There could be no errors there. Also
there is no parity in this program.

Thanks & Regards,
Suresh

________________________________________________________________________
Yahoo! India Careers: Over 65,000 jobs online
Go to: http://yahoo.naukri.com/

^ permalink raw reply	[flat|nested] 20+ messages in thread
* serial port read working but not write
@ 2004-07-24 14:39 suresh shenoy
  2004-07-24 15:11 ` Jan-Benedict Glaw
  0 siblings, 1 reply; 20+ messages in thread
From: suresh shenoy @ 2004-07-24 14:39 UTC (permalink / raw)
  To: linux-serial

Hi all,

  Firstly vijay's answer:
  
     The hardware has a firmware on it which is given
by the company which manufactured it.

     The system works fine in Windows. i.e i can make
the motor run in windows. The software was provided by
the company.

  Secondly

     After I run my read program i checked the port
settings.

     $ stty -F /dev/ttyS0 -a
       speed 115200 baud; rows 0; columns 0; line =0;
       .....................
       .....................
       flush = ^M; min = 200; time =0;
       -parenb -parodd CS8 -hupcl -cstopb cread clocal
       -crtscts 
       -ignbrk -brkint ignpar.....
       .....................
 
   Thirdly, 
  
      I ran the program to check the output buffer
[buffer sniffing]. 

       When i ran the read program the output was
always 0.

       When i ran the write program the output
increased to 1500-1900 and stayed there. 

    Lastly,

       I am yet to check the results of the port as
told by Frank. I will post it very soon.


Any suggestions.

Ciao
Suresh
 



________________________________________________________________________
Yahoo! India Careers: Over 65,000 jobs online
Go to: http://yahoo.naukri.com/

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Serial port read working but not write.
@ 2004-07-24  2:04 suresh shenoy
  0 siblings, 0 replies; 20+ messages in thread
From: suresh shenoy @ 2004-07-24  2:04 UTC (permalink / raw)
  To: linux-serial

Hi all,

  Thanks for such a quick response. I will mail you
the results of the test by this evening. I really
enjoyed this forum as the response was quick and
lively compared to some other forums.

Ciao
Suresh

________________________________________________________________________
Yahoo! India Careers: Over 65,000 jobs online
Go to: http://yahoo.naukri.com/

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Serial port read working but not write.
@ 2004-07-22 16:48 suresh shenoy
  2004-07-22 22:20 ` Lukasz Michal Rak
                   ` (3 more replies)
  0 siblings, 4 replies; 20+ messages in thread
From: suresh shenoy @ 2004-07-22 16:48 UTC (permalink / raw)
  To: linux-serial

Hi all,

   I am currently using redhat linux 9.0. I am working
with a hardware which senses some data and sends back
to the PC through serial port. It also can move a dc
motor using the same hardware. I am using POSIX serial
port programming for talking with the board. After
some struggles i was able to read the data from the
hardware device. But my current problem is that it is
not moving the motor when i send a command to the
hardware. Does anyone know the solution to this
problem. Please let me know if any piece of code or
any more information is required that i can furnish.

Thanks & Regards,
Suresh M Shenoy.

________________________________________________________________________
Yahoo! India Careers: Over 65,000 jobs online
Go to: http://yahoo.naukri.com/

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2004-07-28 20:08 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-24 23:36 serial port read working but not write suresh shenoy
2004-07-26  7:24 ` Salomon, Frank
2004-07-26  8:12   ` Jan-Benedict Glaw
2004-07-28 19:29     ` suresh shenoy
2004-07-28 20:08       ` Jan-Benedict Glaw
  -- strict thread matches above, loose matches on Subject: below --
2004-07-24 14:39 suresh shenoy
2004-07-24 15:11 ` Jan-Benedict Glaw
2004-07-24  2:04 Serial " suresh shenoy
2004-07-22 16:48 suresh shenoy
2004-07-22 22:20 ` Lukasz Michal Rak
2004-07-23  8:18 ` Justinas
2004-07-23  9:30 ` Salomon, Frank
2004-07-23 10:02   ` Jan-Benedict Glaw
2004-07-23 12:12     ` Salomon, Frank
2004-07-23 12:41       ` Jan-Benedict Glaw
2004-07-23 12:50         ` Salomon, Frank
2004-07-23 13:14           ` Jan-Benedict Glaw
2004-07-23 13:49             ` Salomon, Frank
2004-07-23 14:16               ` Jan-Benedict Glaw
2004-07-23  9:40 ` Jan-Benedict Glaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).