yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] kovjanos:
JMLComm -wifi issue

I have an issue with the wifi toggle switch from CHT 1.8.5 which uses "JMLComm -wifi" call:

Manila version: 2.5.20161332.0

OS version: 5.2.23569 (23569.5.5.0)

Device: HD2

ROM: Miri&Dinik v17.6 (cht 1.8.5)

Turning off the wifi using the wifi toggle switch turns off the wifi and the icon changes but at the next email sync (exchange push mail) it turns on automatically (I checked that I don't have on-demand wifi configured in the registry).

Turning off the wifi from the comm manager does not have this issue.

I tested the "JMLComm -wifi" call directly (from mortscript) and have the same issue. Also tested JMLComm.exe from JMLToday v5.70 and v5.80 and have the same issue.

What kind of additional details required to locate the source of the issue?

R, Janos
[Windows Mobile Apps and Games] JMHL:
@kovjanos : well, well, well .....

JMLComm doesn't turn ON WiFi himself. I think that another process make this. Perhaps. Because if Wifi is OFF, ..... Wifi is OFF !

you say "Turning off the wifi from the comm manager does not have this issue." : Ha ?

There is more way to turn off wifi ? No feedback from another user.

But i look and search for next version ......

A++
[Windows Mobile Apps and Games] kovjanos:
Hi,

It does not matter if I turn ON wifi from

- comm manager -> Wireless -> Wifi or

- JMLComm -wifi

it works fine.

If I turn OFF wifi using the "comm manager -> Wireless -> Wifi" method:

- wifi turns off (no wifi icon on taskbar)

- it remains turned off even if activesync tries to sync

If I turn OFF wifi using "JMLComm -wifi" method:

- wifi turns off (no wifi icon on taskbar)

- on the next activesync's sync event wifi turns back ON automatically

- wifi is on (wifi icon on taskbar)

R, Janos
[Windows Mobile Apps and Games] kovjanos:
wifi issue

Hi!

I compared the registry after turning off the wifi using the commmgr and jmlcomm.

Both of them have:

- HKLM\Software\Drivers\WLAN\

WlanStatus=0 (ONvalue=1)

- HKLM\Comm\BCMSDDHD1\Parms\TcpIp\

DhcpDefaultGateway (empty) (ONvalue=1)

- HKLM\Comm\ConnMgr\Providers\{f792e23c-dc19-4668-9be4-f8688b4c18d6}\BCMSDDHD1\{g942c53d-dc19-4668-9be4-f8791b4c18d6}\Default\

Default (empty) (ONvalue=hejehuja - name of the hotspot)

- HKLM\System\State\Connections\Network\

Adapters (empty) (ONvalue=BCMSDDHD1)

Descriptions (empty) (ONvalue=hejehuja - name of the hotspot)

Count=0 (ONvalue=1)

I have another one if I turn the wifi off using the commmgr->wireless->wifi method but not if I use the JMLComm:

HKLM\System\CurrentControlSet\Control\Power\State\

{98C5250D-C29A-4985-AE5F-AFE5367E5006}\\BCMSDDHD1=0 (ONvalue=1)

I also checked, that connecting the device to a PC (activesync) turns off the wifi - and the same extra reg key the only difference. Unfortunately I can not edit the key so can not test whether changing the value to zero after using the JMLComm solves the issue or not.

I hope it helps...

R, Janos
[Windows Mobile Apps and Games] xnifex:
I'm getting an error for JMLComm with CHT installed. It's worked fine for the last few days that I've had CHT but today it started erroring out. I've attached a screenshot of the error. How can I fix this?

*EDIT*

TMOUS HD2

Stock 6.5 ROM

OS v5.2.21892

Manila v2.5.20121412.2

ROM v2.13.531.1

*edit2*

I just reinstalled CHT & it fixed the issue.
[Windows Mobile Apps and Games] mccune:
Nice little apps!

Wanted to try and use JMLComm to replace some features in my Action Screen on the Touch Pro2 (Rhodium).

To bad Bluetooth toggle doesn't work (because of the Widcomm Stack?).

WiFi toggle seems to work but it's not very solid.

Tried the latest release from your skin package.

Are you planning on making JMLComm compatible with the Touch Pro2?
[Windows Mobile Apps and Games] JMHL:
@mccune : which stack on Touch Pro2 ?

A++
[Windows Mobile Apps and Games] mccune:
The Touch Pro2 (Rhodium) uses the Widcomm Stack.

Here is some info about a way to toggle BT on the Rhodium.

I do have an executable that does toggle but I thought you the info in this thread would be more helpful to you.
[Windows Mobile Apps and Games] JMHL:
@mccune : more questions.

give me the content of :

HKEY_LOCAL_MACHINE\\SOFTWARE\\WIDCOMM\\Version\\Software

HKEY_CURRENT_USER\\SOFTWARE\\JML\\JMLComm

And have you this DLL in windows folder : btpwr.dll

A++
[Windows Mobile Apps and Games] mccune:
1.9.0.4400

I don't have this key in my registry. Probably because I'm running the JMLComm executable? I've created the Toggle shortcuts myself.

No I don't have this file.
[Windows Mobile Apps and Games] ironhead65:
I also use Touch Pro 2, since you are digging in the TP2 Bluetooth stack...is there a possibility to have a command line flag that will output what is connected to the BT stack?

i.e.

Maybe interrupt driven if possible...but more then likely it'll be something that will need to be polled by a Mortscript

This might be hard, as I do not know if you can make "one" program as different BT stacks might need different code...

Just a thought...I was going to use this to figure out where I was (home, work, car). Then have the phone get setup appropriately.

If the export detects my hands free device, a Mortscript would setup for my car (brightest screen during the day, dimmer at night, highest ring volume). If it detects my home dongle, then setup for home (normal screen brightness, lower ring volume), work, well, probably set for vibrate for rings, but still the "tone" for e-mails.

--Ironhead
[Windows Mobile Apps and Games] JMHL:
@ironhead :

1- detect all BT stack : still research & develop.

2- command line for return BT stack : OK (or in registry key ?)

A++
[Windows Mobile Apps and Games] ironhead65:
Ok, anything I can do to help, please let me know! I do know it is Widcomm BT stack for Rhodium (Touch Pro 2)

I think either is AOK. I think maybe Registry is easier for you!

Basically, I want to execute your program with a Mortscript, if it is easy to return a value to that, I would prefer that (cleaner, and keeps "variables" in ram, not in written flash/registry). However, as you are doing ME the favor of adding this, whatever is easier for you!

Again, anything I can do to help, please let me know!

--Ironhead
[Windows Mobile Apps and Games] JMHL:
@ironhead and @mccune: new JMLComm for beta-test soon, patience.

what I do in my program :

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

-to detect stack : if i find "WCE_BTTRAY" window class, it's Widcomm, otherwize it's Microsoft. (-> seems to work on HTC Diamond1 (Microsoft) and HTC HD2 (Widcomm))

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

-to on/off/discoverable :

if widcomm : change "\\SOFTWARE\\WIDCOMM\\BTConfig\\Filters\\AllowOthersToDiscover" register key AND send "WIDCOMM_WM_SETSTACKCONFIG" message.

if microsoft : try "ossvcs.dll" api, otherwize try with "BthUtil.dll" api

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

Add "-status" parameter to create "Software\\JML\\Comm\\stack" registry key

try to add also "-stack" parameter for return a value (for Mortscript)

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

OK ?

A++
[Windows Mobile Apps and Games] MichelDiamond:
hey JMHL,

that sounds really good.

Would it be possible also to add trigger parameters then to handsfree, headset, stereo,...? it should be then implementable with only different send_messages, if you have the correct BT stack now.

thanx for your great effort.

Salut

Micha
[Windows Mobile Apps and Games] ironhead65:
JMHL,

Sounds good!

Hopefully it will work easily, so you do not need to put too much effort in!

--Ironhead
[Windows Mobile Apps and Games] ironhead65:
I was going to perform this in a mortscript that ran when you turned on the phone. I'm not so sure you can interrupt the phone and wake it upon BT devices changing.

If so, that would be neat, but you can handle all of this with some basic logic in a Mortscript.

--Ironhead
[Windows Mobile Apps and Games] JMHL:
@kovjanos : soon for Wifi

-to on/off : replace "ossvcs.dll" api by 'SetDevicePower' api (works on Diamond1 and HD2)

A++
[Windows Mobile Apps and Games] kovjanos:
wow! keen to test new JMLComm!

Thanks, Janos
[Windows Mobile Apps and Games] JMHL:
@all

new JMLPicture soon : Build a picture from multiple images/texts

see post#3

if you have more idea for this....

A++
[Windows Mobile Apps and Games] ironhead65:
@JMHL:

I was re-reading the posts:

"

Add "-status" parameter to create "Software\\JML\\Comm\\stack" registry key

try to add also "-stack" parameter for return a value (for Mortscript)"

Did that mean "-status" and "-stack" are available in the "beta" you e-mailed me?

I did not originally test those options, however did try them just now. It looks like information that already existed. If these were supposed to output what is attached to the BT, I will need further testing. I did see a "dump" of what looked like was the BT stack (that is: "2- command line for return BT stack : OK (or in registry key ?)" ). If this does report the "items" connected to the BT, I will try when I get my BT devices near my phone again.

Thanks! I will await for your reply for clarification!

--Ironhead
[Windows Mobile Apps and Games] JMHL:
@all : JMLComm.exe features :

-3G: on/off, but it's very hard !

-ring: low/normal/medium/high/silent/vibrate, in progress....

-vibrate: to trigger a vibration

... and tries to improve BT and Wifi configuration.

A++
[Windows Mobile Apps and Games] JMHL:
@ironhead65 : soon for you for beta-testing JMLComm v1.96,

-btstack : return 0 if Microsoft, 1 if Widcomm stack (you can use it in .mscr script)

-status : write some informations in HKEY_CURRENT_USER\Software\JML\Comm (wifi_state, wifi_device, bt_state, bt_stack, storagecard...)

-vibrate : make a vibration

-volume: low/high/medium/normal/silent/vibrate/loud.

ATM, i don't report the "items" connected to the BT. I'll see if it is possible.

When ended, i'll sent it.

A++
[Windows Mobile Apps and Games] ironhead65:
JMHL,

Thank you for taking the time to look into this! I am not sure it is going to be easy. I hope so!!

--Ironhead
[Windows Mobile Apps and Games] kurt-willems:
A information status (ON/OFF) in registry would be nice :cool:

Will waiting patiently fore seeing this. :cool:
[Windows Mobile Apps and Games] JMHL:
@kurt-willems :

- status ON/OFF for BT and Wifi ? OK, i'll add it.

for volume :

- mute/normal/vibrate

- low/high/medium/loud

AND ....

-gps to get Lattitude/Longitude coordinates : ATM, in test and it works. Super for next JMToday ! .....

A++
[Windows Mobile Apps and Games] kurt-willems:
Thanks sir; but can you add status on/off (1/0)

also fore vibrate, Phone, Air-plain Modus, silence, In fact if you would do it fore every option you build in the JMLConfig it would be grate! :o:cool:
[Windows Mobile Apps and Games] ironhead65:
JMHL,

I was using your tool recently. I found, that on my device, if I use your program to turn OFF my Phone (-phone:off) then wifi on, this works very well.

Then, I turn the wifi off, and phone on. When I do this, I loose my Data link.

I run SPB Mobile Shell (which also has a button for phone off / on). If I use your program to do phone off, then use this button to turn it back on, everything is AOK.

Is there something I can do to get you information to tell you what did not get enabled when I did -phone:on ?

Thanks!

--Ironhead
[Windows Mobile Apps and Games] JMHL:
@all : informations updated for JMLToday V5.90
[Windows Mobile Apps and Games] omek07:
Hello JMHL

i install the JMLtoday but i want to use only the JMLComm on my Omnia II with the EndKey Replacement from Johcos

i use only the JMLComm and the wifi toggle its work the volume its work but i have problem with Data connections , i can open the Gprs but i cant close it ....

What i can do for this ?????

Edit: Can someone upload here the "HKCU\SOFTWARE\JML\COMM " registry files because i dont find it .....

Thankssssssss
[Windows Mobile Apps and Games] JMHL:
@omek07 : must work ! Verify : try with -data: off OR -data to switch on/off

My registry keys :

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

[HKEY_CURRENT_USER\Software\JML\Comm]

"gps_lon"="-0.543961"

"gps_lat"="44.830523"

"gps_time"="07:47:18"

"gps_date"="2010/11/08"

"gps_sat"=dword:00000005

"backlight_level"=dword:00000000

"backlight_mode"=dword:00000000

"sound_volume"=dword:00000000

"sound_ringer"=dword:00000000

"sound_mode"=dword:00000001

"bt_stack"="Widcomm"

"bt_state"=dword:00000008

"wifi_device"="{98C5250D-C29A-4985-AE5F-AFE5367E5006}\\BCMSDDHD1"

"wifi_state"=dword:00000001

"phone"=dword:00000001

"cellular"=dword:00000009

"data"=dword:00000000

"activesync"=dword:00000000

"operatorname"="Orange F"

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

A++
[Windows Mobile Apps and Games] lesscro:
Hello bro'...

i m try to using JMLSms v1.80 on wisbar...

Mes2Reg is good but i prefer a part of your Exe...

I create another Theme for Wisbar...

Then i request a possibility to have a parameter to perform line in SMS body...

In titanium, Space is defined but on Wisbar... we need add some tweaks to have a new LINE

Then is there a way to have limit charater to body like

JMLSms.exe -read:all:Max:40"

then in registry :

HKCU,"\Software\JML\Sms\Sms1", "subject1") 40 character

