supported Hayes AT commands - Windows Mobile Development and Hacking General

Some years ago I've developed a small CRM application (c# .Net 2.0) that has been interfaced to my old Siemens S45 via serial port. My application uses the GSMComm library (managed code) that uses Hayes AT commands to read/send SMS messages.
Now I've switched to the HTC Diamond. Wonderful piece of hardware, but it seems it doesn't support several AT Commands.
I've installed the Diamond as a bluetooth modem on Com3. I can use it for thetering with no problem (never installed activesync).
I can also connect to it with HyperTerminal and submit AT commands, but those I would need to manage SMS don't work.
For instance, I can submit
ATI0
and the phone returns
"Microsoft Corporation AT Command Interpreter Settings..."
but if I try to submit
AT+CMGL=4
I get an ERROR.
My old Siemens, instead, accepts AT+CMGL=4 and returns the list of all SMS.
Can I set my HTC in some kind of "Standard Modem Mode" so that it accepts all AT Commands? Is there a switch or registry entry or an AT command for such purpose?
Thanks in advance.

Related

Data Call between two XDA's

Hi
I am new to this form.
I had a look at the tsril.zip example as it seems from this forum that to make/receive a data call the ril is the only option. Unfortunately the documentation for ril is nonexistent and I want to ask if someone has done an example of a client/server data call, data transfer between to XDA's.
Thanks in advance.
Anton
It all depends on what type of data you want to transfer. I have never used RIL so I don't know the advantages of it, over the normal programming interface. I say normal, not thinking there is anything wrong with RIL but the little I do know is that RIL is operating system level and is normally hidden from the application programmer. There must be times when RIL must be used if Microsoft forgot functions in the normal APIs.
However I would say that for a data link between 2 devices then RAS seems the way forward. One device would be the Server and the other the Client. I have only ever programmed RAS from the client side, making a Telnet link to an already running server.
I just had a look at the help on Embedded Visual C++ 3.0 and under 'Creating a TCP Stream Socket Application' it explains the server side and then links to the client side. Have a read there.
RAS is not an option as it is a server consept, which I think does not even exist as a service on the desktop windows os let alone on a Pocket PC.
What I am looking for is something similar that you would be able to do with a landline modem or a gsm modem connected to a serial port of a pc (even a usb modem) which is to send AT commands to make/accept a call and then to make use of the serial port as if it is an io stream. This is possible on windows, linux using either c#, c++ or java. I can even do this with an embedded gsm module like the siemens TC45 java module.
What I can not understand is why Microsoft and the XDA suppliers (I am using a Qtex running Pocket PC 2002) is making it so difficult to make/answer a data call and let you run your own protocol over the connected stream.
RAS (Remote Access Services) is built into all Windows Operating Systems, including Windows CE. Did you look up the help example I pointed to ? What you do with RAS on an application level is for you to code but the connection itself is handled by the operating system.
As to making a connection similer to a modem and using AT commands. Then no you can't use AT commands directly, but you don't need to. To get that type of connection you need to use TAPI. Once Tapi has made a DATA_MODEM type connection, you use the TAPI callback connect event to then ask for a file handle that you can use with the normal WriteFile and ReadFile commands.
I already have something on this forum about that see:-
http://forum.xda-developers.com/viewtopic.php?p=7857&highlight=#7857
The problem is not so much making the data call but it is accepting/answering the data call that I can not get working on the XDA
Not sure if this is your problem, but in Australia they have a seperate "data" phone number for the same SIM. If yo call one number you get voice, if you call another number you get data on the same sim. Not sure if this may be effecting you.
I just looked into all this ras stuff a bit deeper, and yes I think I may of been talking rubbish. Although RAS does exist in PPC2002, it can't see any functions that allow the device to answer the line. I can see that PPC2003 has a Ras Server and RasIOControl that looks like the answer there.
Also looking into Tapi, I can't see how you answer a data call using that.
So I now understand your problem. It seems PPC is made as a client device.
Is GPRS the answer ? With that the link is always present and then you can use the built in Ras functions on seperate devices. Since you only pay for data actually sent then would it matter if the network link was always present ?
I have only worked out Tapi and Ras from the client side so I have never had this problem, but I agree it is an interesting one. I will have a bow out of this thread for a bit and see if anybody else knows how to Answer a Call.
Thanks for trying.
GPRS is also not the answer as you need a server in between that both XDA's can connect too and use as a router as the XDA's do not get fixed IP adresses but actually a NAT adres from the APN so you can not connect directly between the two.
Now that's an interesting thought, how about using some free web space to act as a pigion hole for your data ?
Believer: A seperate number? How do you know this, and what would the number be?
I can actually make two XDA connecting to each other using TCP. The trick is that I have one client always connect to a server to register it IP address with an ID. Then the caller send a query to the server to look up the callee's IP address.
In this way, accept() and connect() work fine.
I am using AT&T network and not sure about if other networks behave the same.
I wrote two application using TAPI. One is ModemDial and the other is ModemWatch, if I make a voice call the ModemDial dials the number successfully and ModemWatch reports that an incoming call exist. But when I change the behavior of call to DATAMODEM, the ModemWatch couldn't track any incoming call.
Is there any one, had some experience with pick a call for DataModem?
Best regards,
A. Riazi
riazi said:
I wrote two application using TAPI. One is ModemDial and the other is ModemWatch, if I make a voice call the ModemDial dials the number successfully and ModemWatch reports that an incoming call exist. But when I change the behavior of call to DATAMODEM, the ModemWatch couldn't track any incoming call.
Is there any one, had some experience with pick a call for DataModem?
Best regards,
A. Riazi
Click to expand...
Click to collapse
In your ModemWatch application make sure you are calling lineOpen with dwPrivileges (the 7th parameter, 1 based) equal to LINECALLPRIVILEGE_OWNER and dwMediaModes (the 8th parameter) equal to LINEMEDIAMODE_DATAMODEM.
If you're able to answer a voice call successfully, making these changes to the ModemWatch application should allow you to answer a data call.

