Ask for a refund from ncsu.edu you have been cheated 

Sent from Yahoo Mail on Android 
 
  On Wed, May 18, 2016 at 4:46 PM, Shaurabh Kumar Singh<[email protected]> 
wrote:   I have been trying to communicate with a CNC machine through RS 232 to 
the Beaglebone Black. Following are the Serial Port settings at the 
MachineBaudrate=9600Databits=8Stopbits=1Parity=NoneCR only
When i tried connecting it to my desktop(windows 10-using python) directly(done 
without using BBB) and i set the same parameters i got the response from the 
machine like i had expected.
Although, when done using the BBB (debian), also using python, i just received 
the string command i sent to the machine. Following is the python code.
import Adafruit_BBIO.UART as UART
import serial, string
UART.setup("UART1")with 
serial.Serial(port="/dev/ttyO0",baudrate=9600,timeout=2) as ser: #i also tried 
mentioning databits and stopbits and other parameters but they still did not 
work        ser.write(b"Q100\r")        
c=ser.readline().decode("utf-8","ignore")        print(c)        ser.close()
This works all fine in windows(gives the serial no. as the output) but simply 
gives back     Q100    as output (same as input).
I was wondering if it could be due to the different OS on my laptop and BBB. 
Should i try installing windows ce on the BBB and work with that?

Thank you

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/8ea4c1d1-b702-4bcc-869b-b2106af130e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/82744158.5173824.1463622957605.JavaMail.yahoo%40mail.yahoo.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to