HKCU,"\Software\JML\Sms\Sms1", "subject2") 40 character

Thx in advance...
[Windows Mobile Apps and Games] JMHL:
@lesscro : ok i note it, but wait next version v6.00 of JMLToday....Not immediatly.

A++

PS : you use JMLSms without JMLToday ? If true, i can release a JMLSms version before.
[Windows Mobile Apps and Games] lesscro:
I use JMLSms without JMLToday...

because i create a skin... complete concept UI reworked... using Wisbar Advance desktop...

Then if you can release it before JMLToday 6.x, i can be a very happy guy...

:p
[Windows Mobile Apps and Games] omek07:
thanks for your answer

1st

Can you please export this reg ???

If you use Resco File manager you can Export all the folder Comm as a reg file

2on i try the -dataoff or -data but it doesnt work

Anything else ???
[Windows Mobile Apps and Games] lesscro:
Ps... for me too... -data feature doesn't work... all other work but data is not supported on my device...

i found a solution to perform a GSM disconnect then reconnect... a way to disable DATA///
[Windows Mobile Apps and Games] omek07:
what is the solution??? please tell me
[Windows Mobile Apps and Games] lesscro:
if you use mortscript... my solution...

Work for me quickly... Snapdragon power, i think...

You need identify name of your Data Connection in device...

