Go to advanced search

by thivtulz
Thu Apr 04, 2013 12:48 am
Forum: Python
Topic: automatically run the python scripts
Replies: 1
Views: 499

automatically run the python scripts

how to run the python code once the RPi startup. I want the python scripts run automatically.Is there any way to do like this.Please help..I need help guys.
by thivtulz
Tue Apr 02, 2013 7:26 am
Forum: Python
Topic: python uart
Replies: 12
Views: 9004

Re: python uart

After i run this code the YAT terminal(PC) ask me to login..
Lyk tis..

<LF>raspberry login:
<LF>password:

if i login also i can't run the code.Help me please..
by thivtulz
Tue Apr 02, 2013 3:03 am
Forum: Python
Topic: python uart
Replies: 12
Views: 9004

Re: python uart

same problem can't receive from PC.I send data from RPi to PC(windows) can receive but reverse can't. RPi can't receive data from PC(windows)
by thivtulz
Mon Apr 01, 2013 8:11 am
Forum: Python
Topic: python uart
Replies: 12
Views: 9004

Re: python uart

Still i can't receive data from PC.Is there any other coding to receive data from PC.help me.How python can communicate with UART.
by thivtulz
Sun Mar 31, 2013 4:12 pm
Forum: Python
Topic: python uart
Replies: 12
Views: 9004

Re: python uart

yes my PC can receive Raspberry pi but couldn't send from PC.
by thivtulz
Sun Mar 31, 2013 6:43 am
Forum: Python
Topic: python uart
Replies: 12
Views: 9004

Re: python uart

i connect RPi to the PC using UART cable.That cable connect with the USB port.Then i use YAT terminal in my PC to send data from RPi by running the python code.But the problem is i can't receive data from PC.Please help me ..
by thivtulz
Fri Mar 29, 2013 1:20 am
Forum: Python
Topic: python uart
Replies: 12
Views: 9004

Re: python uart

the output is

Code: Select all

write data:Rasperry pi
read data: 
read data:
its continue looping.I can write something in my PC but can't receive data or input from PC.please help me.Don't know how to do.
by thivtulz
Thu Mar 28, 2013 9:29 am
Forum: Python
Topic: python uart
Replies: 12
Views: 9004

python uart

here this my coding.. import serial usbport = '/dev/ttyAMA0' ser = serial.Serial(usbport, 9600, timeout=1) ser.write("Raspberry pi\r\n") ser.timeout = 2 print ("write data = Raspberry pi") time.sleep(2) while True: response=ser.read() time.sleep=2 print (" read data: python \n") print (response) ser...
by thivtulz
Mon Mar 25, 2013 9:39 am
Forum: Python
Topic: UART problems
Replies: 1
Views: 463

UART problems

Here the python code ,, import serial usbport = '/dev/ttyAMA0' ser = serial.Serial(usbport, 9600, timeout=1) ser.write("Raspberry pi\r\n") x = "" while chr(3) not in x: x = ser.readline() print x ser.close() the errors after i ran the python source code.. File"hello.world.py", line 9, in <module> wh...
by thivtulz
Mon Mar 25, 2013 7:13 am
Forum: Other programming languages
Topic: UART on raspberry pi
Replies: 15
Views: 9224

Re: UART on raspberry pi

Is there the python code giving any errors; if not check UART connection cable between RPi and PC.
by thivtulz
Mon Mar 25, 2013 1:03 am
Forum: Python
Topic: UART
Replies: 30
Views: 8202

Re: UART

this is my code.. import serial usbport = '/dev/ttyAMA0' ser = serial.Serial(usbport, 9600, timeout=1) ser.write("Raspberry pi\r\n") x = "" while chr(3) not in x: x = ser.readline() print x ser.close() here the error after i ran the given source code... File"hello.world.py", line 9, in <module> whil...
by thivtulz
Fri Mar 22, 2013 8:59 am
Forum: Python
Topic: UART
Replies: 30
Views: 8202

Re: UART

sorry wrongly send..the error is TypeError: argument of type 'buitin_function_or_method' is not iterable
by thivtulz
Fri Mar 22, 2013 8:53 am
Forum: Python
Topic: UART
Replies: 30
Views: 8202

