Hello Fellow Yuneec Pilot!
Join our free Yuneec community and remove this annoying banner!
Sign up

Looking for Typhoon H CGO ET thermal CGI commands

;-)

Joined
Jun 22, 2018
Messages
37
Reaction score
7
Hi

i wounder me, is there a possible way for the CGO ET to set the thermal pallete by CGI command?

0=Fusinon,
1=Rainbow,
2=Globow,
3=Icefire,
4=Ironblack

example:

Set Palette Rainbow

http://192.168.42.1/cgi-bin/cgi?CMD=SET_PALETTE&value=1
or
http://192.168.42.1/cgi-bin/cgi?CMD=SET_PALETTE&value=Rainbow

does not work.

the CGI command
http://192.168.42.1/cgi-bin/cgi?CMD=GET_STATUS

works example and shows for Palette example
set_palette = 3

and this looks like, the Icefire is actually set ( it is right in this example, did it by ST16 before )
so i thinked i use value by palette list index 0,1,2,3,4 like in the first example,
but this worked not, also the second example with name of palette did not work.

any suggestion from developer/insider ?
want set it by cgi command by browser.

a suggestion was the thread from CGO3
C-GO3 - Set image sharpness by command
so i tested some things on CGO ET to, some things works, other some things not.
how do ST16 set the palette? did someone listen to the wifi protokoll ?

thank you

best wishes
rudi
 
Last edited:
That's really intersting. Can you please post the complete output of the GET_STATUS from CGO-ET? GET_STATUS needs to be done first to initialize the connection to camera. After that you can send as many commands as you want.

What is the result (rval) when you sent SET_PALETTE&value=1?
Is command GET_PALETTE working? What is the rval then?

On page 19 is a description for a test environment for those CGI commands (written to control my CGO3 by a laptop):
http://h-elsner.mooo.com/mydat/Q500log2kml_en.pdf

br HE
 
  • Like
Reactions: ;-)
Hi HE
sry did wrote to fast
the CGI command "GET_STATUS" shows the palette settings with
palette_type = 0

i did try too:

http://192.168.42.1/cgi-bin/cgi?CMD=SET_PALETTE_TYPE&value=1
http://192.168.42.1/cgi-bin/cgi?CMD=SET_PALETTE_TYPE&value=Rainbow


did not work.

full:



GET_STATUS

RAW

{"rval":0, "msg_id":1, "cam_mode":"1", "status":"vf","sdfree":"0","sdtotal":"0","record_time":"0","video_mode":"3840x2160F30","shutter_time":"30","photo_format":"jpg", "rtsp_res":"720P", "photo_mode":"1", "photo_num":"808666672", "photo_times":"909193728", "ev_step":"0.0", "interval_ms":"909193728","lock_state":"0","timing_take_photo_state":"0","take_photo_time":"1","palette_type":"0","auto_run_fcc_state":"1", "set_air_enable":"0","air_param1":"0.00","air_param2":"0.00","air_param3":"0.0","set_temp_enable":"0","max_tem":"0","min_tem":"0"}

JSON

rval 0
msg_id 1
cam_mode "1"
status "vf"
sdfree "0"
sdtotal "0"
record_time "0"
video_mode "3840x2160F30"
shutter_time "30"
photo_format "jpg"
rtsp_res "720P"
photo_mode "1"
photo_num "808666672"
photo_times "909193728"
ev_step "0.0"
interval_ms "909193728"
lock_state "0"
timing_take_photo_state "0"
take_photo_time "1"
palette_type "0"
auto_run_fcc_state "1"
set_air_enable "0"
air_param1 "0.00"
air_param2 "0.00"
air_param3 "0.0"
set_temp_enable "0"
max_tem "0"
min_tem "0"



GET_FW_VERSION

RAW

{"rval":0,"msg_id":"11","brand":"YUNEEC","model":"CGOET","YUNEEC_ver":"0.0.35(E)","api_ver":"2.8.00","fw_ver":"Dec 23 2016 10:59:48","app_type":"sport","logo":"/tmp/fuse_z/app_logo.jpg","chip":"S2E(A9S)","http":"disable","Lens":"Lepton","soft_ver":"35"}

JSON