"The Internet" is the standard name...
[Windows Mobile Apps and Games] omek07:
my friend thank you can i ask you something ???

what i have to put here

Run(SystemPath("ScriptPath") \ "JMLComm.exe", "-phone:off")

Run(SystemPath("ScriptPath") \ "JMLComm.exe", "-phone:on")

my JMLComm.exe is on the Windows Folder i have to change it ????

I have put the mscr file on my Storage Card
[Windows Mobile Apps and Games] lesscro:
perform this modification

then you can put your MSCR where you want... because path is harcoded to

\windows\JMLComm.exe
[Windows Mobile Apps and Games] omek07:
the same thing :mad:

i can connect but i cant disconnect ....

Please JMHL fix a JMLComm for Omnia II pleaseeeeeeeee if you can ..... Please please
[Windows Mobile Apps and Games] lesscro:
are you sure... this method turn OFF phone.. then no data connection activity.. without phone signal...

and turn Phone On again...

this method works like a charm

Your connection is "THE INTERNET" ?

if mortscript connect, he can disconnect too...

like

not sure if works on PDA...

disconnect ("The Internet")
[Windows Mobile Apps and Games] omek07:
Yes i am sure my friend

yes my connection is the internet

I had try and with the disconnect and nothing happent
[Windows Mobile Apps and Games] lesscro:
If your phone turn OFF... data connection does not be closed ?
[Windows Mobile Apps and Games] omek07:
No No my friend