V.110 datamodem in TAPI

I wana use V.110 9600....
I think I must use lineSetDevConfig(...)
but this function always return 0 and do nothing
Can you pass some source codes?
I wrote a DLL in eVC that makes a Tapi datamodem call and then called it from a simple eVB program just to show what functions it contained.
Have a look at the code for the DLL and you will see how I made a datamodem connection using TAPI.
No...No..No..
I know it all
FROM http://msdn.microsoft.com/library/d...ry/en-us/APISP/html/sp_tsp_cellbeararinfo.asp
"9,600 bps (V.32 compression setting)
Note This value is the standard setting used for 9,600 bps circuit switched data calls."
IN TEORY
I can select V.34 or V.110
IN DOWN OF PAGE
"An application may use lineGetDevConfig to determine the current settings."
...and I think I can use lineGetDevConfig and lineSetDevConfig
...but how?
Hello,
many thanks for the source code!!!javascript:emoticon(':wink:')
javascript:emoticon(':wink:')
I want to use the XDA for internet access via my laptop. With the new Rom version a programm WMODEM is delivered with the device. But with WMODEM there is only a GPRS connection possible.javascript:emoticon('')
javascript:emoticon('')
So I am searching for a programm like WMODEM which makes ist possible to use the XDA as a modem with which a can dial numbers via ATD...
Is this possible?
If yes where ?

how 2 use non default port with Terminal Service Client?

In WM5 there is a built in Terminal Service Client. I need to connect to a PC that is behind a firewall and is using a non default port number.
I am easily able to connect via Windows RDP, but the WM Terminal Service Client does not seem to even try and connect if i use a non standard port number.
Example: \\10.0.0.1:4540
Any ideas how to get this to work?
I'm holding a baby in one hand, so briefly, is possible, need to edit registry appropriately. VJFullscreenTSC thread may discuss setting but it's googalable. I think it's the only setting that can be changed.
V
Bonus first hit:
http://theillustratednetwork.mvps.org/RemoteDesktop/RemoteDesktopSetupandTroubleshooting.html
at the bottom

C# SerialPort - can't send data via (virtual) com-port

Hi!
I want to write a little remote software for my pda (HTC Prophet), with which i can control some things of my laptop.
My problem is, that i can't send data via the com-port from my pda to the laptop (it's a virtual com-port because they are connected via bluetooth).
I'm using Visual Studio 2005, OS is Windows Vista, PDA is a Windows Mobile 5!
Is there anybody that can help me with solving that problem? Which settings do I have to chose so that I can establish the connection via com-port? If necessary I can also post some code!
Greetings and thanks,
Nico
n2daico said:
i can't send data via the com-port from my pda to the laptop
Click to expand...
Click to collapse
What programming language (version of the NETCF) are you using?
Can't send as in?
- Can't create port?
- Exceptions thrown?
- Data sent but not received?
- Haven't written the code yet?
Not sure I'll be able to help, but a bit more info on the problem will help people to help you.
Gingercat.
-C# with .Net 2.0
-No exceptions
-Laptop receives no data (checked that with a com-port listener)
-I already have the code
concerning the bluetooth settings in vista:
-com-port 6 (incoming)
-can't set an outgoing port for the laptop on the pda (only for other paired mobile phones)
Do you need further information?
Greetings and thanks,
Nico
No ideas and hints?
Does the bluetooth stack on your laptop support the Serial Port service?
I think so! It's the Widcomm BT stack!
??
No other ideas or hints?
I need more information...so please help me

[Q] Sending command line to remote desktop

Hello all,
I have been searching the forum but could not find an answer to my question. I have installed a TightVNC server on my dekstop in order to remotly control it by my HTC desire. It works great with the android VNC app.
But the thing is, i only want to send a command line to my PC without using the whole app. I'm designing my own app where i want to send a command lines to my computer. It's just a simple app with a few buttons in order to switch my lights on and off in my room. I have running it on my PC right now with winlirc, which can be controlled by entering a command line.
Is there anyone who can provide me with the Code that connects to the server and can send a command line? If it is not possible to send a command line, then maybe just a way to send a keystroke so i can use autohotkey to act upon it.
Thanks
Have you tried SSH?
I'm working on a windows PC with openSSH at the moment.
But that is just in order to create a secure channel. Don't need it right now since i'm only working in LAN area. Just need the source code that i can put in my app in order to send a command/keystroke

Categories

Resources