Getting PC Hardware Serial Numbers - c#

I'm building an application for my personal use, in which I need to get the Serial Number of the hardware of the PC. i.e.: Motherboard, RAM(s), HDD(s), Cards, and any other device installed.
I've searched around the internet but couldn't find anything working with me!!
I'm using WPF on C#, and .NET Framework 4.0
I've just finished a preliminary design.

Related

Reading Serial Port pins in C#

I have a device connected to my computer via RS232 to USB. This device hold times for eight tanning beds. I want to get the data from the pins on the serial port to see how it is connecting with the device, to see how the times are being displayed. I am hoping to do this is C#, but I'm not sure exactly where I need to start. I have thought about probing the pins on an oscilloscope, but that seems very tedious. Any thoughts?
I just ran in to this my self. If you are not using a 64 bit version of windows I would recommend using PortMon, save the log file, then do offline parsing of your log file. There are libraries that let you hook in to the stream via code but I think using PortMon you may not even need to write any code at all and you may be able to just figure out the protocol by visual inspection.
If you are using a 64 bit version of windows your choices are severely limited. I could not find a free program that was compatible with windows 7 x64, The only program I heard that works (but I did not buy it and the free version did not work) is Serial Port Monitor by HHD.
You can also try running the software in XP Mode to get the 32 bit monitoring programs running, it worked for me.

VoIP/SIP Soft Phone C# WPF

I need to write VoIP/SIP Soft Phone in C# using WPF interface with Audio support only.
I need to have call transfer, call conference, and recording of conversations in mp3.
I've looked at VoIP SDK from ABTO LLC, but it is slow at application startup (30 seconds to start application, I think it's related to loading activex part of this sdk).
I've also looked at SIP.Net, but it's only for SIP and doesn't contain components for voice data transfer.
I have very limited time only 2 months from zero to fully working app.
What SDK can I use to accomplish this task?
Windows 7 must be supported.
We have done this using SipekSDK. It's written on top of famous pjSIP open source SIPClient project. It does all the operations you have mentioned in the question.
https://sites.google.com/site/sipekvoip/
What is the Sip server you are going to use ? If its not asterisk, you can have a look of microsoft's Lync here.
You can download the Lync SDK and start exploring. Not just the audio call, Microsoft Lync has features like video call, chat, presence, conference etc.... and ofcourse connectivity to landline/pstn through voip providers
Another interesting article explaining the different SDKs for unified communications can be found here
Edit: If its for Asterisk, Sipek is the only available free opensource but we had lot of problems in installing in clients system like
C folder access
Poor device
support
Port conflict- If any
other voip app like qutecom runs on
5060, then Sipek wont run as the
port is being used already.
I struggled with this exact issue and eventually came across ABTO LLC.
They have an SDK available that supports Win 7, Win XP and can be used in WPF.
We did ask them though to build a separate SDK example for us as we are using ClickOnce for our deployments and so registering external libraries is impossible, but they graciously did it and i think have integrated into their SDK, if not then ask them to give it to you.
We are using a FreeSwitch SIP Server combined with ABTO's library and it is working like a dream. We are doing VoIP, Video and Conferencing and have had no issues at all.
The application I added the VoIP functionality to is a WPF 4 app.

C# application to connect to a mobile application using bluetooth

I want to know how to write a C# desktop application that can connect to the mobile version of the same application (that I will create). The desktop application will be used as a backup/restore for the mobile application.
I want to know also how to write the mobile version (using C# if possible).
From your other posts, it appears you are trying to write a Symbian 7 application to sync a proprietary data format with a custom Windows 7 desktop application. That is critical information to leave out of your question; let me know if I am mistaken.
If that is correct, you have set a difficult task; Symbian 7 is an extremely old OS, I do not know if the Carbide C++ IDE can develop apps for it. If not, you are looking for old versions of commercial AppForge or Metrowerks compilers, you may be able to track these down at the Symbian Foundation.
Then the hard work starts; Symbian is an extremely difficult platform to develop on, and information on old pre-Symbian 9 OSes is scarce. If you are not already an expert on Symbian, I suggest hiring a contractor with previous Symbian 7 experience.
The hard work does not end there, Bluetooth is also notoriously difficult to develop for. The spec is incomplete, and most manufacturers only partially implement it in undocumented ways. One Bluetooth team I know of spent more time debugging hardware problems than developing the software.
This is only the start; you still have to define the Bluetooth data and synchronization protocols; I do not know if ActiveSync was ever supported on Symbian 7, so you are starting from a blank page here. Then you have to develop the Windows app.
You are looking at an enormous commitment to develop on ancient and unsupported hardware. I suggest investigating more modern and capable hardware.

Bluetooth for WindowsCE 5.0 and .NET2.0 with C#

I'm looking library, to create Bluetooth connection between my device and other devices.
I want use:
.NET2.0 for Windows Mobile
WindowsCE 5.0
If you're using a particular device, most companies have a useful SDK available with Bluetooth functions/routines.
However, if you're looking for generic abilities across multiple devices you could check out 32Feet.net or OpenNetCF.
Be warned though, that if you're using CE 5.0 the bthutil.dll is not included by default anymore, so many of the functions in 32Feet.net (In the Hand) won't actually work.
Have not done much with it myself (yet), but I've read that Mobile in the Hand has nice managed libraries that included Bluetooth support.
You may need to go a bit further on what you are wanting to do exactly.
There are many different solutions based on the state of your project, are you already paired with the hand-held and the PC?
I was once able to get Windows Mobile device with .NET Compact Framework 2.0 installed to communicate with PC using 32feet.NET library. You may want to have a look.

.NET Compact Framework Printing libraries

Can anyone point to libraries that can be used for Printing from Compact .Net Framework 1.0?
Criteria:
I need to be able to print Text and Bar codes.
The library should preferably be upgradable to .Net 2.0 or above with minimal disruption.
Can be either Open Source [that can be distributed as part of Commercial application] or that can be purchased.
Edit
More information:
We are an ISV and this application is sold to our customers.
This application is usually installed on Symbol, Opticon devices. But occasionally this is installed on a generic Windows Mobile PDA or Phone devices.
I want the library to work with Printers from multiple vendors. [I now have printers from O'Neil and Citizen-Systems for testing].
We want the printers to be connected using bluetooth. I guess the library should in general work with any serial port connections.
PrinterCE.NetCF from FieldSoftware appears to fit the bill. Thanks ctacke. I am looking for something similar.
Thanks,
Kishore
You've not given us much detail, like the device you're using or the printer type you want to print to (local, lan, serial, network, etc), however I'll see if I can at least point you in the right direction.
The de-facto standard for CF printing is PrinterCE from Field Software. PrintBoy from Bachmann Software also works well. I'm not certain if eitehr has the ability to print barcodes though.
Now if you're printing barcodes, that suggests that you're using a device like a Symbol (now Motorola) or Intermec handheld. If that is the case then those manufacturers have their own SDKs that allow printing.
If you are printing to something like a Zebra barcode printer, they typically have some serial PCL commands for printing barcodes as well, so you don't actually need to "print" the barcode. Instead you send the PCL command to tell the printer that the data should be output a barcode instead of text. The printer manufacturer can provide a PCL reference, as the PCL for these types of things isn't standardized.

Categories