rval 0
msg_id "11"
brand "YUNEEC"
model "CGOET"
YUNEEC_ver "0.0.35(E)"
api_ver "2.8.00"
fw_ver "Dec 23 2016 10:59:48"
app_type "sport"
logo "/tmp/fuse_z/app_logo.jpg"
chip "S2E(A9S)"
http "disable"
Lens "Lepton"
soft_ver "35"





GET_PALETTE_TYPE

RAW

{"rval":-1, "msg_id":"5", "param":"1"}

JSON

rval -1
msg_id "5"
param "1"



GET_PALETTE

RAW

{"rval":-1, "msg_id":"5", "param":"1"}


JSON

rval -1
msg_id "5"
param "1"


hope this helps

best wishes
rudi
 

Attachments

  • pic1.jpg
    pic1.jpg
    144.1 KB · Views: 24
  • pic2.jpg
    pic2.jpg
    130.3 KB · Views: 24
On page 19 is a description for a test environment for those CGI commands (written to control my CGO3 by a laptop):
http://h-elsner.mooo.com/mydat/Q500log2kml_en.pdf
br HE

thank you - looks very good - you use Lazarus?
i did fast with the free version of embarcadero community version

would switch the pallete by cgi command.
can we perhabs check the ST16+ fly controll app for this commands?

is there someone who has the CGO ET for Typhoon H too?
did you try to view the Thermal Stream only?
You can watch this with VLC app very nice guys,
look at the pic before.

best wishes
 
Yes, I use Lazarus. I like it because the same source can be compiled for LINUX, Windows or MAC OS.

And sorry, I have mentioned the wrong command. To initialize the connection to the camera, the first command has to be INDEX_PAGE. This reports all settings. Please try INDEX_PAGE with CGO-ET.

Smart idea to check the ST16 SW. Here is what I found up to now. Not complete, not gone in deep. I will look further...

Try
GET_LEPTON_PALETTE_TYPE
SET_LEPTON_PALETTE_TYPE&val=...
 

Attachments

  • CGI_cmd_CGO.zip
    11.9 KB · Views: 17
  • Like
Reactions: ;-)
GET_LEPTON_PALETTE_TYPE

you are amazing!!! Thank you!

rval: 0
msg_id: "412"
get_palette_type: "0"

i will check further and post again

best wishes
 
You did it :)

SET_LEPTON_PALETTE_TYPE&val=3

works like a charme!

check this:

rtsp://192.168.42.1:8554/live
it is the port of CGO ET thermal stream
you can watch it on one VLC
and can watch the natural Stream on other VLC by
rtsp://192.168.42.1:554/live
at same time

fantastic doing now with setting the palette by cgi now
thank you very much for this help!

best wishes
rudi

can you wisper how you found the CGI CMD?
i remember me - right - the java packets - i did forget how i found others
 
Last edited:
"oha"
usually we have "only" Fusion, Rainbow, Globow, Icefire, Ironblack in the TH CGO ET 32bit
now we have further Palette's MAPLIN(5), MAPLOG(6), GRAYFUSION(7) and PCOLOR(8);
by using cgi commands.

and yes - i confirm you - works like a charme in the TH CGO ET

thank you!
best wishes
rudi
 

Attachments

  • IMG_0378.JPG
    IMG_0378.JPG
    1.7 MB · Views: 21
Like You see, i set palette to Maplin :)



INDEX_PAGE

RAW

{"rval":0,"msg_id":"257","param":"1","fw_ver":"0.0.35(E)","cam_mode":"1","status":"vf","sdfree":"0","sdtotal":"0","video_mode":"3840x2160F30","speed_rate":"54M auto","record_time":"0","shutter_time":"30","photo_format":"jpg" ,"rtsp_res":"720P", "photo_mode":"1", "photo_num":"808666672", "photo_times":"909193728", "ev_step":"0.0", "interval_ms":"909193728","lock_state":"0","timing_take_photo_state":"0","take_photo_time":"1","palette_type":"5","auto_run_fcc_state":"1","set_air_enable":"0", "air_param1":"0.00","air_param2":"0.00","air_param3":"0.0","set_temp_enable":"0","max_tem":"0","min_tem":"0"}

JSON