Re: UART

NameError:name'char' is not defined...there s any other way to solve the problem.??
by thivtulz
Fri Mar 22, 2013 7:51 am
Forum: Python
Topic: UART
Replies: 30
Views: 8202

Re: UART

already try to change and still same.no changes cannot read aso..please help me..don't know what to do.
by thivtulz
Fri Mar 22, 2013 2:03 am
Forum: Python
Topic: UART
Replies: 30
Views: 8202

Re: UART

import serial usbport = '/dev/ttyAMA0' ser = serial.Serial(usbport, 9600, timeout=1) ser.write("Raspberry pi\r\n") x = "" while 3 not in x: x = ser.readline() print x ser.close() after i run this code i got this error..TypeError: 'in <string>' requires string as left operand, not int... i wanna pri...
by thivtulz
Thu Mar 21, 2013 10:10 am
Forum: Python
Topic: UART
Replies: 30
Views: 8202

Re: UART

It's keep on loops. Duno how to solve it.
by thivtulz
Thu Mar 21, 2013 9:27 am
Forum: Python
Topic: UART
Replies: 30
Views: 8202

Re: UART

giving error....AttributeError:'Serial' object has no attrtibute 'writeline'
by thivtulz
Thu Mar 21, 2013 1:57 am
Forum: Python
Topic: UART
Replies: 30
Views: 8202

Re: UART

here the coding...

Code: Select all

import serial
usbport = '/dev/ttyAMA0'
ser = serial.Serial(usbport, 9600, timeout=1)
ser.write("Raspberry pi\n")
while 1:
ser.read("Welcome\n")
print ser.read()
ser.close()
when i type welcome in the terminal should display it on the raspberry pi board.
by thivtulz
Wed Mar 20, 2013 9:59 am
Forum: Python
Topic: UART
Replies: 30
Views: 8202

Re: UART

i want to read data from the YAT terminal and display it on my raspberry pi board.I can send data to the terminal from my raspberry pi board but i can't read data from the terminal.so i need the code to read data from the YAt terminal.i need python code to read data.
by thivtulz
Wed Mar 20, 2013 2:06 am
Forum: Python
Topic: Python and Arduino with Pyserial
Replies: 7
Views: 3672

Re: Python and Arduino with Pyserial

here the coding..

Code: Select all

import serial
usbport = '/COM47'
ser = serial.Serial(usbport, 9600, timeout=1)
still i cant read data from my PC.i want read the data from my PC and display it on raspberry Pi..please help me.. :( :( :( :( :( :(
by thivtulz
Wed Mar 20, 2013 2:04 am
Forum: Python
Topic: UART
Replies: 30
Views: 8202

Re: UART

here the coding..

Code: Select all

import serial
usbport = 'COM47'
ser = serial.Serial(usbport, 9600, timeout=1)
i cant read the data from my pc.I want read the data from pc and display on raspbery pi.please help. :( :( :(
by thivtulz
Tue Mar 19, 2013 9:15 am
Forum: Python
Topic: Reading keyboard input
Replies: 5
Views: 3086

Re: Reading keyboard input

please solve this problem to me..How to send data from PC to RPi using python code through the UART?Please help me on this.. :( :( :( :(
by thivtulz
Tue Mar 19, 2013 9:14 am
Forum: Python
Topic: Python and Arduino with Pyserial
Replies: 7
Views: 3672

Re: Python and Arduino with Pyserial

please help me on this.please solve my problems.. :( :(
by thivtulz
Tue Mar 19, 2013 6:24 am
Forum: Python
Topic: Reading keyboard input
Replies: 5
Views: 3086

Re: Reading keyboard input

How to send data from PC to RPi using python code through the UART?Please help me on this.
by thivtulz
Tue Mar 19, 2013 6:08 am
Forum: Python
Topic: Python and Arduino with Pyserial
Replies: 7
Views: 3672

Re: Python and Arduino with Pyserial

How to send data from PC to RPi using python code through the UART?Please help me on this.

Go to advanced search