BrianPeek.com

A Compendium of Random Uselessness
in Search

doubt

Last post Thu, Oct 25 2007 5:22 PM by Brian Peek. 25 replies.
Page 1 of 2 (26 items) 1 2 Next >
Sort Posts: Previous Next
  • Mon, Sep 24 2007 5:53 AM

    doubt

    hey,

     super cool project...but i am not able to run the car...first of all i think the phidget services have not been started...i have followed all the steps that you had given in your procedure...still don't know where i am going wrong...i copied the Phidget21.dll and Phidget21.Net.dll files from Phidget folder to bin directory of MSRS...as you have mentioned...then i soldered wires from the positive and gnd ends of the metal contacts...do i have to connect the active end to NO or XC? i tried doing it either ways and still there is no luck...the code is building without any errors and the UI form is loading...but why am i unable to run the car? i have bought a different toy car with a digital controller...not the one you had mentioned...where do you think i am going wrong?  

  • Thu, Sep 27 2007 2:36 AM In reply to

    Re: doubt

    If you look in your Program Files\Phidgets directory, you should find an Examples directory.  Can you try running the InterfaceKit example and see if the device is detected and you can manually turn the relays on and off?  That will help eliminate a few things...
  • Thu, Sep 27 2007 2:51 AM In reply to

    Re: doubt

    the interfacekit example if running perfectly fine...i m able to hear the relays click when i select any of the digital o/p....
  • Thu, Sep 27 2007 3:47 AM In reply to

    Re: doubt

    That's a good sign...the drivers and hardware are working correctly.

    How are you running the application?  Pressing F5 from within VS or something else?  Have you tried running the provided sample code directly instead of doing the step-by-step process in the article?  After running the service, you can browse to http://localhost:50000/ in IE to view the MSRS control panel.  You should see an entry to view the debug log.  Do you see any errors in this log?

  • Fri, Sep 28 2007 11:57 PM In reply to

    Re: doubt

    i tried running the downloaded sample...but the UI form itself didn't load...so i jus ran the RCCar project (after removing references to NetCam)...the project builds without error...the UI form loads...but the phidgets don't work...i got the error "an operation was attempted on a non-existant network connection" when i check in debug and trace messages in MSRS control panel(this maybe b'cos i haven't installed the camera yet)...i want the car to start moving first...where do you think i am going wrong?
  • Sat, Sep 29 2007 8:06 PM In reply to

    Re: doubt

    Could you take a screenshot or copy/paste the full debug log so I can get some details on that error message?  I have not seen that one come up in my usage of MSRS but may be able to figure out what's happening with the full exception info...
  • Sun, Sep 30 2007 1:35 PM In reply to

    Re: doubt

    i tried running the car using the InterfaceKit example in Program Files/Phidgets folder...whenever i clicked on the relays manually, the car moved...so i guess i m going wrong with linking the phidget and the code...i tried running your code in MSRS control panel...nd got the following debug/trace msgs

    View Row Time Level Description
    Open or Close 0 22:41:33 ** Service uri:
    Open or Close 1 22:41:33 ** Mounted embedded resources for assembly 'file:///C:/Microsoft Robotics Studio (1.0)/bin/dssruntime.dll' under prefix '/resources/dss/'
    Open or Close 2 22:41:34 ** No initial manifest supplied.
    Open or Close 3 22:42:04 ** Starting manifest load: file:///C:/Microsoft%20Robotics%20Studio%20(1.0)/RCCar/RCCar.manifest.xml
    Open or Close 4 22:42:05 ** Manifest load complete
    Open or Close 5 22:42:06 ** Service uri:
    Open or Close 6 22:42:06 ** Service uri: http://srinivas-35c09f:50000/phidgetinterfacekitboards
    Open or Close 7 22:42:12 * ### DsspForwarder:CaptureRequestException:Unhandled within causality context.. Exception:Method not found: 'Int64 Phidgets.Phidget.get_SerialNumber()'. Action:http://schemas.microsoft.com/xw/2004/10/dssp.html:UpdateRequest Body Type:Phidgets.Robotics.Services.SetOutputRequestType Target Service:dssp.tcp://srinivas-35c09f:50001/phidgetinterfacekitboards Source Service:dssp.tcp://srinivas-35c09f:50001/rccar
    Open or Close 8 22:42:12 * ### DsspForwarder:CaptureRequestException:Unhandled within causality context.. Exception:Method not found: 'Int64 Phidgets.Phidget.get_SerialNumber()'. Action:http://schemas.microsoft.com/xw/2004/10/dssp.html:UpdateRequest Body Type:Phidgets.Robotics.Services.SetOutputRequestType Target Service:dssp.tcp://srinivas-35c09f:50001/phidgetinterfacekitboards Source Service:dssp.tcp://srinivas-35c09f:50001/rccar
    Open or Close 9 22:42:12 * ### DsspForwarder:CaptureRequestException:Unhandled within causality context.. Exception:Method not found: 'Int64 Phidgets.Phidget.get_SerialNumber()'. Action:http://schemas.microsoft.com/xw/2004/10/dssp.html:UpdateRequest Body Type:Phidgets.Robotics.Services.SetOutputRequestType Target Service:dssp.tcp://srinivas-35c09f:50001/phidgetinterfacekitboards Source Service:dssp.tcp://srinivas-35c09f:50001/rccar
    Open or Close 10 22:42:12 * ### DsspForwarder:CaptureRequestException:Unhandled within causality context.. Exception:Method not found: 'Int64 Phidgets.Phidget.get_SerialNumber()'. Action:http://schemas.microsoft.com/xw/2004/10/dssp.html:UpdateRequest Body Type:Phidgets.Robotics.Services.SetOutputRequestType Target Service:dssp.tcp://srinivas-35c09f:50001/phidgetinterfacekitboards Source Service:dssp.tcp://srinivas-35c09f:50001/rccar
    Open or Close 11   * ### DsspForwarder:CaptureRequestException:Unhandled within causality context.. Exception:Method not found: 'Int64 Phidgets.Phidget.get_SerialNumber()'. Action:http://schemas.microsoft.com/xw/2004/10/dssp.html:UpdateRequest Body Type:Phidgets.Robotics.Services.SetOutputRequestType Target Service:dssp.tcp://srinivas-35c09f:50001/phidgetinterfacekitboards Source Service:dssp.tcp://srinivas-35c09f:50001/rccar
    Open or Close 12 22:42:13 * ### DsspForwarder:CaptureRequestException:Unhandled within causality context.. Exception:Method not found: 'Int64 Phidgets.Phidget.get_SerialNumber()'. Action:http://schemas.microsoft.com/xw/2004/10/dssp.html:UpdateRequest Body Type:Phidgets.Robotics.Services.SetOutputRequestType Target Service:dssp.tcp://srinivas-35c09f:50001/phidgetinterfacekitboards Source Service:dssp.tcp://srinivas-35c09f:50001/rccar
    Open or Close 13 22:42:13 * ### DsspForwarder:CaptureRequestException:Unhandled within causality context.. Exception:Method not found: 'Int64 Phidgets.Phidget.get_SerialNumber()'. Action:http://schemas.microsoft.com/xw/2004/10/dssp.html:UpdateRequest Body Type:Phidgets.Robotics.Services.SetOutputRequestType Target Service:dssp.tcp://srinivas-35c09f:50001/phidgetinterfacekitboards Source Service:dssp.tcp://srinivas-35c09f:50001/rccar
    Open or Close 14 22:42:13 * ### DsspForwarder:CaptureRequestException:Unhandled within causality context.. Exception:Method not found: 'Int64 Phidgets.Phidget.get_SerialNumber()'. Action:http://schemas.microsoft.com/xw/2004/10/dssp.html:UpdateRequest Body Type:Phidgets.Robotics.Services.SetOutputRequestType Target Service:dssp.tcp://srinivas-35c09f:50001/phidgetinterfacekitboards Source Service:dssp.tcp://srinivas-35c09f:50001/rccar
    Open or Close 15 22:42:14 * ### DsspForwarder:CaptureRequestException:Unhandled within causality context.. Exception:Method not found: 'Int64 Phidgets.Phidget.get_SerialNumber()'. Action:http://schemas.microsoft.com/xw/2004/10/dssp.html:UpdateRequest Body Type:Phidgets.Robotics.Services.SetOutputRequestType Target Service:dssp.tcp://srinivas-35c09f:50001/phidgetinterfacekitboards Source Service:dssp.tcp://srinivas-35c09f:50001/rccar
    Open or Close 16 22:42:14 * ### DsspForwarder:CaptureRequestException:Unhandled within causality context.. Exception:Method not found: 'Int64 Phidgets.Phidget.get_SerialNumber()'. Action:http://schemas.microsoft.com/xw/2004/10/dssp.html:UpdateRequest Body Type:Phidgets.Robotics.Services.SetOutputRequestType Target Service:dssp.tcp://srinivas-35c09f:50001/phidgetinterfacekitboards Source Service:dssp.tcp://srinivas-35c09f:50001/rccar
    Open or Close 17 22:42:14 * ### DsspForwarder:CaptureRequestException:Unhandled within causality context.. Exception:Method not found: 'Int64 Phidgets.Phidget.get_SerialNumber()'. Action:http://schemas.microsoft.com/xw/2004/10/dssp.html:UpdateRequest Body Type:Phidgets.Robotics.Services.SetOutputRequestType Target Service:dssp.tcp://srinivas-35c09f:50001/phidgetinterfacekitboards Source Service:dssp.tcp://srinivas-35c09f:50001/rccar
    Open or Close 18 22:42:14 * ### DsspForwarder:CaptureRequestException:Unhandled within causality context.. Exception:Method not found: 'Int64 Phidgets.Phidget.get_SerialNumber()'. Action:http://schemas.microsoft.com/xw/2004/10/dssp.html:UpdateRequest Body Type:Phidgets.Robotics.Services.SetOutputRequestType Target Service:dssp.tcp://srinivas-35c09f:50001/phidgetinterfacekitboards Source Service:dssp.tcp://srinivas-35c09f:50001/rccar
    Open or Close 19 22:42:15 * ### DsspForwarder:CaptureRequestException:Unhandled within causality context.. Exception:Method not found: 'Int64 Phidgets.Phidget.get_SerialNumber()'. Action:http://schemas.microsoft.com/xw/2004/10/dssp.html:UpdateRequest Body Type:Phidgets.Robotics.Services.SetOutputRequestType Target Service:dssp.tcp://srinivas-35c09f:50001/phidgetinterfacekitboards Source Service:dssp.tcp://srinivas-35c09f:50001/rccar
    Open or Close 20 22:42:15 * ### DsspForwarder:CaptureRequestException:Unhandled within causality context.. Exception:Method not found: 'Int64 Phidgets.Phidget.get_SerialNumber()'. Action:http://schemas.microsoft.com/xw/2004/10/dssp.html:UpdateRequest Body Type:Phidgets.Robotics.Services.SetOutputRequestType Target Service:dssp.tcp://srinivas-35c09f:50001/phidgetinterfacekitboards Source Service:dssp.tcp://srinivas-35c09f:50001/rccar
    Open or Close 21 22:42:15 * ### DsspForwarder:CaptureRequestException:Unhandled within causality context.. Exception:Method not found: 'Int64 Phidgets.Phidget.get_SerialNumber()'. Action:http://schemas.microsoft.com/xw/2004/10/dssp.html:UpdateRequest Body Type:Phidgets.Robotics.Services.SetOutputRequestType Target Service:dssp.tcp://srinivas-35c09f:50001/phidgetinterfacekitboards Source Service:dssp.tcp://srinivas-35c09f:50001/rccar
    Open or Close 22 22:42:15 * ### DsspForwarder:CaptureRequestException:Unhandled within causality context.. Exception:Method not found: 'Int64 Phidgets.Phidget.get_SerialNumber()'. Action:http://schemas.microsoft.com/xw/2004/10/dssp.html:UpdateRequest Body Type:Phidgets.Robotics.Services.SetOutputRequestType Target Service:dssp.tcp://srinivas-35c09f:50001/phidgetinterfacekitboards Source Service:dssp.tcp://srinivas-35c09f:50001/rccar
    Open or Close 23 22:42:16 * ### DsspForwarder:CaptureRequestException:Unhandled within causality context.. Exception:Method not found: 'Int64 Phidgets.Phidget.get_SerialNumber()'. Action:http://schemas.microsoft.com/xw/2004/10/dssp.html:UpdateRequest Body Type:Phidgets.Robotics.Services.SetOutputRequestType Target Service:dssp.tcp://srinivas-35c09f:50001/phidgetinterfacekitboards Source Service:dssp.tcp://srinivas-35c09f:50001/rccar
    Open or Close 24 22:42:16 * ### DsspForwarder:CaptureRequestException:Unhandled within causality context.. Exception:Method not found: 'Int64 Phidgets.Phidget.get_SerialNumber()'. Action:http://schemas.microsoft.com/xw/2004/10/dssp.html:UpdateRequest Body Type:Phidgets.Robotics.Services.SetOutputRequestType Target Service:dssp.tcp://srinivas-35c09f:50001/phidgetinterfacekitboards Source Service:dssp.tcp://srinivas-35c09f:50001/rccar

     

  • Sun, Sep 30 2007 11:03 PM In reply to

    Re: doubt

    i tried running the car using the InterfaceKit example in Program Files/Phidgets folder...the car moved whenever i clicked on any of the relays manually...so i guess i am going wrong with linking of Pidget and the rest of the code...i am unable to copy and paste the entire debug log...this site doesn't allow me to do that...it says i need moderator permission to post... :(
  • Sun, Sep 30 2007 11:39 PM In reply to

    Re: doubt

    Hi again,

    Looks like you just got sent to moderation.  I approved the post and you should be ok to post large things in the future.

    Looking at the error, it appears that there may be a change in the Phidget library or something.  Do you know version of the Phidget stuff you installed?  Is it the version currently on their website or a previous version?

    Let me check things out here and see if I can reproduce.  Something similar to this happened to me a while back... 

  • Mon, Oct 1 2007 2:02 AM In reply to

    Re: doubt

    i think its the new version...the one currently on the website...i would also like to know how to configure the camera...does it require a router by any chance?
  • Wed, Oct 3 2007 3:20 AM In reply to

    Re: doubt

    hello again...any luck wit startin up the phidget services?i tried...no luck  :(
  • Mon, Oct 8 2007 6:04 PM In reply to

    Re: doubt

    Hello again,

    Someone else wrote to me seeing the same error you are with get_SerialNumber.  I setup MSRS 1.0 and the Phidget libs and was able to compile and run successfully.

    Can you please verify that you have both the Phidgets 21 MSI and Services for MSRS installed from here:

    http://www.phidgets.com/downloads.php?os_id=1

    It seems like there might be a mis-match between versions of those two libraries.

    Also ensure that the project reference to PhidgetBoards is not set to CopyLocal or SpecificVersion.  Delete and re-add the reference if necessary.

    Once I know exactly what's happening I can update the article, but I'm still a bit confused right now. 

    Thanks!

     

  • Thu, Oct 11 2007 8:01 PM In reply to

    Re: doubt

    i downloaded the files again and tried...no luck this time also. i tried sending the debug and trace messages...but got sent to moderation...i am getting similar debug and trace messages....
  • Fri, Oct 12 2007 12:23 AM In reply to

    Re: doubt

    I was finally able to reproduce the problem and I know the cause.  Sadly, the only people who can fix it are the Phidgets people.

    The problem is that in the base Phidget library, between the version that the MSRS Phidget services were linked against, and the version that’s currently available, the SerialNumber property changed from an Int64 (long) to an Int32 (int).  Because the types aren’t the same, the MSRS Phidget service throws an error because it can’t find the Int64 signature method.

    I will email them and hopefully they’ll be able to correct. 
  • Fri, Oct 12 2007 9:52 AM In reply to

    Re: doubt

    thanx....do you think v can implement the same operation using .net only...as in not using MSRS...and using Visual C# Express Edition only?i know how to toggle the button...but don't know how to implement mouse up and mouse down events....
Page 1 of 2 (26 items) 1 2 Next >
Copyright (C) 2008 Brian Peek
Powered by Community Server (Commercial Edition), by Telligent Systems