rval 0
msg_id "257"
param "1"
fw_ver "0.0.35(E)"
cam_mode "1"
status "vf"
sdfree "0"
sdtotal "0"
video_mode "3840x2160F30"
speed_rate "54M auto"
record_time "0"
shutter_time "30"
photo_format "jpg"
rtsp_res "720P"
photo_mode "1"
photo_num "808666672"
photo_times "909193728"
ev_step "0.0"
interval_ms "909193728"
lock_state "0"
timing_take_photo_state "0"
take_photo_time "1"
palette_type "5"
auto_run_fcc_state "1"
set_air_enable "0"
air_param1 "0.00"
air_param2 "0.00"
air_param3 "0.0"
set_temp_enable "0"
max_tem "0"
min_tem "0"
 
usually we have "only" Fusion, Rainbow, Globow, Icefire, Ironblack in the TH CGO ET 32bit
now we have further Palette's MAPLIN(5), MAPLOG(6), GRAYFUSION(7) and PCOLOR(8);
by using cgi commands.

this was not the end, we have total 11 palette types now by CGI Commands
there are 2 extra palette types without name, but they are still here

SET_LEPTON_PALETTE_TYPE&val=0
..


SET_LEPTON_PALETTE_TYPE&val=10

works.

the oval in front is a bottle water.

best wishes

all_secret_50x.jpg
 
All the useful information I found in "ST16_V3.1.30\update\system\app\FlightMode.apk"
Thanks for doing all those test and let us know the results. I will store this in my "Knowledge database", which is less or more some text files ;-).

Btw, I like your "Index of" window. I'm thinking about a ShellListView to Drag&Drop stuff.

br HE
 
  • Like
Reactions: ;-)
Hi Helmut

thank you again for the hint.
It works like a charme. (fast and dirty example switching )
we have now 11 types of palette's instead only 5 and
we can use CGOET on Steady Grip and Phone mobile better and with all stuff too
btw i use maze comet handy it has 5 Ghz inside ( Dual 2.4 + 5 Ghz ) to connect by android app

best wishes
rudi
 
  • Like
Reactions: h-elsner
Hi Helmut

thank you again for the hint.
It works like a charme. (fast and dirty example switching )
we have now 11 types of palette's instead only 5 and
we can use CGOET on Steady Grip and Phone mobile better and with all stuff too
btw i use maze comet handy it has 5 Ghz inside ( Dual 2.4 + 5 Ghz ) to connect by android app

best wishes
rudi


"we can use CGOET on Steady Grip and Phone mobile better and with all stuff too "

..... truly amazing how far behind the curve Yuneec product management is nowadays.... it takes customers to do their product development.
They must have a couple of good engineers held down by a bunch of really inept management chains.
Really sad that when the Typhoon came out it was in front and now every manufacturer including toy makers have passed Yuneec well and truly. Very sad state of affairs.
When the CGoet and CGO3+ didn't work on the steady grip I knew the product management was run by people without even a basic clue.
 
attached is the simple CGOET Tool in preview and early beta test if anyone want try.
you need as base installed VLC - the Tool is using the mp4 and other codecs from them.
tested with the CGOET (H480) Version


best wishes

---------------------------
Checksum-Information
---------------------------
Name: CGOET.zip
SIZE: 308870 Bytes (0 MB)

CRC32: 86CC222B
CRC64: F397F6059093785C
SHA256: C0E95E8434F688F5B4C2260DA96B52DF844B3C072EBD82520207428F7410C121
SHA1: 74C86DE08D5A24BBC1CC60EDBA1B619B45987313
BLAKE2sp: 057B12338F14740A6AE48B9AFA3BE3980541A20FD0D41BADB8A590FE4C4D382D
---------------------------

edit: in this version c:\test.jpg is only a "place holder name"
if you click on "Snapshot" the snapshot is not done.
if you want make a snapshot, please create first for security reason a own folder
and name it for this beta version "c:\pics".
it is static programmed in this version.
then change the filename to example "thermal_test_shot.jpg"
this you can change like you want.
you will find then the saved picture by
"c:\pics\thermal_test_shot.jpg"

to do in next version:
- change folder by explore window and select/create by user flexible
 

