From: Rayjan W. <ray...@gm...> - 2006-07-12 22:35:00
|
Is it not possible to just pipe commands through the device file, like say /dev/bluetooth, and let the kernel (or module) figure the details out? Isn't that what the bluez stuff is for? Abstracting the actual hardware to be some blackbox. If not, why it be necessary to write all sorts of extra stuff for sockets and what-not in your main code? Especially if the bluetooth code would be rewritten any time you want other programs to use the bluetooth. Could an abstraction be made so it's easy to work with? How about some reusable library or something? Maybe I'm naive about how it all works ;-) -Ray > Message: 1 > Date: Wed, 12 Jul 2006 13:08:57 -0700 > From: "Sean Wheeler" <mod...@ho...> > Subject: Re: [Gumstix-users] bluetooth > To: gum...@li... > Message-ID: <BAY...@ph...l> > Content-Type: text/plain; format=3Dflowed > > I'll either be using C or C++. Is it much different using TCP/IP protoco= ls > for linux than, say, windows? Right now, the control computer will be a > windows machine, but my development computer is Linux. Thanks for the > comments, Miguel. > > -Sean > > > >From: Miguel Pincheira Caro <mig...@gm...> > >Reply-To: "General mailing list for gumstix users." > ><gum...@li...> > >To: "General mailing list for gumstix users." > ><gum...@li...> > >Subject: Re: [Gumstix-users] bluetooth > >Date: Wed, 12 Jul 2006 15:46:51 -0400 > > > >I think you dont need to use the bluez stack itself. It maybe more easy, > >to use the TCP/IP layer that set the bluez stack, and programing using > >regular TCP/IP Sockets on Linux.There are several tutorials. =A1 > >Wich language are you programming??? If you are programming in C , after > >some configurations steps on the programn , sending and reciving data > >trough sockets, would be as easy as read() and write(). > >Greetings > >Miguel > > > > > > > >Sean Wheeler escribi=F3: > > > I've pretty much given up on the null modem and its bag of woes. > > > Theoretically, I can accomplish everything I need with bluetooth (whi= ch > >I > > > know to work). The only problem is that I have no idea how to code > >using > > > the bluetooth stack. I can use hyperteminal to send to and receive > >files > > > from the gumstix, but not to write my own code to do the same. Here'= s > >what > > > I'm looking at: > > > > > > I want to be able to send and receive data from a "control computer" = to > >the > > > gumstix. The gumstix controls the robostix and tells it what the > >control > > > comuter wants it to do. So, as the control computer sends out its > >demands, > > > the gumstix takes it, sends it off to the robostix and then takes > >readings > > > from the robostix. This information is then passed back to the contr= ol > > > computer for analysis. > > > > > > The I/O between the gumstix and control computer needs to be wireless= , > >but I > > > can't seem to find any basic documentation about how to use bluez. > >There > > > doesn't seem to be anything useful included in the > >/buildroot/package/bluez > > > nor does the support site have much either. I'm pretty new to this k= ind > >of > > > programming (networking and such) so a good set of basic functions an= d > > > instructions would be ideal. Failing that, I'd just like to take a l= ook > >at > > > the source. Shouldn't I already have that? > > > > > > If anyone could help out here, I'd appreciate it greatly. Thanks. > > > > > > -Sean > > > > > > > > > > > > > > > > >------------------------------------------------------------------------= - > > > Using Tomcat but need to do more? Need to support web services, > >security? > > > Get stuff done quickly with pre-integrated technology to make your jo= b > >easier > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > >Geronimo > > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&d= at=3D121642 > > > _______________________________________________ > > > gumstix-users mailing list > > > gum...@li... > > > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > > > > > > > > > > > >------------------------------------------------------------------------= - > >Using Tomcat but need to do more? Need to support web services, security= ? > >Get stuff done quickly with pre-integrated technology to make your job > >easier > >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geroni= mo > >http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > >_______________________________________________ > >gumstix-users mailing list > >gum...@li... > >https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > > > > ------------------------------ > > Message: 2 > Date: Wed, 12 Jul 2006 13:20:34 -0700 > From: Ryan Rapetti <rjr...@uc...> > Subject: Re: [Gumstix-users] bluetooth > To: "General mailing list for gumstix users." > <gum...@li...> > Message-ID: <44B...@uc...> > Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed > > From a controls perspective I'd suggest doing this as a multiloop > system, with the gumstix handling all the position/velocity control at > maybe 100Hz, with the control machine sending commands over at 10-20Hz. > Realize that at 10-20 Hz sampling, your closed loop bandwidth will be > 1-2Hz, with anything over that getting jerky and potentially unstable. > By bumping the gumstix freq up you smooth the response and improve your > stability. This is the way machine tools are operated, to the point > that some motors have intgrated postion/velocity controllers. > > Ryan > > > |