GCMD

Gtuner IV general support. Operation, questions, updates, feature request.

GCMD

Postby PoshLemur » Wed Jun 20, 2018 9:44 am

Where can I read up on this rather obscure GCMD API that seems to have been implemented back in 2017?
I'd like to find out what all the available commands are and how to use them.
My github account: [link]
User avatar
PoshLemur
Sergeant Major
Sergeant Major
 
Posts: 75
Joined: Thu Mar 08, 2018 9:26 am

Re: GCMD

Postby J2Kbr » Thu Jun 21, 2018 3:29 pm

Currently there are two available commands:

1) Refresh the Interactive Configuration interface, to be used when the script makes changes on the settings and is needed reflect the changes on the Interactive Configuration interface.

Code: Select all
printf("GCMD:InteractiveConfiguration.Refresh");


2) The second and last is also related with the Interactive Configuration interface and allows use pre-formatted strings to make changes in the settings, as the following:

The string representing the configuration is the pmem array in hex format, example:

GIVICFG:000000000100000000FFE2FC18

Is possible change only specifics byte(s) by providing the byte offset (similarly as suggested by you)

GIVICFG:#10:FFFFFF

This will set 3 bytes to 255 starting from position 16. The other bytes are not changed.

GIVICFG:#10:FFFFFF#02:010203040506070809

Here we are doing same as previously and also setting 9 bytes from position 2 with values 1, 2, 3, 4, 5, 6, 7, 8, 9.

If the configuration string does not specify a byte offset (like first example), the byte offset is assumed to be 0 and the configuration array is set to 0 before apply the values from the configuration string.

Updating the Interactive configuration is also possible via script with GCMD:InteractiveConfiguration.GIVICFG, example:

Code: Select all
printf("GCMD:InteractiveConfiguration.GIVICFG:0000000001FF9C0000FFE2FC18");
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: GCMD

Postby PoshLemur » Fri Jun 22, 2018 7:43 am

Thanks for the detailed posting! I can definitely see how that would be useful. Are there any plans to add more control over Gtuner from within GPC script?
My github account: [link]
User avatar
PoshLemur
Sergeant Major
Sergeant Major
 
Posts: 75
Joined: Thu Mar 08, 2018 9:26 am

Re: GCMD

Postby J2Kbr » Fri Jun 22, 2018 8:11 am

PoshLemur wrote:Thanks for the detailed posting! I can definitely see how that would be useful. Are there any plans to add more control over Gtuner from within GPC script?

yes, definitively. We have one request on GitHub:

https://github.com/J2Kbr/GtunerIV/issues/220

and we are always open for new suggestions. :smile0517:
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm


Return to Gtuner IV Support

Who is online

Users browsing this forum: No registered users and 81 guests

cron