Post: Lv2 RTM Code
10-27-2015, 06:19 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Ive Been Trying To Get A Working Lv2 Code And Was Wondering if its already on ngu with a tutorial? If it is can someone leave a link or possibly make a quick little tutorial with the code ? It Will Mean A lot Smile
(adsbygoogle = window.adsbygoogle || []).push({});
10-27-2015, 12:33 PM #2
XxBlud23xX
< ^ > < ^ >
Originally posted by daannnyyyy99 View Post
Ive Been Trying To Get A Working Lv2 Code And Was Wondering if its already on ngu with a tutorial? If it is can someone leave a link or possibly make a quick little tutorial with the code ? It Will Mean A lot Smile


label1.Text = CCAPI.GetFirmwareType();

That works for me Smile
10-27-2015, 12:39 PM #3
EncepT
I defeated!
Yeah its
     labelxyz.Text = CCAPI.GetFirmwareType();
10-27-2015, 01:56 PM #4
Adrian
Adrian is back!
Originally posted by daannnyyyy99 View Post
Ive Been Trying To Get A Working Lv2 Code And Was Wondering if its already on ngu with a tutorial? If it is can someone leave a link or possibly make a quick little tutorial with the code ? It Will Mean A lot Smile

Originally posted by EncepT View Post
Yeah its
     labelxyz.Text = CCAPI.GetFirmwareType();


Originally posted by DEXBLUD23 View Post
label1.Text = CCAPI.GetFirmwareType();

That works for me Smile


Get firmware type is not coded like that. You wont have any errors when adding this to your program, but it will not simply work. You pretty much just lied to this kid saying that this way works. Get firmware version and the rest are coded with a simple CCAPI call but type is not.

To do type you need to use MethodInvoker.
You will need to put this at the top of your Form1.cs right under the InitializeComponent bracket.
    private void InfoWorker()
{
lblFW.Invoke((MethodInvoker)(() => { lblFW.Text = PS3CCAPI.GetFirmwareVersion(); }));
lblLV2.Invoke((MethodInvoker)(() => { lblLV2.Text = PS3CCAPI.GetFirmwareType(); }));
while (threadIsRunning)
{
string temp1 = PS3CCAPI.GetTemperatureCELL();
string temp2 = PS3CCAPI.GetTemperatureRSX();
lblCELL.Invoke((MethodInvoker)(() => { lblCELL.Text = temp1; }));
lblRSX.Invoke((MethodInvoker)(() => { lblRSX.Text = temp2; }));
PS3CCAPI.ClearTargetInfo();
Thread.Sleep(500);
}
TargetInfo.Abort();
}

Clearly you will need to change it to your label's. But this is just copied straight from my program.
You will also need to make a new Thread by putting this with the InitializeComponent
    TargetInfo = new Thread(new ThreadStart(InfoWorker));
Rand = new Random();

You will also need some privates for this simply add this to the list at the top of your Form.
    private Random Rand;
private Thread TargetInfo;
private bool threadIsRunning = false;
private CCAPI PS3CCAPI = new CCAPI();


From there you can simply put this in a button to start the InfoWorker.
    InfoWorker();
lblCELL.Text = PS3CCAPI.GetTemperatureCELL();
lblRSX.Text = PS3CCAPI.GetTemperatureRSX();
PS3CCAPI.ClearTargetInfo();
lblFW.ForeColor = Color.Green;
lblLV2.ForeColor = Color.Green;
lblRSX.ForeColor = Color.Green;
lblCELL.ForeColor = Color.Green;


By the way I would use this for all temp's and types.

The following user thanked Adrian for this useful post:

daannnyyyy99
10-27-2015, 02:53 PM #5
XxBlud23xX
< ^ > < ^ >
Ok? There's no need for all that. Especially when the CCAPI.dll assembly has a class for this Smile But your the boss
10-27-2015, 03:00 PM #6
XxBlud23xX
< ^ > < ^ >
That looks like a code from Mango Knife, It hurts my eyes.
10-28-2015, 03:28 AM #7
Originally posted by Adrian View Post
Get firmware type is not coded like that. You wont have any errors when adding this to your program, but it will not simply work. You pretty much just lied to this kid saying that this way works. Get firmware version and the rest are coded with a simple CCAPI call but type is not.

To do type you need to use MethodInvoker.
You will need to put this at the top of your Form1.cs right under the InitializeComponent bracket.
    private void InfoWorker()
{
lblFW.Invoke((MethodInvoker)(() => { lblFW.Text = PS3CCAPI.GetFirmwareVersion(); }));
lblLV2.Invoke((MethodInvoker)(() => { lblLV2.Text = PS3CCAPI.GetFirmwareType(); }));
while (threadIsRunning)
{
string temp1 = PS3CCAPI.GetTemperatureCELL();
string temp2 = PS3CCAPI.GetTemperatureRSX();
lblCELL.Invoke((MethodInvoker)(() => { lblCELL.Text = temp1; }));
lblRSX.Invoke((MethodInvoker)(() => { lblRSX.Text = temp2; }));
PS3CCAPI.ClearTargetInfo();
Thread.Sleep(500);
}
TargetInfo.Abort();
}

Clearly you will need to change it to your label's. But this is just copied straight from my program.
You will also need to make a new Thread by putting this with the InitializeComponent
    TargetInfo = new Thread(new ThreadStart(InfoWorker));
Rand = new Random();

You will also need some privates for this simply add this to the list at the top of your Form.
    private Random Rand;
private Thread TargetInfo;
private bool threadIsRunning = false;
private CCAPI PS3CCAPI = new CCAPI();


From there you can simply put this in a button to start the InfoWorker.
    InfoWorker();
lblCELL.Text = PS3CCAPI.GetTemperatureCELL();
lblRSX.Text = PS3CCAPI.GetTemperatureRSX();
PS3CCAPI.ClearTargetInfo();
lblFW.ForeColor = Color.Green;
lblLV2.ForeColor = Color.Green;
lblRSX.ForeColor = Color.Green;
lblCELL.ForeColor = Color.Green;


By the way I would use this for all temp's and types.


THANK YOU IT WORKED Means A Lot ! Smile
10-28-2015, 04:56 AM #8
Adrian
Adrian is back!
Originally posted by daannnyyyy99 View Post
THANK YOU IT WORKED Means A Lot ! Smile


Good to hear man, if you have any other questions feel free to make another thread.

-Thread Closed.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo