What kernel and image?

newer ones use config-pin to activate the UARTS and seem to have problems 
with some of the overlays.

On:  BeagleBoard.org Debian Image 2015-11-12 with kernel: 4.1.18-ti-r49 #1 
SMP PREEMPT Fri Feb 26 00:12:54 UTC 2016 armv7l GNU/Linux

It boots "cape-universal" and I enable UART1 wtih:
sudo config-pin P9.24 uart
sudo config-pin P9.26 uart

Before going too far, jumper RX to TX and test it with minicom, the default 
echo on will double type any keys you press in the console, and with echo 
off you get no response without the jumper and get the character with it 
installed.



On Thursday, May 19, 2016 at 10:26:44 AM UTC-5, Shaurabh Kumar Singh wrote:
>
> Yes i have already tried activating the serial ports as shown in the link 
> before. Still it did not seem to work.
>
> On Wednesday, May 18, 2016 at 4:46:20 PM UTC-4, Shaurabh Kumar Singh 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 Machine
>> Baudrate=9600
>> Databits=8
>> Stopbits=1
>> Parity=None
>> CR 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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/1d7a4fe9-bed4-4000-a62b-817c3375a0a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to