Open Compact Flash Com port

dotnet framework

    Next

  • 1. Connect to SQL Server 2000
    I use the following code to connect to SQL server 2000 from a connected PPC device. My pocket explorer is able to view the ssce. I execute the code on real pocketpc 2002 device and emulator and both throws an exception when i execute the Open() method. An PlatformNotSupportedException thrown. Any idea what's wrong? I'm using SQL server 2000 with sp3 and sp3a sql ce server tools ---------------------------------------- Public Sub GetResultSets() Dim conNwindCE As SqlConnection Dim cmdData As SqlCommand Dim connString As String Dim dr As SqlDataReader Try ' Create and open a connection connString = "server=10.1.12.72;database=NWind_SQLCE;" connString &= "user id=sa;pwd=pwd;" conNwindCE = New SqlConnection(connString) conNwindCE.Open() ...... Catch ex As Exception MessageBox.Show(ex.Message) Finally dr.Close() conNwindCE.Close() End Try End Sub ------------------------------------------------------
  • 2. fail to connect to sql server 2000 using emulator 4.2
    hi: i use the VS2003, WinCE Emulator4.2 , IIS, SQL Server 2000 IIS security used the anonymous login. My code is : DBPath = shellui.sqlcewrapper.LocalDatabase; lconnstr = "Provider=Microsoft.SQLSERVER.OLEDB.CE.2.0;Data Source=" + DBPath + "; Password = 123;"; //Create replication object and initialize it SqlCeReplication sscerepl = new SqlCeReplication(); sscerepl.InternetUrl=URL.Text; //URL of the server agent sscerepl.InternetPassword = "liuwenhua"; //credentials for the IIS directory where the server agent resides sscerepl.InternetLogin ="IUSR_CPULICHWEILIU"; sscerepl.Publisher=SQLServer.Text; //publisher sscerepl.Publication = "contact"; //name of the publication sscerepl.PublisherDatabase = "truetel"; //name of the published DB sscerepl.PublisherLogin = user.Text; //credentials for the DB/PAL (publication access list)on server sscerepl.PublisherPassword =password.Text; sscerepl.Subscriber = "SQLCE_Client"; //name of the client device (optional) sscerepl.SubscriberConnectionString = lconnstr; //conn string for the local SQLCE DB sscerepl.AddSubscription(AddOption.CreateDatabase); the return error code is: native error: 28037 message: a request to send data to the computer running IIS has fialed. for more information, see HRESULT.[,,,,,] Source:Microsoft SQL Server 2000 Windows CE Edition
  • 3. SOAP and Binary Data
    Hi, What's the best way off sending binary data in soap messages. I understand that I could encode it, but this is very inefficient. I've read about DIME and SOAP attachements but don't know if the .Net compact framework on PPC will support these extensions. Any help?
  • 4. FLASH vs. Volatile memory
    Greetings, I am looking for some suggestions on the best way to manage my data store. Currently, I am keeping my SQL CE DB in FLASH memory, but it is painfully slow. My other option is of course to keep it in volatile memory, but the likelihood of data loss is simply too great (mostly from power loss). I am about to embark upon a new strategy. Have the working copy in volatile memory and have a backup copy in FLASH which is updated on a background thread. This is going to take several days to implement, so I thought I would ask the user community how they have dealt with similar issues. Cheers, Ian Williamson
  • 5. Faster Debugging with Emulator
    Hi, I using the emulator in order to test the apps and everytime I close the emulator I save the settings for the particular sample, so next time I run it ... the CF doesn need to be reinstalled, but I found a bit tricky if i debugging it, because once I change a line of code and run the app I can use the last saved set and have to run the app as a new one. It makes debug an smart device app a bit annoying and time consuming. As a workaround I creating traditional windows forms app and after it done and debugged I copy and paste the code into a smart device project. As another option I can also run the .exe file and attach it to the debug later Is there a better way to accomplish that? Buying a real PDA will solve the problem? _________________ Ken.Awamura

Open Compact Flash Com port

Postby Romain TAILLANDIER » Wed, 14 Dec 2005 00:13:44 GMT

Hi group

I make a RFID program, which whork on any pocket PC with a compactFlash.
I just have to know what is the number of the com port where the 
CompactFlash Slot is ?
on mine is 8. for the moment i try to open all the com port until i get the 
one with the RFID reader. But sometimes another Com port (bluetooth in my 
case) reply.
Co how can i know on which com port i have to work ?
I am sure there is some registry key or something.

thank you ! 



Re: Open Compact Flash Com port

Postby Joseph Byrns » Wed, 14 Dec 2005 00:54:56 GMT

If you go through HKEY_LOCAL_MACHINE\Drivers\Active and look through all the 
keys in there (1 to xx) the values in there should tell what is assigned to 
which comm port.









Re: Open Compact Flash Com port

Postby Paul G. Tobey [eMVP] » Wed, 14 Dec 2005 01:20:36 GMT

Exactly, there's no right answer to the original question.  It might be 
*any* COM port (or it might not even be assigned a COM<x> name at all). 
Check with the CF card manufacturer...

Paul T.











Similar Threads:

1.How to get com port label in device manager / ports (com) in C#

Hi everyone,

I want to find a way to get the label of a com port like displayed in
the device manager in ports :
e.g :
PC
  |
  _Ports (COM & LPT)
        |
        _CP210x USB to UART Bridge Controller (COM3).
I must do a pinvoke ? go in regedit ?

Thanks in advance

Best regards,

gdt

2.Flash Desktop App with Com Port

Does anyone have any idea how to build a Flask desktop application for windows that basically provides a nice GUI to send/recieve very basic data to/from a serial/com port?

Cheers,
Chris :-)

3.flash>ascii on com port?

is it poossible to export an ascii string(s) on com port via flash?  if so, 
please direct me to methods for setting up the script and running the scripts.  
i plan to create a user interface for them to take files i will emial them and 
exprt them via comp port to a motor controller to update an eprom.

 thanks for any help

4.Differences in PocetPC 2002 vs 2003 regarding serial ports/compact flash

I'm writing an appliaction that is using the serial/compact flash port.
In the application that runs on PocetPC 2002 the systems works perfect,
but on 2003 the device connected to the port often don't seem to work
correctly. The same device works fine on the same application on the
PocetPC 2002 platform. It is not a problem of opening the serial port,
that works fine on both systems, but when the port is open the device
don't seem to responde to commands on the 2003 PocketPc.
Does anybody know if there has been changes made in PocktPC 2003
compared to 2002? (or even better if anybody knows how to solve the
problem)

5.Accessing Ports on PocketPC Compact Flash Interface

6. Driver for using IDE Harddrive via compact flash port

7. Using CardServices to access ports on Compact Flash socket

8. com port access



Return to dotnet framework

 

Who is online

Users browsing this forum: No registered users and 50 guest