i cant close my phone with JmLcomm.exe

If i close the phone the connections disable
[Windows Mobile Apps and Games] lesscro:
Check this bro'...

RadioOn/OFF disable phone

GPRSOff don't work on my device...

but you can try if Exe Disable Data...

MSCR is the same but with RadioOn/OFF...

if GPRSOFF works remove # behind line nout GPRS and add # behind line with RadioOnOFF...

Check this out, baby..:p
[Windows Mobile Apps and Games] omek07:
the Radiooff its working but the Gprs it doesnt ......

i will try the Radiooff with the script ....
[Windows Mobile Apps and Games] lesscro:
No feedback... then i think ot works properly... :p
[Windows Mobile Apps and Games] lesscro:
@ JMHL...

any news about JML favorites ? and maybe JML_SMS request about character per line ?

i have begin my contact page based with part of JML_Favorites... and when i search exe... nothing the iread again and i see (Soon)... damn.. so stupid...

i forgot to read the most important things... not released yet...

Waiting for new release and maybe JML today 6.00 who include all new feature...

LeSScro
[Windows Mobile Apps and Games] JMHL:
@lesscro : yes, in v6.00

- JMLFavorites.exe

- JMLSms.exe with -subjectlen parameter to cut subject in subjet1, subject2.....

@omek07 : [mod] data disconnect (i hope to work for you)... -> in v6.00

