Hello, I do know here is all about XDA, my problem is about smatphone. But at this moment i cann't find another place to ask my question, execuse me.
I have written a programm to send AT to gsm modem on xda1, i would like to let the program running on a smartphone, because the OperationSystems of both are fast same.
With Port "COM2" comes Error by CreateFile. I changed the Port to 9 and CreateFile runns like OK. But now by sending at- command, I use the WaitCommEvent function, and the smartphone is blocked on it.
Code:
if (!WaitCommEvent(hCom, &event, NULL))
{
return -12;
}
i have searched this problem on google, and many other people have the same problem. but I didn't find the reason and answer,yet.
So i would likt to ask here, what is the problem and how can I go through it?
thanks a lot
:?:
your first question: why you can not open com:2 ?
my answer: you can open com:2 ,but you have to set the second
parametre of createfile() to 0 which means you can not do any read or
write. So i think it may be useless for you.
if you know how serial driver is written, you will know that there are
two kinds of serial driver which are "Single access" and "multiple access".
If your serial driver is a "single access" one, and windows ce has already
open com:2 when you turn on your smartphone, i think you will not be
able to open com:2 anymore because your smartphone system had it.
solution: you might have to write a serial driver yourself. Because the
serial driver of your smartphone is not written by microsoft, it is written
by the OEM manufacturer of your smartphone, and it is part of the BSP.
//////////////////////////////////////////////////////////////////////////////
your second question: why your program block?
well, i do not know whether com:9 supports gsm AT commands or com AT
commands. if it does not, there will be no response, and your program will
block.
Related
Hello,
Here's some concrete work from the IMEI update project.
Please use the attached file and report your findings here.
Instructions:
1. Extract the ZIP
2. Run the file iWizard
3. Make sure ActiveSync is running and your phone is connected via USB
4. Make sure Windows Mobile has finished booting
5. Click "Next" in iWizard, let it work (shouldn't take more than 10 seconds)
Let us know:
1. If iWizard worked:
a. The model of your phone
b. The IMEI # and checksum codes if you like (you can PM for your security)
2. If iWizard failed:
a. How it failed
b. Any error messages, or screenshots of failure
c. The model of your phone
The goals of this alpha release are as follows:
1. To determine which HTC phone models work with our method
2. To determine the algorithm of the IMEI checksum codes so we can update
Thanks for your interest!
Don't get too excited - this alpha release does NOT change your IMEI yet. That is coming soon, as soon as we know which phone models the above method works on and is reliable with!
Note: The iWizard works great on my i-mate k-jam.
I tried this a minute ago.
My qtek 9100 is connected to my pc, can synchronise with active synch but I received the error message I attached.
I have spv m500, its synchronized with my pc, but I recive the same error as canstb said...
sorry for my first quick reply.
I was thinking that my qtek9100 was cid unlocked apparently it was not. I used the tool lokiwiz v2b to unlock it and ran your program again.
and here is the result.
Thanks, please keep the results coming in! We'll figure what the checksum alg. is and then fix your phones :lol:
Guys, I think you should PM Sinan rather then publically posting your IMEIs.
As we all know, cloning and changing IMEIs may be illegal in your jurisdiction; additionally, publically posting your IMEI is liable to end up with it being cloned by thieves not from this board etc. Not wise, so be careful, and please stay legal.
V
thanks for your warning.
sinan, I am deleting my attachment to my previous message. if you need the info again, just ask for it.
can anyone tell how to download lokiwiz, and how can i find out if my Magician iz CID locked or not?
and is there any tool for unlocking SPV m500 (magician)?
thnx
Yes, can you please PM it? Also, did the tool accurately detect your real IMEI?
Everyone, please PM your IMEI and checksums for security...or if you're not comfortable with that, please just say if the tool correctly detected your IMEI on your phone model, and report the phone model.
aWizard/Lokiwiz can be used to CID unlock phones, available here on this forum as well...pretty easy to find and use them, they're free tools as well.
You may need to downgrade your ROM first...
i used lokiwiz to unlock my device, now some other message appears, here is the pic... and the program doesent stop, it tries to find imei, but it seems like it will never stop...
Is this on Vista? Please see if it works on a regular XP box...if not, thanks for letting us know, be sure to try with the next alpha.
no its not vista, its just a theme for xp.
so you think there might be a solution for my device to?
Was the unlock successful with the CID unlock tool?
I think you may need to downgrade your ROM and CID unlock your tool first.
According to what I've read in another discussions, this tool would work only on devices that store IMEI on DOC chips
These are - nearly all smartphones produced by HTC, and communicators like HTC Wizard and Prophet. The tool would never work on HTC Himalaya, BlueAngel, Universal, etc.
You can easily determine would the tool work on your device or not. Just take the ROM update tool, extract it with WinRAR. If it has the file "radio_.nbf" - the tool would not work at all.
The tool should not be called "HTC IMEI Restore Wizard" as it does not support all HTC devices. It should be renamed to something like "HTC IMEI-on-DOC Editor tool".
mimarsinan said:
The goals of this alpha release are as follows:
1. To determine which HTC phone models work with our method
2. To determine the algorithm of the IMEI checksum codes so we can update
.
Click to expand...
Click to collapse
it is easy to determ which models work, just buy all the HTC devices and try yourself and you will know. I am doing same thing, since i don't want risc affect any of the users phones.
chunky charly
Rascal you sound like a baby. We should try to help each other, not put each other down. And remember business is business! You couldnt have thought that you would be the only person that could provide a imei repare tool forever!!
Maybe now you will drop the price of your dongle or even better, make the program work without the dongle!!
Hopefully the release of mimar's tool will drive you to produce better things.
AFAIK the Wizard has a radio rom file, doesn't it? I've used the tool on my Wizard just fine.
Raskal, tale the suggestions of our good friends here - update your obsolete sales mechanism, get rid of the pkey dongle, that will probably be the only way for you to remain competitive.
Great work MimarSinan
thanks for share and not change a my device imei ..
my device : HTC Magician
device name: MDA Compact
Your device is CID unlocked, right?
Leerim said:
I have spv m500, its synchronized with my pc, but I recive the same error as canstb said...
Click to expand...
Click to collapse
The spv M500 is a Windows Mobile 2003SE device. As far as I am aware this tool is for Windows Mobile 5 devices.
Hi,everyone
I want to handle the Qualcomm diagnose port in Dopod 838 pro.I find the com port name is MSM1:,which is list in Registry->HKLM->Drivers->Active->48.The key is Drivers\BuiltIn\QCT_DIAG.
Now i can write something to this port(such as dial a call use Qualcomm command format,and it dial ok),But the questions is i can not read anything form this port.The C++ code of handle serialport is be used in Xp and PDA base WM5 sucessfully.
Who can tell me the reason?
That is important for me and thanks you very much!!
Same issue
Forzx, were you ever able to resolve this issue. It seems that an DeviceIoControl command must be sent to the phone to allow reading the port. There is an example that sends the command IOCTL_QCT_REGISTER_EVENT but I do not know the proper value for this. Do you know anything more?
I am fighting with these challenges, i am near to the final positive result,but still have problems...
I hope you can help me.
1) connect to internet via DUN
2) Connect to internet via PAN
3) Connect to internet via USB modem
4) Connect to internet via USB Internet sharing
5) Browsing and synchronizing the device
These are the little result so far :
1) Installed this cab :
http://forum.xda-developers.com/showpost.php?p=1351044&postcount=21 (thanx to the Author) and DUN is again available.
IT works without problems with Winzoz, but i am not succeeding with Linux.
I made the usual steps (like this post explain, i.e. : http://klamstwo.org/evad/archives/20 ) linux finds the modem but cannot make it call... (init strings for the modem perhaps?)
What the init string for the TyTN modem?
Any Hints?
( an A1000 works perfect via DUN and the same stick)
2) I followed this guide (thanks to the author) http://www.klamstwo.org/evad/archives/40
And the whole thing works (bnet is connected with IP address 192.168.0.187 and has gateway 192.168.0.1 ) except the fact that i cannot browse internet pages.
Could it be a DNS problem?
I'll try manual configuration and let you know.
3) I tried the connection using the ttyUSB0, modem is ready but does not initialize... HINTS ?
4) SYNCE or something easier?
5) I think Synce is the answer, but at the moment it does not work in my distribution (mandriva). A lot of problems during installation (RPMs and source compiled, non difference). I'll try again. I've followed the How to published around here, (http://forum.xda-developers.com/showpost.php?p=1550906&postcount=4) but i have problems with odccm... it does not install.
other ideas?
I hope this post could become a sort of "mini how to", combining different issues related to the same argument : TYTN and LINUX
Thanx in advance to everyone who will help.
Are these challenges so HARD?
No one here around uses linux and TYTN?
Let's try solving one by one,
let's start with USB.
I tried this one
http://www.mobile-stream.com/usbmodem_wm.html
with windoz it is immediately recognized as a usb mmodem, but with linux the ppp scripts waits for "OK" till timeout.
I also tried the old wirelessmodem, the one for WM5, posted here
http://forum.xda-developers.com/showthread.php?t=306041 ,
but it does not show the kind of connection in the box (it is blank).
I tried to start it even if the box is blank, Windows recognizes it as a serial device, linux gets a lot of "OK" (KPPP) and Tytn shows the message "Please end data call first!"
I also tried this:
http://www.myehud.com/xv6600/usbmodem.html
But when i hit start It says "Not registered to the network!".
This is about Linux and USB moden... perhaps someone of you has succedeed?
Please report.
The other issue would be having internet sharing working with linux and usb ...
So linux users, let's try...
i'm a ubuntu user, and i feel you.. i don't want to run virtual box, so i just deal with no direct pda syncing.
i tried synce, and failed twice, months apart. (probably my fault somehow)
i do however have to use windows at work, so i end up doing most of my flashing and such there.
though, if you find a good NATIVE solution, let me know!
I am using Kubuntu, and can browse the My Documents folder of my PDA, so at least everything is talking to each other. However, I have not got round to configuring the synchronisation side of things; hopefully it should be possible.
Neil,
did you install synceor is somethingnative in your distribution?
Ahd what about the point 1 to 4?
Whether as internet sharing or modem, usb o BT, are you using the Tytn to connect thelinux box to the net?
I am really coing mad, i feel i am so near but i still cannot...
I don't understant why the Pand does not work for example, bnet has the right IP, has it's gatewaqy but still i cannot browse the net...
devilman - no, it was not native; I think it was SynCE, although, I can't be sure. It took some tinkering to get it going, but, now the device is immediately recognised when it is plugged in (USB) and ActiveSync is run.
To get the next stage working, I need to override the choice of library, as it continually tries to use an old version (libsync, I think), even though a new one is installed.
I have not tried 1-4, and, would not be sure how to do them, other than just trying to mount the device as a modem, and then using *99# as the number. In terms of init strings, these vary slightly by service- for example, for Vodafone UK, it is:
Code:
z+cgdcont=1,”IP”,”internet”
(The "z" at front is the AT command for modem reset; it might or might be necessary, but, sometimes helps the connection to work.)
well, I tried, as said in the first post,to use tytn asmodem.
To have it working with BT you have to install the hack in order to have DUn again.
To have it recognizedas a modem you have to put in in in the "modem" status (again, in WM6 wireless modem is not available,so you have to use the old one or the third party product).
In both case the lnux box connects with modem but i son't succeed in having it call the number...
I used the "usual" AT commands, like the "z" and the cgdcount...
Ideas?
I saw you'd got as far as having the device recognised as a modem, but didn't know quite how far you'd got. However, my Linux skills are so poor, I honestly wouldn't know where to go if the standard init. script did not work.
If terms of calling a number, would that not be *99# though?
Please, has noone found out how to have it working?
I am going mad about this.
I need a way to connect my linux box via tytn, usb or bt...
Any hint?
Uhm, for the last one (browsing the pocket pc) I use wm5torage. That turns your pocket pc into a USB disk and Ubuntu easily recognizes that as a removable drive. It is not the perfect solution but it is easy, fast and works.
and...i have another question
can anyone install an embedded-linux on Tytn, i mean use dual-system ?
is it possible?
ss1271 said:
and...i have another question
can anyone install an embedded-linux on Tytn, i mean use dual-system ?
is it possible?
Click to expand...
Click to collapse
there is another 3d all for this issue.
devilman said:
Please, has noone found out how to have it working?
Click to expand...
Click to collapse
I'm on Ubuntu 7.10 and running the official T-Mobile Austria WM6 upgrade on my Vario 2, Bluetooth PAN works flawlessly:
Code:
sudo pand --connect XX:XX:XX:XX:XX:XX
sudo dhclient bnep0
Back in WM5 days Bluetooth DUN worked as well, using the following chatscript in /etc/chatscripts/provider which I created with pppconfig:
Code:
# This chatfile was generated by pppconfig 2.3.17.
# Please do not delete any of the comments. Pppconfig needs them.
#
# ispauth chat
# abortstring
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
# modeminit
'' ATZ+cgdcont=1,"IP","gprsinternet"
# ispnumber
OK-AT-OK ATDT*99#
# ispconnect
CONNECT ''
# prelogin
# ispname
#ogin: replace_with_name
# isppassword
#ssword: \qreplace_with_password
# postlogin
'' \d\c
# end of pppconfig stuff
and the corresponding /etc/ppp/peers/provider:
Code:
hide-password
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/provider"
debug
/dev/rfcomm0
115200
defaultroute
noipdefault
remotename provider
ipparam provider
usepeerdns
of course, for this solution to work you would have to set up the rfcomm port for your tytn in /etc/bluetooth/rfcomm.conf
Code:
rfcomm0 {
bind yes;
device XX:XX:XX:XX:XX:XX;
channel 4;
comment "T-Mobile Vario II Bluetooth Dial-Up";
}
you should now be able to connect using the "pon" command.
I hope this post is of some help to you... good luck!
http://forum.xda-developers.com/showthread.php?t=344396
ya, too bad ;(
i still can`t use calendar or contact sync functions.
greets, Nik
devilman said:
4) Connect to internet via USB Internet sharing
4) SYNCE or something easier?
I hope this post could become a sort of "mini how to", combining different issues related to the same argument : TYTN and LINUX
Thanx in advance to everyone who will help.
Click to expand...
Click to collapse
Depending on your kernel version (I think this applies to 2.6.21 and greater, but check other docs to be sure), there is a kernel module known as usb-rnds-lite. Get it (links from synce wikis), make it, use it, love it.
I have used it to ICS several devices, 8525, 8925, BlackJack I and II... only quirk is that is works best to start ICS _then_ connect the USB cable.
I suggest you to read this article:
http://ubuntu-utah.ubuntuforums.org/showthread.php?t=598890
You can also search by Google: "bnep0 pand pda linux"
Hi all
Just a quick question. When you upgrade your Rom, and you go through the HardSPL procedure, does this change your devices MAC address/hardware code?
Reason I'm asking is that my GPS software uses that MAC address, which you have to register on their website and they then issue you with a activation code. Problem is, after upgrading I can get the software to work on the phone, but it does not want to accept the same activation code as before.
Any ideas?
Thanks.
i'm not sure abt this but most probably No i guess it doesnt! Maybe someone with knowledge will clear this up.
rafiqc said:
Hi all
Just a quick question. When you upgrade your Rom, and you go through the HardSPL procedure, does this change your devices MAC address/hardware code?
Reason I'm asking is that my GPS software uses that MAC address, which you have to register on their website and they then issue you with a activation code. Problem is, after upgrading I can get the software to work on the phone, but it does not want to accept the same activation code as before.
Any ideas?
Thanks.
Click to expand...
Click to collapse
have you ever formatted your PC more than once. whether if its yes or no...i can tell you i have formatted my pc several times. but the PC always carry the same MAC ID, why??? because its not related to your hard disk. my point is...the MAC ID is a unique ID for every motherboard (in simpler terms) and does not change...
so coming to your device...your device mainboard maintains a specific MAC ID and it does not change even if you have flashed your device so many times...
bottom line is...your device mainboard is a separate partition from your NAND flash....
and unless you mess arnd with the mainboard...it does not change...so flash away....
hey I am hoping someone here can help me out
I just re-flashed to the energy rom series which fixed most of my software compatibility issues. The problem I currently have is this I have aprogram that was wrote for wm5/6.1 what it does is creates a virtual comport to allow the phone to be controlled my AT commands. According to the log file it is creating a virtual comport of COM7 however when I do search the services of the phone there is nothing listed other than the activesync service port.
I am hoping there is someone here that can help me debug and sort this out I just am not up on debugging the WM OS
Thanks,
yonu
is there no one that can at least give me an idea It does create a serial port on the HD2 named com7 but it doesn't become available under bluetooth services
Any advice would be great
Thanks,
yonu