From: Brad T. <bto...@ho...> - 2007-08-30 22:33:56
|
I am trying to code a custom RFID driver, however I always get confused when I have to make the .cfg files. I am getting the following errors AFTER player successfully initialize my driver. error : Couldn't find driver "RFID" error : failed to parse config file simple.cfg As far as I can see the mistake is either here in my config file: driver( name "RFID" plugin "RFID" provides ["6665:rfid:0"] ) Or here in my driver code, I am not sure what the flag for RFID is? rfid70Driver::rfid70Driver(ConfigFile * cf, int section):Driver (cf,section,false,PLAYER_MSGQUEUE_DEFAULT_MAXLEN,PLAYER_RFID_CODE) /\ L Is this right? Any help would be appreciated. My driver is being compiled to a file called RFID.so and it is in the working directory. Thanks Brad Towle -- View this message in context: http://www.nabble.com/RFID-driver-syntax-tf4357300.html#a12417533 Sent from the playerstage-users mailing list archive at Nabble.com. |
From: Toby C. <tco...@pl...> - 2007-08-30 23:10:52
|
The driver constructor looks right, that makes your drive accept the provides line with rfid in it. The name and plugin parameters in your config file are probably wrong. The plugin should be the name of the library that your plugin is compiled as, this needs to be in your library easrch path as well (LD_LIBRARY_PATH). the name is the name you give to player in your drivers register function, this should be something specific to your driver such as rfid70. Toby On 31/08/2007, Brad Towle <bto...@ho...> wrote: > > > I am trying to code a custom RFID driver, however I always get confused > when > I have to make the .cfg files. > > I am getting the following errors AFTER player successfully initialize my > driver. > > error : Couldn't find driver "RFID" > error : failed to parse config file simple.cfg > > > As far as I can see the mistake is either here in my config file: > > driver( > name "RFID" > plugin "RFID" > provides ["6665:rfid:0"] > ) > > Or here in my driver code, I am not sure what the flag for RFID is? > rfid70Driver::rfid70Driver(ConfigFile * cf, int section):Driver > (cf,section,false,PLAYER_MSGQUEUE_DEFAULT_MAXLEN,PLAYER_RFID_CODE) > > /\ > > L Is this right? > > > Any help would be appreciated. My driver is being compiled to a file > called > RFID.so and it is in the working directory. > > Thanks > Brad Towle > -- > View this message in context: > http://www.nabble.com/RFID-driver-syntax-tf4357300.html#a12417533 > Sent from the playerstage-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Playerstage-users mailing list > Pla...@li... > https://lists.sourceforge.net/lists/listinfo/playerstage-users > -- This email is intended for the addressee only and may contain privileged and/or confidential information |
From: Brad T. <bto...@ho...> - 2007-08-31 16:22:41
|
Thanks for your reply, however How could the plugin be wrong if it was calling my initialization function? Sorry I edited my post and did not resend it. The post on the web displays the successful initialization. Thanks Brad Towle Toby Collett-3 wrote: > > The driver constructor looks right, that makes your drive accept the > provides line with rfid in it. > The name and plugin parameters in your config file are probably wrong. The > plugin should be the name of the library that your plugin is compiled as, > this needs to be in your library easrch path as well (LD_LIBRARY_PATH). > > the name is the name you give to player in your drivers register function, > this should be something specific to your driver such as rfid70. > > Toby > > On 31/08/2007, Brad Towle <bto...@ho...> wrote: >> >> >> I am trying to code a custom RFID driver, however I always get confused >> when >> I have to make the .cfg files. >> >> I am getting the following errors AFTER player successfully initialize my >> driver. >> >> error : Couldn't find driver "RFID" >> error : failed to parse config file simple.cfg >> >> >> As far as I can see the mistake is either here in my config file: >> >> driver( >> name "RFID" >> plugin "RFID" >> provides ["6665:rfid:0"] >> ) >> >> Or here in my driver code, I am not sure what the flag for RFID is? >> rfid70Driver::rfid70Driver(ConfigFile * cf, int section):Driver >> (cf,section,false,PLAYER_MSGQUEUE_DEFAULT_MAXLEN,PLAYER_RFID_CODE) >> >> /\ >> >> L Is this right? >> >> >> Any help would be appreciated. My driver is being compiled to a file >> called >> RFID.so and it is in the working directory. >> >> Thanks >> Brad Towle >> -- >> View this message in context: >> http://www.nabble.com/RFID-driver-syntax-tf4357300.html#a12417533 >> Sent from the playerstage-users mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Playerstage-users mailing list >> Pla...@li... >> https://lists.sourceforge.net/lists/listinfo/playerstage-users >> > > > > -- > This email is intended for the addressee only and may contain privileged > and/or confidential information > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Playerstage-users mailing list > Pla...@li... > https://lists.sourceforge.net/lists/listinfo/playerstage-users > > -- View this message in context: http://www.nabble.com/RFID-driver-syntax-tf4357300.html#a12429682 Sent from the playerstage-users mailing list archive at Nabble.com. |
From: Brad T. <bto...@ho...> - 2007-08-31 16:26:23
|
Never mind I see the problem, the name was wrong. Thanks for all the help Cheers Brad Towle -- View this message in context: http://www.nabble.com/RFID-driver-syntax-tf4357300.html#a12429714 Sent from the playerstage-users mailing list archive at Nabble.com. |