GSM Shop GSM Shop
GSM-Forum  

Welcome to the GSM-Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features.
Only registered members may post questions, contact other members or search our database of over 8 million posts.

Registration is fast, simple and absolutely free so please - Click to REGISTER!

If you have any problems with the registration process or your account login, please contact contact us .

Go Back   GSM-Forum > Other Gsm/Mobile Related Forums > GSM / HSDPA Modems and Routers


GSM / HSDPA Modems and Routers GSM , HSDPA , WCDMA, LTE Modems and Routers Unlock And Firmwares

Reply
 
LinkBack Thread Tools Display Modes
Old 02-02-2013, 20:03   #91 (permalink)
No Life Poster
 
fr3nsis's Avatar
 
Join Date: Oct 2005
Location: Rome , Italy
Posts: 1,530
Member: 190882
Status: Offline
Sonork: BB PIN: 7C83D9CE
Thanks Meter: 1,282
Donate money to this user

ok here is the problem
for switch to download mode i send 0x3a command
strange , i have one hisilicon device and it can switch on download mode like qm devices
  Reply With Quote
Old 02-02-2013, 20:17   #92 (permalink)
vve
Freak Poster
 
Join Date: Mar 2002
Location: Moscow, Russia
Age: 53
Posts: 219
Member: 10397
Status: Offline
Thanks Meter: 45
Quote:
Originally Posted by fr3nsis View Post
for switch to download mode i send 0x3a command
This will not (and doesn't) work for this modem since Huawei's native firmware doesn't support QCDM protocol. Its own proprietary protocol resembles QCDM - it's HDLC-like too, maybe some commands are the same...but it's different.

I've just ran sniffer on PC UI while flashing E3276 with native "wizard": it doesn't go to diag at all! AT^GOLOAD command is used to switch to download mode instead.
  Reply With Quote
The Following User Says Thank You to vve For This Useful Post:
Old 02-02-2013, 20:23   #93 (permalink)
vve
Freak Poster
 
Join Date: Mar 2002
Location: Moscow, Russia
Age: 53
Posts: 219
Member: 10397
Status: Offline
Thanks Meter: 45
E3276 is funny device. It supports a number of extremely long AT-commands, like AT^GETEXBANDTESTINFO.
  Reply With Quote
Old 02-02-2013, 20:29   #94 (permalink)
Major Poster
 
Join Date: Jan 2013
Location: Belgium
Posts: 41
Member: 1875869
Status: Offline
Thanks Meter: 2
Hello,
@vve and fr2nsis.
Thanks a lot for your valuable information.
I'm going to investigate that issue further and report the results to help in the development.
In the meantime I've got another EM820W with the non MBIM firmware.
It will help me to check if the drivers hacked to make the MBIM device working are OK.
I will also check if HF 1.2 works with the standard non MBIM modem under Win7.
Juts give me more time.
Yves
  Reply With Quote
Old 02-02-2013, 22:46   #95 (permalink)
Major Poster
 
Join Date: Jan 2013
Location: Belgium
Posts: 41
Member: 1875869
Status: Offline
Thanks Meter: 2
@vve
Regarding your question on disabling unneeded components, the answer is yes.
I've disabled the occurrence of a 3G broadband network card, keeping only the 3G broadband connect modem.
When the network card was enabled I had no communication.

Here are the AT^SETPORT results:
Quote:
AT^SETPORT?
ff;1,3,2,5,6,7;ff;20
OK

AT^SETPORT=?

^RSSI:9
^CSNR:-95,-23
AT^SETPORT=?
1:MODEM
2:PCUI
3IAG
4:PCSC
5:GPS
6:GPS CONTROL
7:NDIS
A:BLUE TOOTH
B:FINGER PRINT
D:MMS
E:PC VOICE
20:MBIM(NCM2.0)
A1:CDROM
A2:SD
OK
Regards.
Yves

Quote:
Originally Posted by vve View Post
YLG80

Since I don't have any MDM8200-based Huawei devices in my hands, I did some modes/drivers investigation with MDM9200 modem, E392. PIDs are not the same as yours, of course, but this info can be helpful for you, I think.
Here are results in format "Mode - PID - components available - INF file(s) used":

1. Initial (before modeswitch) - 1505 - CD or SD or both, as configured with AT^SETPORT - ew_hwusbdev.inf .
2. Normal - 1506 - any supported combination, as configured with AT^SETPORT - ew_busfilter.inf + ewser2k.inf etc. (depends on component).
3. Factory - 1001 - Modem, PC UI, Diag - ewser2k.inf .
4. Download - 1003 - Modem, PC UI - ewser2k.inf .

P.S. Didn't you try to disable "unneeded" components before your flashing attempts? Say, to disable all but PC UI, modem and diag ports:
AT^SETPORT="A1;1,2,3" .

And what is your current component configuration (AT^SETPORT?) ?
  Reply With Quote
Old 02-02-2013, 23:10   #96 (permalink)
Registered User
 
Join Date: Mar 2009
Location: india
Age: 41
Posts: 123
Member: 998932
Status: Offline
Sonork: DJ-23
Thanks Meter: 18
ok dear i will try it
  Reply With Quote
Old 02-03-2013, 01:01   #97 (permalink)
vve
Freak Poster
 
Join Date: Mar 2002
Location: Moscow, Russia
Age: 53
Posts: 219
Member: 10397
Status: Offline
Thanks Meter: 45
Quote:
Originally Posted by YLG80 View Post
Here are the AT^SETPORT results:

AT^SETPORT?
ff;1,3,2,5,6,7;ff;20
Well, you have an EXTREMELY new firmware! Even in latest available versions for latest devices (with LTE support etc.) we have the following format for AT^SETPORT parameters:
AT^SETPORT="<list for Initial mode/PID>;<list for Nomal mode/PID>". List is set of comma separated component IDs for respective mode.
For example, AT^SETPORT="A1;2,3" means that CD only is enabled in Initial mode plus PC UI and diag port are enabled in Normal mode.
Value "FF" for component ID has a special, not completely explored meaning. E.g. in case of MDM9200-based devices putting FF in Initial mode list results in some "modified" or "default" Normal mode with diffetent PID - 140C instead of 1505 in case of E392 and E398.

In your case, we can see 4 - separated by semicolons - lists istead of 2. Each of them corresponds to different mode/PID. What are 2 additional modes? The last, 4th one, is clearly MBIM. And the 3rd...I don't have a clue for now. Let's make some investigation here. Try to execute the following commands and see what is changing in Device Manager.

First of all, let's try to get rid of that "FFs":

AT^SETPORT="A1;1,2,3;A1;20" or
AT^SETPORT="A1;1,2,3;2;20" .

If above results in error, let's leave that 3rd list unchanged for this time:

AT^SETPORT="A1;1,2,3;FF;20" .

Next thing to try - is it possible to add more components to MBIM mode list? From initial state:

AT^SETPORT="FF;1,2,3;FF;2,20"

And last combination for now - what if we try to set "FF" as an only value for MBIM list? Try this:

AT^SETPORT="A1;1,2,3;FF;FF"
  Reply With Quote
Old 02-03-2013, 18:47   #98 (permalink)
Major Poster
 
Join Date: Jan 2013
Location: Belgium
Posts: 41
Member: 1875869
Status: Offline
Thanks Meter: 2
Huawei EM820W (continued)

Hello vve,
Yes the firmware is new, dated of December, 15, 2012. (Lenovo S206)

I've tried to send the AT^SETPORT parameters, but it looks like that modem does not accept that command to set parameters.
Still investigating how to use that command.

I've checked the drivers loaded with the standard and the MBIM modem.
They are the same, so I guess you're right when you advise to change the MBIM mode and get rid of the FF's.

@ fr3nsis
Don't worry with HF version 1.1 and 1.2.
Your prog is working OK with an EM820W with the standard firmware (non MBIM).
So I guess I shoudl find a way to switch the settings as advised by vve.

AT$QCDMG:
Playing with revskills with the standard modem, I've found that I can switch back and forth to download (pid 1003) and normal mode (pid 1404).
It's interesting because that was what I was looking for to resolve the issue in the android tablet with that modem.
After a while (up to sevral hours), it drops down to download mode (pid 1003) and we cannot not get it back to normal mode without rebooting.
I believe that we must use QCDMG commands.
How can I send that command 0x7E3A to switch to download mode and 7E02 to reset the modem to normal mode, via a terminal.
Do I have to enter the ascii equivalent char for 3A or 02 ?

Thanks for your information.
Yves
  Reply With Quote
Old 02-03-2013, 19:16   #99 (permalink)
No Life Poster
 
fr3nsis's Avatar
 
Join Date: Oct 2005
Location: Rome , Italy
Posts: 1,530
Member: 190882
Status: Offline
Sonork: BB PIN: 7C83D9CE
Thanks Meter: 1,282
Donate money to this user
remember that need to send also checksum + 7e at the end
if i rememer good for 3a lcommand is 7e 3a 3a 31 7e
sniff revskills or my prog...now i havent pc with me
  Reply With Quote
Old 02-03-2013, 19:47   #100 (permalink)
vve
Freak Poster
 
Join Date: Mar 2002
Location: Moscow, Russia
Age: 53
Posts: 219
Member: 10397
Status: Offline
Thanks Meter: 45
Quote:
Originally Posted by YLG80 View Post
Yes the firmware is new, dated of December, 15, 2012. (Lenovo S206)
Well, I've taken a look at it and compared its code to code in 11.810.09.
The first things I've seen were a lot of strings with "MBIM" and new command - AT^SETMODE. Isn't it the one that can be used for MBIM/usual mode switching?
For the start, try to execute it in these forms:

AT^SETMODE=?

and

AT^SETMODE?

Let's look at results.
Quote:
I've tried to send the AT^SETPORT parameters, but it looks like that modem does not accept that command to set parameters.
What exactly is going wrong? You got error message after, say,
AT^SETPORT="A1;1,2,3;FF;20"
or something else? Are you sure if you enter all those double quotes, colons and semicolons correctly?
Quote:
How can I send that command 0x7E3A to switch to download mode and 7E02 to reset the modem to normal mode, via a terminal.
Do I have to enter the ascii equivalent char for 3A or 02 ?
No. Just create a binary file with desired bytes and sent it to port with copy (Windows) or cat (UNIX) OS shell command. Examples:
copy a.bin COM5 (Windows) ;
cat a.bin >/dev/ttyS5 (UNIX).
  Reply With Quote
Old 02-03-2013, 19:50   #101 (permalink)
vve
Freak Poster
 
Join Date: Mar 2002
Location: Moscow, Russia
Age: 53
Posts: 219
Member: 10397
Status: Offline
Thanks Meter: 45
Quote:
Originally Posted by fr3nsis View Post
if i rememer good for 3a lcommand is 7e 3a 3a 31 7e
No, correct is 7E 3A A1 6E 7E. First 7E may be omitted, if desired.
  Reply With Quote
The Following User Says Thank You to vve For This Useful Post:
Old 02-03-2013, 22:14   #102 (permalink)
Major Poster
 
Join Date: Jan 2013
Location: Belgium
Posts: 41
Member: 1875869
Status: Offline
Thanks Meter: 2
Huawei EM820W (continued)

@ vve and fr3nsis
Thanks so much for your great knowledge. It helps so much !

I've captured the data to switch the modem to download mode and I've found the exact binary sequence that you mentioned above .
A giant step ahead to resolve that really annoying android issue that drains our battery.
I think we can now make a little prog to monitor the pid and when it switches to pid:1003 send a reset command to the modem without reboorting. Or even patch the RIL.

MBIM MODEM
About the commands with the MBIM modem:
Quote:
AT^SETMODE=?
ERROR
Quote:
AT^SETMODE?
^SETMODE=0
OK.
Quote:
AT^SETPORT?
ff:1:3:2:5,6,7;ff;20
OK
Quote:
AT^SETPORT=?
1:MODEM
2:PCUI
3IAG
4:PCSC
5:GPS
6:GPS CONTROL
7:NDIS
A:BLUE TOOTH
B:FINGER PRINT
D:MMS
E:PC VOICE
20:MBIM(NMC2,0)
A1:CDROM
A2:SD
OK
I've make sure to enter your command exactly as follows :
Quote:
AT^SETPORT="A1;1,2,3;FF;20"

ERROR
I've alos tried after an ATZ to no avail.
Regards
Yves
  Reply With Quote
Old 02-03-2013, 22:39   #103 (permalink)
vve
Freak Poster
 
Join Date: Mar 2002
Location: Moscow, Russia
Age: 53
Posts: 219
Member: 10397
Status: Offline
Thanks Meter: 45
Quote:
Originally Posted by YLG80 View Post
I think we can now make a little prog to monitor the pid and when it switches to pid:1003 send a reset command to the modem without reboorting. Or even patch the RIL.
Didn't get it. What OS you are talking about - Windows or Android?
If you are going to flash your modem in Windows, you should make a driver to be installed for PC UI port in download mode, not a modem reset...
Quote:
AT^SETMODE?
^SETMODE=0
OK.
Good. And what will happen if we try
AT^SETMODE=1
?
Look at Device Manager in case of positive result ("OK" answer).
Quote:
AT^SETPORT="A1;1,2,3;FF;20"

ERROR
It's a pity. Haven't you tried all 5 combinations from my yesterday's post?
  Reply With Quote
Old 02-03-2013, 23:28   #104 (permalink)
Major Poster
 
Join Date: Jan 2013
Location: Belgium
Posts: 41
Member: 1875869
Status: Offline
Thanks Meter: 2
Huawei EM820W (continued)

@vve
Sorry, I'm busy on that modem in 2 forums.
The other is dedicated to the Lenovo K1/ Medion P9516 Android tablet.
That modem often drops to DM mode draining the battery in idle mode.
That was the reason why I was talking about pid 1003 in that tablet.

I'm currently trying to downgrade that modem mainly under Windows 7.
(My old XP laptop has died a few day's ago).
I'm still trying to fix that issue with fr3nsis HF with the MBIM modem.
It should work as is.
But ... I will also test downgrade methods under android/linux if possible.
If I can drop the MBIM modem to DM mode under android, I know how to downgrade the f/w.

Tomorrow I will test the different AT^TESMODE combinations.
If I remember AT^SETMODE=1 returned an ERROR. I will double check that as well.
  Reply With Quote
Old 02-04-2013, 09:20   #105 (permalink)
Major Poster
 
Join Date: Jan 2013
Location: Belgium
Posts: 41
Member: 1875869
Status: Offline
Thanks Meter: 2
Huawei EM820W (cont'd)

Hello vve
only that SETPORT command is returning OK:
Quote:
AT^SETPORT="FF;1,2,3;FF;2,20"
OK
However AT^SETPORT=? returns the same list as above.


@fr3nsis
Don't ask me why, but today HF can Read Modem Info from my MBIM modem.
I've started USBtrace to try to find why it was unable to read the Info, and surprisingly the Modem Info was immediately displayed.
It continues to work without USBTrace.
It's perhaps due to the SETPORT tests I've made, I don't know.

Yves
  Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
NU2000a - All Nokia Flasher & Unlocker! VictorGSM Main Sales Section 0 12-14-2000 19:58
6150 + NCDS3.0 + Win2000 + IBM600X + Xyrcom GSM modem (realport)? bibi2k Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 1 03-21-2000 17:33
Universal SP Unlocker 4.0 - home page !!! bp.bonus GSM Mobile Links 0 01-22-2000 22:31

 



All times are GMT +1. The time now is 16:15.



Powered by Searchlight © 2024 Axivo Inc.
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
- GSM Hosting Ltd. - 1999-2023 -
Page generated in 0.24680 seconds with 10 queries

SEO by vBSEO