Question

accessing and communicating with pc ports

Asked by: wildan_ali

Hello,

I have device pluged into serial port (usually for modem, also called COM port).
1. Can i access the device plugged in the PC port before log in to Windows (XP, 2000, 98)?How can I do it?
-for example i have a cellphone that plugged in to PC serial port.-
2. If, so..can i communicate with the PC?
-for example i wanto to transfer file from the cellphone to the PC-
3. Is possible for IrDa and Bluetooth connection?


thanks

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2004-07-27 at 19:09:39ID21073664
Tags

irda

Topic

Miscellaneous Programming

Participating Experts
3
Points
125
Comments
13

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Using serial COM ports for test.
    How do I open a serial port for communication using C++. What I am trying to do is talk to a modem through COM 1 of the PC.
  2. Virtual Com Port question (Bluetooth).
    I`m developing a program on an IPaq 3870 (WinCE 3.0). I want to send a datastream from one device to another device using Bluetooth. I have made it so my program establishes a Serial Port Connection between 2 devices. But i`m having problems using the Virtual Com Ports. I ...
  3. Bluetooth serial communication: can't find wich com: po…
    I own a Fujitsu-Siemens Pocket LOOX 610. I need to develop an application wich implementa serial data trasfer ower blluetooth between a PC and this PPC. I've purchased a bluetooth adaptor for my PC and installed successfully. Bluetooth communication between PC and PPC seems t...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: cookrePosted on 2004-07-27 at 21:20:20ID: 11653308

If all you need is access to hardware ports and the file system, then yes, that could be done from a Window's Service.

Bear in mind there will be no network access and no GUI until a user logs on.

 

by: bhagyeshtPosted on 2004-07-28 at 02:51:03ID: 11654463

1. yes you can use the mscomm control for the same
2. you will find a sample mscomm example on msdn


Regards,
Bhagyesh

 

by: frijj2kPosted on 2004-07-29 at 02:03:30ID: 11664720

Cookre is correct... You need to run or write the program to run as a system service for it to be running without a user being logged in.

I have gathered together a few links that also contain example code which may be of use to you regarding this matter.

Hope this helps...

Dave

---------------------------------------------------------------------
SERVICE PROGRAMMING
---------------------------------------------------------------------
Beginner's introductory guide to writing,installing,starting,stopping nt services
http://www.codeproject.com/system/serviceskeleton.asp

---------------------------------------------------------------------
A general purpose nt service Class
http://www.codeproject.com/system/VoitelNTService.asp

---------------------------------------------------------------------
Writing Windows Services - Made Easy
http://www.codeproject.com/system/xservice.asp

---------------------------------------------------------------------
Cntservice v1.06 - nt service Framework
http://www.codeproject.com/system/cntservice.asp

---------------------------------------------------------------------
Start Your Windows Programs From An NT Service
http://www.codeproject.com/system/xyntservice.asp

---------------------------------------------------------------------


---------------------------------------------------------------------
SERIAL COMMS
---------------------------------------------------------------------
Serial Communications in Windows
http://www.codeproject.com/system/serial_com.asp

---------------------------------------------------------------------
Creating a Serial Communication on Win32
http://www.codeproject.com/system/chaiyasit_t.asp

---------------------------------------------------------------------
CSerialPort v1.03 - Serial Port Wrapper
http://www.codeproject.com/system/cserialport.asp


Theres more on code-project... take a look!

 

by: wildan_aliPosted on 2004-08-01 at 16:55:46ID: 11690066

thanks for all,

what about bluetooth and infra red devices?

 

by: frijj2kPosted on 2004-08-02 at 01:28:03ID: 11691632

Heres a few links that should be of use to you.

Hope this helps...

Dave


BLUETOOTH PROGRAMMING
---------------------------------------------------------------------
Bluetooth Programming with Windows Sockets
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/bluetooth/bluetooth/bluetooth_programming_with_windows_sockets.asp

Make Bluetooth Work for You - Build a Sample Chat Application (PocketPC)
http://www.devx.com/wireless/Article/11511/1954?pf=true



IrDA PROGRAMMING
---------------------------------------------------------------------
IrDA Programming with Windows Sockets
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/irda/irda/irda_programming_with_windows_sockets.asp

---------------------------------------------------------------------
Programming With Infrared Sockets - White Paper - IrDA Implementation
http://www.cswl.com/whiteppr/white/infrared.html

---------------------------------------------------------------------
Getting Infrared IrDA and IrSock to work on Windows - White Paper
http://www.cswl.com/whiteppr/tech/irdatips.html

---------------------------------------------------------------------
Microsoft Windows IrDA programming (IrSock?)
http://homepage.ntlworld.com/alanjmcf/comms/infrared/Microsoft%20Windows%20IrDA%20programming.html

 

by: wildan_aliPosted on 2004-08-09 at 03:41:15ID: 11751189

how can set the priority of service i have installed? for example i want my service run for the first time before the other.

 

by: cookrePosted on 2004-08-09 at 06:33:12ID: 11752191

Identify those services before which you need to run and make them dependent on your service.

 

by: wildan_aliPosted on 2004-08-09 at 17:19:43ID: 11758582

Are there any exceptions to identify the services? my pc was hang.

 

by: cookrePosted on 2004-08-09 at 20:06:02ID: 11759243

You first need to identify the cause of the hang.  The easiest way to do that is to write progress messages to a log file.  

You'll also want to open and close the log file for each message so that when your service hangs you won't lose any buffered messages.


 

by: wildan_aliPosted on 2004-08-11 at 18:12:54ID: 11779866

I have solved the trouble. but now its rather difficult to make the dependent. Can make the dependent from Windows SCM? Well, if want to make the programmatically, are there any references?

 

by: cookrePosted on 2004-08-11 at 21:12:35ID: 11780461

If you register a service with the SC CREATE command, the depend= option is where to specify dependencies.

If you use CreateService(), the 11th parm is the array of depenencies.

If the service already exists, you can set dependencies in the Registry: HKLM\System\CurrentControlSet\Services.

Each subkey is the name of a service or driver.

In the root of a given subkey, value DependOnService, if present, is a REG_MULTI_SZ that lists those services/drivers that are dependent on that service/driver.


 

by: wildan_aliPosted on 2004-08-17 at 03:18:13ID: 11818838

1)Im using CreateService to create the service. and i do not understand in using array of dependencies? can you tell me how to use the parm?\

2) how can i get the data that i send from the cellphone? i want using j2me to send it to pc. are there any easiest way to do it?

 

by: cookrePosted on 2004-08-17 at 07:50:34ID: 11821129

1)
The dependencies is a double-null terminated list of strings.  If you were to look in memory, you'd see the strings of dependent name one after another with an extra null after the last one.

For example, let's say the dependent services were "s1", "s2", and "s3".  A memory dump would show (using @ to represent null ('\0', binary zero):

s1@s2@s3@@


2) If you don't already know the format of the data coming over the port, about all you can do is try to figure it out by dumping out what you get from the phone under varying conditions.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...