Attachments

  • CGOET.zip
    301.6 KB · Views: 13
Last edited:
  • Like
Reactions: h-elsner
Danke! I use Indy too as FTP client.

br HE

simplest

connect objectiv natural
procedure TForm1.Button1Click(Sender: TObject);
begin
PasLibVlcMediaList1.Stop;
PasLibVlcMediaList1.Clear;
PasLibVlcMediaList1.Add('rtsp://192.168.42.1/live');
PasLibVlcMediaList1.Play;
end;

connect thermal
procedure TForm1.Button4Click(Sender: TObject);
begin
PasLibVlcMediaList1.Stop;
PasLibVlcMediaList1.Clear;
PasLibVlcMediaList1.Add('rtsp://192.168.42.1:8554/live');
PasLibVlcMediaList1.Play;
end;

Lipton Palette
procedure TForm1.RadioGroup1Click(Sender: TObject);
begin
IdHTTP1.Get('http://192.168.42.1/cgi-bin/cgi?CMD=SET_LEPTON_PALETTE_TYPE&val=' + inttostr(RadioGroup1.ItemIndex) );
Form1.Caption := 'YUNEEC CGO ET | '+ RadioGroup1.Items[RadioGroup1.Itemindex];
end;

there is no try and catch at this time on connect and others - simplest done.
comes later and more doings with the live picture, example color scale and pixel temp
that we can read "soft radiometric" - :cool:

( edit: also we can use later GPS data for the founds on thermal exmaple and save it with the picture - advance things )

also in the next versions, i try to go smaller buffering caused delay in the stream.
example

PasLibVlcPlayer1.Play('rtsp://192.168.42.1:8554/live', ':network-caching='+ inttostr(TrackBar2.Position));

or

PasLibVlcPlayer1.Play('rtsp://192.168.42.1:8554/live', '--network-caching='+ inttostr(TrackBar2.Position));

for this preview beta i did switch off this "future" - comes later better in user friendly mode
by menue.

for VLV is use PASLibVLC
you can use it for Lazarus too Helmut.



best wishes
rudi
 
Last edited:
simplest

connect objectiv natural
procedure TForm1.Button1Click(Sender: TObject);
begin
PasLibVlcMediaList1.Stop;
PasLibVlcMediaList1.Clear;
PasLibVlcMediaList1.Add('rtsp://192.168.42.1/live');
PasLibVlcMediaList1.Play;
end;

connect thermal
procedure TForm1.Button4Click(Sender: TObject);
begin
PasLibVlcMediaList1.Stop;
PasLibVlcMediaList1.Clear;
PasLibVlcMediaList1.Add('rtsp://192.168.42.1:8554/live');
PasLibVlcMediaList1.Play;
end;

Lipton Palette
procedure TForm1.RadioGroup1Click(Sender: TObject);
begin
IdHTTP1.Get('http://192.168.42.1/cgi-bin/cgi?CMD=SET_LEPTON_PALETTE_TYPE&val=' + inttostr(RadioGroup1.ItemIndex) );
Form1.Caption := 'YUNEEC CGO ET | '+ RadioGroup1.Items[RadioGroup1.Itemindex];
end;

there is no try and catch at this time on connect and others - simplest done.
comes later and more doings with the live picture, example color scale and pixel temp
that we can read "soft radiometric" - :cool:

( edit: also we can use later GPS data for the founds on thermal exmaple and save it with the picture - advance things )

also in the next versions, i try to go smaller buffering caused delay in the stream.
example

PasLibVlcPlayer1.Play('rtsp://192.168.42.1:8554/live', ':network-caching='+ inttostr(TrackBar2.Position));

or

PasLibVlcPlayer1.Play('rtsp://192.168.42.1:8554/live', '--network-caching='+ inttostr(TrackBar2.Position));

for this preview beta i did switch off this "future" - comes later better in user friendly mode
by menue.

for VLV is use PASLibVLC
you can use it for Lazarus too Helmut.



best wishes
rudi
Hi rudi and thanks a lot for your work.
Do you have a developped a new version of this tool ? (according your last post, some improvments was planned).
Thnaks !
 

Members online

Forum statistics

Threads
20,973
Messages
241,792
Members
27,351
Latest member
simsone