propellor c USb connection
I am having trouble having the propeller communicating with the pi, which is critical for my project. I have had success with transmitting from the propellor c to the pi using Libfd_serail writeStr function but cannot get the propeller to read from the pi. I have tried how it is done in the demo code but still come up empty. As always working demo code would be appriciated.

Comments
Does the demo you are using provide code for boyh sides of the connection?
Can you post the demo code?
/* Blank Simple Project.c http://learn.parallax.com/propeller-c-tutorials */ #include "simpletools.h" // Include simple tools #include "simpletext.h" #include "fdserial.h" int main() // Main function { // Add startup code here. fdserial *term = fdserial_open(31,30,0,115200); char datai,datao; int toob; //this portion here I took from the demo program readStr(term, datai, 80); sscan(datai,"%s",datao); writeStr(term, datao); pause(1000); }and now the python codeimport serial ser=serial.Serial("/dev/ttyUSB0",115200) while(True): inpt=raw_input("enter a number") ser.write(inpt) outpt=ser.read() print outptPs: I have used this python code before when I was using spin so I know it worksI've done serial communication a couple of time between Prop and Pi, using Spin and Python.
Are you sure that your serial port is on /dev/ttyUSB0 ?
I used ser = serial.Serial("/dev/ttyAMA0",115200)
#include "simpletools.h" // Include simple tools #include "fdserial.h" int main() // Main function { // Add startup code here. extern text_t *dport_ptr; // default port pointer char datai[80]; // an array of char i.e. a string simpleterm_close(); // close the default port dport_ptr = fdserial_open(31,30,0,115200); // get a new default port pointer putStr("Enter some text: "); // prompt getStr(datai, 80); // get some data putLine(datai); // print some data putLine("All done"); // program over, go relax. }