A++
[Windows Mobile Apps and Games] lesscro:
Thx m8... awesome... a small donation will come...

Edit///

Don ID : 4H189191TH274213X

have fun...
[Windows Mobile Apps and Games] omek07:
Thanks my friend but where we can download it ???

can you please give me only the New JMLComm ????

Thanks againnnnn
[Windows Mobile Apps and Games] GreatEMU:
I Don't know how to use JMLPicture.

I created a xml File with the definition of the picture.

What have I to do to create this picture.

In Mortscript I use the run-command with the xml-file as parameter, but no picture is created. :confused:
[Windows Mobile Apps and Games] JMHL:
@GreatEMU :

Mortscript :

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

instPath = SystemPath( "ScriptPath" )

Run(instPath&"\JMLPicture.exe", "YOURFILE.xml")

exit

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

Otherwize send me your .xml file ....

A++
[Windows Mobile Apps and Games] GreatEMU:
Oh man!

When I use the variable "instPath" I should fill it with a value! :rolleyes:

Thanks!
[Windows Mobile Apps and Games] GreatEMU:
Doesn't works the #GOTO command in a mnu-file?
[Windows Mobile Apps and Games] JMHL:
@GreatEMU : normaly, Yes. Give me your .mnu file.

A++
[Windows Mobile Apps and Games] GreatEMU:
My mnu-file looks very simple:

[Menu]

Startseite=#GOTO Page1
Wetter=#GOTO Page2
Kalender=#GOTO Page3
SMS=#GOTO Page4
Kontakte=#GOTO Page5
Aufgaben=#GOTO Page6

I also tried this syntax: Startseite=#GOTO JMLToday Page1
[Windows Mobile Apps and Games] JMHL:
@GreatEMU : bug ! -> Fixed. Fixpack soon with others corrections for JMLToday....
[Windows Mobile Apps and Games] lesscro:
Any news on update...

i m so exiting to continue my UI... using your new tools...

LeSScro
[Windows Mobile Apps and Games] lesscro:
Still me...

Any update in progress ?

Any ETA ? :o
[Windows Mobile Apps and Games] JMHL:
@lesscro : have you seen fixpack 5.92 ?

@all : news at http://xdaforums.com/showpost.php?p=9803817&postcount=1034

A++
[Windows Mobile Apps and Games] lesscro:
You rocks.... yes baby...

send feedback after test !!

thx again... i will follow original thread too...

cheers...
[Windows Mobile Apps and Games] lesscro:
hello JMHL...

i have a noob question ?

how to use "-subjectlen"...

i use this structure in enter page, i think with a number subject can be cutted for all SMS but i tried "-subjectlen:1" to have all line i need to read in registry but SMS is still in standard subject...

Any tips or tutorial ?
[Windows Mobile Apps and Games] JMHL:
-subjectlen:len_of_one_line_in_number_of_character

ex. : -subjectlen:160 -> 160 characters by line.

in \HKCU\Sofware\JML\Sms\SmsX :

subject : contains all sms text (max : 255 car)

and if necessary :

subject1 -> subjectN : sms cutting

