I'm sorry, I should have explained a whole lot better my situation... I was trying to communicate with the e-puck through the serial communication libraries (for as much as I know bluetooth uses some kind of serial emulation). I see you directly use bluetooth libraries instead! I'll try to do the same in my code taking yours as a model. I'll let you know, thanks!
Davide Citando Alexandre Campo <[EMAIL PROTECTED]>: > Hi Davide, > > I did not really understand your whole email, but you are trying to > communicate with the e-puck and a pc, right ? > If this is your problem, then you can try to use the files in attachment... > > > e-puck side I send data in that way : > > char tmp[128]; > sprintf(tmp, "sending number %d \n", c); > btcomSendString(tmp); > > > I link my code with the btcom library attached. > > Pc side is a bit more complicated, so I put a whole tool that reads > data from an e-puck in attachment. > To be compiled using -lbluetooth flag for the linker. > > These things should make it easy for you to use bluetooth from pc to > e-pcuk. I think e-puck to e-puck is more easy and there are some > good examples in the > repository. > > Cheers, > alex. > > > > > On Sat, 15 Mar 2008 18:00:06 +0100 > Davide Donetto <[EMAIL PROTECTED]> wrote: > >> Hi, I'm here again >> I've got some problems communicating via bluetooth with the e-puck >> under linux in c++. >> First I've tried with LibSerial (http://libserial.sourceforge.net/) >> but never went over a certain point. Now I'm trying to use stdio and >> termios and all that stuff. I thought it could be an 'ANSIer' approach >> and work better with the e-puck, but I got stuck anyway. There are so >> many different options to test for the various tcflags! >> I've opened the port with these settings: O_RDWR | O_NOCTTY | O_NDELAY >> and set the c_cflag = B115200 | CS8 | CLOCAL | CREAD >> Am I going the right way? Did I miss something? >> Is there an example I could look at? >> >> Thanks >> >> Davide >> >> >> >> >> _______________________________________________ >> E-puck-user mailing list >> [email protected] >> https://mail.gna.org/listinfo/e-puck-user > _______________________________________________ E-puck-user mailing list [email protected] https://mail.gna.org/listinfo/e-puck-user
