none
How way to access the USB ComPort in silverlight 4?

    Question

  • I saw silverlight 4's new feature:

    COM automation enables access to devices and other system capabilities by calling into application components; for instance to access a USB security card reader.

    But I can't find any thing to learn for this .

    Any one help me ! Thank you soooooooooooooo much!

    Wednesday, December 02, 2009 11:32 PM

Answers

  • You would need a driver that exposes some form of com interop or you would need to write something to control the port yourself and expose that via com.

    Friday, December 04, 2009 5:38 AM

All replies

  • This video shows com interop with Excel and comes with source code.

    http://www.silverlight.net/learn/videos/silverlight-4-beta-videos/com-object-access-trusted-applications/

    Thursday, December 03, 2009 7:06 AM
  • Thank you Sledge70!

    I know that video, But I can't find way to use the USB ComPort!

    I want know how way communication to my USB SCM.

    Thursday, December 03, 2009 7:36 AM
  • Thank you Sledge70!

    I know that video, But I can't find way to use the USB ComPort!

    I want know how way communication to my USB SCM.

    Thursday, December 03, 2009 7:36 AM
  • Depends on what you need to do with the usb com port. If you need direct access the driver would either need to expose a Com interface or you'd have to write one yourself and expose it via com.

    If you just accessing say a usb stick then you could do that via the file system and write a quick com object that gives you access.

    Thursday, December 03, 2009 7:52 AM
  • I just want to like the SerialPort control fundation!

    Friday, December 04, 2009 5:09 AM
  • You would need a driver that exposes some form of com interop or you would need to write something to control the port yourself and expose that via com.

    Friday, December 04, 2009 5:38 AM
  • yes , can I get some code to learn for this in silverlight 4's com interop?

    Saturday, December 05, 2009 2:29 AM
  • I hope use the ComPort like this way:

                    dynamic speech = ComAutomationFactory.CreateObject("Sapi.SpVoice");
                    speech.Speak(SpeechText.Text);

    But I can't find the comport object in ComAutommationFactory.CreateObject definition.

    Sunday, December 06, 2009 1:31 AM
  • Problem has been resolved by my self!
     
    thx help!
    Monday, December 14, 2009 12:25 AM
  •  Hi Jacle169,

    How did you find the solution to this problem.  This post comes up in the search engines as one of the highest yet there is no answer posted.

    Could you point us in the right direction?

    Clinton

    Sunday, January 17, 2010 11:06 PM
  • I am looking since a few days and I have big problems to accepting the COM Automation to access the serial ports. I wish there would be "Out of the Box" support for serial ports. Silverlight gets very messy with COM support. It feels like MS was addressing tiny issues with a big (COM) hammer rather than adding selectivity more features to silverlight. Very messy ... And yes - if you found a solution how to access the serial port please share it.
    Tuesday, February 09, 2010 1:44 PM
  • How would be useful?????????????????????????????????????

    Wednesday, October 26, 2011 5:53 AM
  • Hi, can you post your solution, please?

    Wednesday, February 29, 2012 8:00 PM
  • jacle169, How did you solve it?

    Monday, June 25, 2012 3:40 PM