A++
[Windows Mobile Apps and Games] lesscro:
Ok ! then i think i have a problem...

i explain more :

Now i use script looks like that...

then i export sms1...

Subject1 is over than 30 characters per line (in red over expected)

and Subject2 have a "ras" text...

any idea or tips, i use a WM6.5.3 build !
[Windows Mobile Apps and Games] JMHL:
@lesscro : try this.
[Windows Mobile Apps and Games] lesscro:
Yeah... this time this version is correct...

Thx Mister JMHL... i will send you a feedback after integration...

EDIT/ works great ! Thx again...
[Windows Mobile Apps and Games] lesscro:
I have finish integration in skin of elements from JLMSms feature...

but i have still a few questions...

about

-reply:N = Send a response SMS

i use a simple script like that :

this script must be send a response to SMS1, it open tmail ? or what ? because nothing appear...

about

-call:N = Call in response to SMS (in order if exist : sender, mobilePhone, homePhone)

i use a simple script like that :

this script must be make a call to SMS1 sender if :

sender and mobile and home are present ? or only one entry in registry, like sender minimum ?

actually, i have some problems with this two feature...

if i receive a SMS from a contact available in my Adressbook,

Why SMS1 is only one to have :

First name, Mobile phone, picture entry in registry ?

all other SMS have only Datetime, EntryiD, Sender, Subject... ?

You use this in JMLToday... i m only one to report this ?

I hope help a little bit... :o
[Windows Mobile Apps and Games] JMHL:
@lesscro :

- reply:N -> call "%WINDOWS%\\tmail.exe;-Service "SMS" -to phone_number

- call:N -> call first phone present in order : "sender" -> "mobilePhone" -> "homePhone"

pb SMS1 : yes, you are only one to report this ? You use built-in contact application or other ?

A++
[Windows Mobile Apps and Games] lesscro:
Your argument bug with me...

-reply:N & -call:N doesn't work anymore...

Script is OK... If i create a LNK with Command to ise tmail.exe

"%WINDOWS%\\tmail.exe;-Service "SMS" -to phone_number

It works...

I need investigate more my SKIN, but at this time doesn't work !

....EDIT /

I erase all SMS entry in registry... Entry are all fullfilled... :o

Then with this entry i have phone number, i think create a mortscript to use this information then run tmail with correct parameter... because reply and call still doesn't work FOR ME... :confused:

Thx for Help... :p
[Windows Mobile Apps and Games] JMHL:
@lesscro : SMS are in HKCU\Software\JML\Sms ?
[Windows Mobile Apps and Games] lesscro:
Yes, i use your application... i read entire text in Registry...

i don't know why this bug is here...

sample of my registry... as you can see... structure is correct...isn't it ?

Ps... sometimes phone appear like +336**** and sometimes (06) ** ** ** ** ?

Windows Registry Editor Version 5.00
[Windows Mobile Apps and Games] JMHL:
@lesscro :

perhaps pb of phone_number format -> +336**** and sometimes (06) ** ** ** ** or other.

can you track this ?

A++
[Windows Mobile Apps and Games] lesscro:
hi again...

1 - Clean registry again to create a clean entry...

2 - format all my contact like +336****** to have a correct entry in parameter...

Result :

-reply:N = still not work...

-call:N = work only for one contact.. and send -to C.. don't choose mobile number...

As you can see in previous post... Cd is a contact with Mobile phone and Home...

-call:N launch my application (PhonEx 2.x) and write C... 1st character of sender name...

I think, it same for all Contact... it seems to be not used corect information... but why only one contact work with call (perform actin , not really functional)... and nothing with reply...

Sure now, All contact number Format looks like +336******** without space...

i have checked registry too...

:o i m very dispaointed about it...

but i can use mobile phone with mortscript and use similar method as EXE and perform same result...
[Windows Mobile Apps and Games] lesscro:
Reply fixed with mortscript... about call...

how did you manage to perfom call...

still an exe with parameter in windows ?

like
[Windows Mobile Apps and Games] JMHL:
@lesscro :

I use PhoneMakeCall api :

PHONEMAKECALLINFO mci = {0};
mci.cbSize = sizeof(mci);
mci.dwFlags = 0;
mci.pszDestAddress = szPhone;
PhoneMakeCall(&mci);

A++