Posts made by Bernard
-
RE: Strange message
@kl3m3n
Sorry to bother you, but I can't find "Developer mode" anywhere!!?? Yes the device name is "38400Bd"
Bernard -
Strange message
@kl3m3n
Good morning
I use several Sliders in an application. By activating one or the other of the sliders I receive a message:
@slm6 -10 dev:38400Bd usr:
@slml 15 dev:38400Bd usr:Why "dev:38400Bd usr:" ?
Kind regards, Bernard
-
RE: How to display a float number via bluetooth
Good morning,
In the initialization script, simply define a Label:
|LB UID:your_label X:95 Y:96 W:20 FGC:#fb0001 FSZ:5 FFA:'font8' TXT:'0000'".
and write from your program In this Label "your_label " in the form of a string.
I don't know in C but with Bascom:
Dim Float as single //float variable
Float=3,414 // Float value
Dim Value as string *10 // declare Value as string
Value=Str(Float) // convert in string
Print "@your_label TXT:" ; Value ; " // print in your_label
and there you have it!
It works via Bluetooth or Wifi, it doesn't matter.
Bernard -
RE: ESP8266 bugs !!?
@gammda
@kl3m3n
Hello everyone,
Thanks to Gammda who took the time to answer me and advise me regarding the serial reception routine on interruption rather than Ischarwaiting. It works perfectly well (see attached source code).
Regarding the erratic operation of ESP8266, you must never forget to remove the "Debug" option in config.h. before definitively programming ESP8266. This requires a lot of resources from ESP8266, which explains the "eratic" operation of GUI-O!! (but what misled me was that with Bluetooth transmission everything worked normally) If my luck can be useful, that's good!!
Kind regards, Bernard
'===============================================================================
' HW: Arduino Nano ATMEGA 328 , programmed whit BASCOM
' GUI-O Table mixage // EXPERIMENTATION !!
' GUI-O Ver 1.0.78
'==============================================================================='$sim
$regfile = "m328pdef.dat"
$crystal = 16000000
$baud = 38400
$hwstack = 50
$swstack = 50
$framesize = 50On Urxc Rxcom1_isr
Enable Urxc
Dim Rxguio As String * 40
Dim Rxdata As Bit
Dim Comchar1 As Byte'$lib "mcsbyteint.lib"
Config Adc = Single , Prescaler = 32 , Reference = Aref 'internal=1,2v, aref =3.3V
Start AdcConfig Pind.2 = Output
Cmd_vent Alias Portd.2
Reset Cmd_ventConfig Pinb.5 = Output
Sig_sim Alias Portb.5
Sig_sim = 0Config Single = Scientific , Digits = 1
Dim Slmv As String * 5
Dim Slmlg As String * 5
Dim Slmld As String * 5
Dim Slmgn As Byte
Dim Slmdn As Byte
Dim Light_s As String * 5
Dim Adcvg As Word
Dim Adcvd As Word
Dim Temp1 As Single
Dim Temp2 As Single
Dim Light As Byte
Dim Loggauche As Single
Dim Logdroite As Single
Dim Diviseurg As Single
Dim Diviseurd As Single
Dim Cmd As String * 20
Diviseurg = 3.162
Diviseurd = 3.162Enable Interrupts
Declare Sub Read_data()'===============================================================================
'
' **********************************************************************
' * Main routine, manage leds, circular bar, Graph,textes, values, *
' **********************************************************************
'+10db= 3,162v, 5db =1,778v, 0db=1v, -5db=0,562v, -10db=0,316v, -15db=0,178v, -20db=0,10v -40db=0,01
' 988 555 312 175 98 55 40 3 ADC Value'
'3,3v/1024= 0,0032 v par bit
'------------------------Duration of this MAIN 60 Msec--------------------------
Main:
DoIf Rxdata = 1 Then Reset Rxdata Gosub Read_data Rxguio = "" End If Adcvg = Getadc(0) 'get ADC value from ch.0 Temp1 = Adcvg * 0.003222 'Get the volt value Temp1 = Temp1 / Diviseurg 'diviser la valeur en volt par la position du potentiometre gauche Loggauche = Log10(temp1) 'transformer cette valeur en dbv Loggauche = Loggauche * 20 Print "@slout_g VAL:" ; Loggauche ; " Print "@ch0 PLI:'pl0' PLC:'#000000' YP:" ; Loggauche ; "
'// Print "@ch0 PLI:'pl0,pl1' PLC:'#000000,#00BE00' YP:'" ; Loggauche ; "," ; Logdroite ; "'," ; "XP:'0,0,0,0'"
Adcvd = Getadc(1) 'get ADC value from ch.1 Temp2 = Adcvd * 0.003222 'Get the volt value Temp2 = Temp2 / Diviseurd 'diviser la valeur en volt par la position du potentiometre gauche Logdroite = Log10(temp2) 'transformer cette valeur en dbv Logdroite = Logdroite * 20 Print "@slout_d VAL:" ; Logdroite ; " Print "@ch0 PLI:'pl1' PLC:'#00BE00' YP:" ; Logdroite ; "
' Print "@ch0 PLI:'pl0,pl1' PLC:'#000000,#00BE00' YP:'" ; Loggauche ; "," ; Logdroite ; "'," ; "XP:'0,0,0,0'"
Loop
'===============================================================================
'
' *****************************
' * Lecture des messages GUI-O*
' *****************************'--MS-GUI-O---------------------------------------------------------------------
Sub Read_data()
Cmd = Mid(rxguio , 1 , 1) If Cmd <> "@" Then Exit Sub End If Cmd = Mid(rxguio , 2 , 4) 'select command value If Cmd = "init" Then Gosub Guio_ini Exit Sub End If Slmv = Mid(rxguio , 6 , 4) 'get value of Slmv (can be -20 to +10 Temp1 = Val(slmv) 'convert in single If Cmd = "slm1" Then 'slider CH1 Left Print "@slm1V TXT:" ; Temp1 ; "" 'print the value above the slider Exit Sub End If If Cmd = "slm2" Then 'slider CH1 Right Print "@slm2V TXT:" ; Temp1 ; " Exit Sub End If If Cmd = "slm3" Then 'slider CH2 Left Print "@slm3V TXT:" ; Temp1 ; " Exit Sub End If If Cmd = "slm4" Then 'slider CH2 Right Print "@slm4V TXT:" ; Temp1 ; " Exit Sub End If If Cmd = "slm5" Then 'slider CH3 Left Print "@slm5V TXT:" ; Temp1 ; " Exit Sub End If If Cmd = "slm6" Then 'slider CH3 Right Print "@slm6V TXT:" ; Temp1 ; " Exit Sub End If If Cmd = "slml" Then 'Potentiometre de sortie Gauche Slmlg = Mid(rxguio , 6 , 3) 'lire la valeur du potentiometre gauche Slmgn = Val(slmlg) 'transformer en numerique Diviseurg = Lookup(slmgn , Table ) Exit Sub End If
'(
Adcvg = Getadc(0) 'get ADC value from ch.0
Temp1 = Adcvg * 0.003222 'Get the volt value
Temp1 = Temp1 / Diviseurg 'diviser la valeur en volt par la position du potentiometre gauche
Loggauche = Log10(temp1) 'transformer cette valeur en dbv
Loggauche = Loggauche * 20
Print "@slout_g VAL:" ; Loggauche ; "
Print "@ch0 PLI:'pl1' PLC:'#00BE00' YP:" ; Loggauche ; " XP:0"
' Print "@valadc TXT:" ; Adcvg ; "
Exit Sub
')If Cmd = "slmd" Then 'Potentiometre de sortie Droite Slmld = Mid(rxguio , 6 , 3) 'lire la valeur du potentiometre droite Slmdn = Val(slmld) 'transformer en numerique Diviseurd = Lookup(slmdn , Table) 'chercher le diviseur dans la table Exit Sub End If
'(
Adcvd = Getadc(1) 'get ADC value from ch.1
Temp2 = Adcvd * 0.003222 'Get the volt value
Temp2 = Temp2 / Diviseurd 'diviser la valeur en volt par la position du potentiometre gauche
Logdroite = Log10(temp2) 'transformer cette valeur en dbv
Logdroite = Logdroite * 20
Print "@slout_d VAL:" ; Logdroite ; "
' Print "@ch0 PLI:'pl0,pl1' PLC:'#000000,#00BE00' YP:'" ; Loggauche ; "," ; Logdroite ; "'," ; "XP:'0,0'"
Print "@ch0 PLI:'pl0' PLC:'#000000' YP:" ; Logdroite ; " XP:0"
Exit Sub
')If Cmd = "bton" Then 'reglage brillance ecran Light = Light + 10 If Light = 110 Then Light = 10 End If Light_s = Str(light) Print "@brs0 BRI:" ; Light_s ; " " Exit Sub End If If Cmd = "btfm" Then 'prendre une foto instantanée de la page meteo Print "@caps" Exit Sub End If
End Sub
'===============================================================================Rxcom1_isr:
Comchar1 = Inkey()
Rxguio = Rxguio + Chr(comchar1)
If Comchar1 = 10 Then ' !!!! USE 13(CR) FOR SIMULATEUR !!!!
Set Rxdata
End If
Return'===============================================================================
'
' *****************************
' * Init sequence GUI-O*
' *****************************
'
''--MS-GUI-O----------------====================================================
Guio_ini:
Disable Interrupts
Print "@sls 500"
Print "@cls"
Print "@clh"
Print "@gse COD:0 TSC:39" 'Utiliser à la place de (chr(34)
Print "@guis BGC:#2E2E2F ASR:0.4615"
Print "|SORI UID:sori1 HID:sori ORI:2 SEN:0"Print "|LB UID:slm1V X:15 Y:15 W:20 FGC:#fb0001 FSZ:5 FFA:'font8' TXT:'000'" 'valeur au dessus de ch-1 g
Print "|LB UID:slm2V X:25 Y:15 W:20 FGC:#fb0001 FSZ:5 FFA:'font8' TXT:'000'" 'valeur au dessus de ch-1 d
Print "|LB UID:slm3V X:35 Y:15 W:20 FGC:#fb0001 FSZ:5 FFA:'font8' TXT:'000'" 'valeur au dessus de ch-2 g
Print "|LB UID:slm4V X:45 Y:15 W:20 FGC:#fb0001 FSZ:5 FFA:'font8' TXT:'000'" 'valeur au dessus de ch-2 d
Print "|LB UID:slm5V X:55 Y:15 W:20 FGC:#fb0001 FSZ:5 FFA:'font8' TXT:'000'" 'valeur au dessus de ch-3 g
Print "|LB UID:slm6V X:65 Y:15 W:20 FGC:#fb0001 FSZ:5 FFA:'font8' TXT:'000'" 'valeur au dessus de ch-3 d
Print "|LB UID:valadc X:95 Y:96 W:20 FGC:#fb0001 FSZ:5 FFA:'font8' TXT:'0000'" 'valeur au dessous des leds en bas à droite (ADC )
'Print "|LB UID:lb_Hneige X:20 Y:50 W:15 FGC:#00F7FF SHE:1 FSZ:5 FFA:'font2' TXT:'H.NEIGE'"
Waitms 100
Print "|BSL UID:bslx11 X:11 Y:30 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF"
Print "|BSL UID:bslx12 X:11 Y:40 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF"
Print "|BSL UID:bslx13 X:11 Y:50 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx14 X:11 Y:60 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx15 X:11 Y:70 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx16 X:11 Y:80 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx17 X:11 Y:90 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|SL UID:slm1 X:15 Y:60 W:28 H:2 HAH:6 HAW:6 IP:'Bout_Vol_In.png' HAR:0 HAC:#000E530A VIS:1 ROT:270 BGC:#000000 SFGC:#822D0A FGC:#4EB50A SHE:0 VAL:0 LVAL:-20 HVAL:+10 UD:1 RAD:1 SHH:1 CE:1 "
Print "|LB UID:lb1 X:15 Y:98 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3 FFA:'font8' TXT:'CH-1'"
Waitms 100
Print "|BSL UID:bslx21 X:21 Y:30 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF"
Print "|BSL UID:bslx22 X:21 Y:40 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF"
Print "|BSL UID:bslx23 X:21 Y:50 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx24 X:21 Y:60 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx25 X:21 Y:70 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx26 X:21 Y:80 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx27 X:21 Y:90 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|SL UID:slm2 X:25 Y:60 W:28 H:2 HAH:6 HAW:6 IP:'Bout_Vol_In.png' HAR:0 HAC:#000e530a VIS:1 ROT:270 BGC:#000000 SFGC:#822d0a FGC:#4eb50a SHE:0 VAL:0 LVAL:-20 HVAL:+10 UD:1 RAD:1 SHH:1 CE:1 "
Print "|LB UID:lb2 X:25 Y:98 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3 FFA:'font8' TXT:'CH-1'"
Waitms 100
Print "|BSL UID:bslx31 X:31 Y:30 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF"
Print "|BSL UID:bslx32 X:31 Y:40 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF"
Print "|BSL UID:bslx33 X:31 Y:50 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx34 X:31 Y:60 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx35 X:31 Y:70 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx36 X:31 Y:80 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx37 X:31 Y:90 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|SL UID:slm3 X:35 Y:60 W:28 H:2 HAH:6 HAW:6 IP:'Bout_Vol_In.png' HAR:0 HAC:#000e530a VIS:1 ROT:270 BGC:#000000 SFGC:#822d0a FGC:#4eb50a SHE:0 VAL:0 LVAL:-20 HVAL:+10 UD:1 RAD:1 SHH:1 CE:1 "
Print "|LB UID:lb3 X:35 Y:98 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3 FFA:'font8' TXT:'CH-2'"
Waitms 100
Print "|BSL UID:bslx41 X:41 Y:30 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF"
Print "|BSL UID:bslx42 X:41 Y:40 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF"
Print "|BSL UID:bslx43 X:41 Y:50 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx44 X:41 Y:60 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx45 X:41 Y:70 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx46 X:41 Y:80 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx47 X:41 Y:90 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|SL UID:slm4 X:45 Y:60 W:28 H:2 HAH:6 HAW:6 IP:'Bout_Vol_In.png' HAR:0 HAC:#000e530a VIS:1 ROT:270 BGC:#000000 SFGC:#822d0a FGC:#4eb50a SHE:0 VAL:0 LVAL:-20 HVAL:+10 UD:1 RAD:1 SHH:1 CE:1 "
Print "|LB UID:lb4 X:45 Y:98 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3 FFA:'font8' TXT:'CH-2'"
Waitms 100
Print "|BSL UID:bslx51 X:51 Y:30 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF"
Print "|BSL UID:bslx52 X:51 Y:40 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF"
Print "|BSL UID:bslx53 X:51 Y:50 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx54 X:51 Y:60 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx55 X:51 Y:70 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx56 X:51 Y:80 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx57 X:51 Y:90 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|SL UID:slm5 X:55 Y:60 W:28 H:2 HAH:6 HAW:6 IP:'Bout_Vol_In.png' HAR:0 HAC:#000e530a VIS:1 ROT:270 BGC:#000000 SFGC:#822d0a FGC:#4eb50a SHE:0 VAL:0 LVAL:-20 HVAL:+10 UD:1 RAD:1 SHH:1 CE:1 "
Print "|LB UID:lb5 X:55 Y:98 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3 FFA:'font8' TXT:'CH-3'"
Waitms 100
Print "|BSL UID:bslx61 X:61 Y:30 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF"
Print "|BSL UID:bslx62 X:61 Y:40 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF"
Print "|BSL UID:bslx63 X:61 Y:50 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx64 X:61 Y:60 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx65 X:61 Y:70 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx66 X:61 Y:80 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx67 X:61 Y:90 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|SL UID:slm6 X:65 Y:60 W:28 H:2 HAH:6 HAW:6 IP:'Bout_Vol_In.png' HAR:0 HAC:#000e530a VIS:1 ROT:270 BGC:#000000 SFGC:#822d0a FGC:#4eb50a SHE:0 VAL:0 LVAL:-20 HVAL:+10 UD:1 RAD:1 SHH:1 CE:1 "
Print "|LB UID:lb6 X:65 Y:98 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3 FFA:'font8' TXT:'CH-3'"
Waitms 100 ' Gradation pot. input Gauche
Print "|LB UID:lbc1 X:8 Y:30 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'+10'"
Print "|LB UID:lbc2 X:8 Y:40 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'+5' "
Print "|LB UID:lbc3 X:8 Y:50 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'0'"
Print "|LB UID:lbc4 X:8 Y:60 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'-5'"
Print "|LB UID:lbc5 X:8 Y:70 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'-10'"
Print "|LB UID:lbc6 X:8 Y:80 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'-15'"
Print "|LB UID:lbc7 X:8 Y:90 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'-20'"
Waitms 100 ' Gradation pot. input Droite
Print "|LB UID:lbd1 X:72 Y:30 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'+10'"
Print "|LB UID:lbd2 X:72 Y:40 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'+5' "
Print "|LB UID:lbd3 X:72 Y:50 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'0'"
Print "|LB UID:lbd4 X:72 Y:60 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'-5'"
Print "|LB UID:lbd5 X:72 Y:70 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'-10'"
Print "|LB UID:lbd6 X:72 Y:80 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'-15'"
Print "|LB UID:lbd7 X:72 Y:90 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'-20'"
Waitms 100
'potentiometre de sortie gauche et droite
Print "|LB UID:lbm X:83.5 Y:98 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3 FFA:'font8' TXT:'MASTER'"
Print "|SL UID:slml X:80 Y:60 W:28 H:2 HAH:7 HAW:7 IP:'Bout_Vol_Out.png' HAR:0 HAC:#00772200 VIS:1 ROT:270 BGC:#000000 SFGC:#ffc04c FGC:#a93c3c SHE:0 VAL:20 LVAL:0 HVAL:30 UD:1 RAD:1 SHH:1 CE:1 "
Print "|SL UID:slmd X:87 Y:60 W:28 H:2 HAH:7 HAW:7 IP:'Bout_Vol_Out.png' HAR:0 HAC:#00772200 VIS:1 ROT:270 BGC:#000000 SFGC:#ffc04c FGC:#a93c3c SHE:0 VAL:20 LVAL:0 HVAL:30 UD:1 RAD:1 SHH:1 CE:1 "
Waitms 100
'indicateur de sortie gauche et droite
Print "|SL UID:slout_g X:92 Y:60 W:28 H:3 ROT:270 BGC:#000000 FGC:#4EB50A SFGC:#FF0000 HAW:6 HAH:6 HAR:5 HAC:#000E530A SHE:0 SHH:0 IP:" " VAL:0.0 LVAL:-20.0 HVAL:+10.0 XTC:6 LT:0.2 ACT:0 CE:1 UD:0 VIS:1 "
Print "|SL UID:slout_d X:98 Y:60 W:28 H:3 ROT:270 BGC:#000000 FGC:#4EB50A SFGC:#FF0000 HAW:6 HAH:6 HAR:5 HAC:#000A530A SHE:0 SHH:0 IP:" " VAL:0.0 LVAL:-20.0 HVAL:+10.0 XTC:6 LT:0.2 ACT:0 CE:1 UD:0 VIS:1 "Waitms 100 ' Gradation leds de sortie
Print "|LB UID:lb11 X:95 Y:90 ROT:0 SHE:0 ALP:0 FGC:#FFFFFF FSZ:2.7 FFA:'font8' TXT:'-20db'"
Print "|LB UID:lb12 X:95 Y:80 ROT:0 SHE:0 ALP:0 FGC:#FFFFFF FSZ:2.7 FFA:'font8' TXT:'-15db'"
Print "|LB UID:lb13 X:95 Y:70 ROT:0 SHE:0 ALP:0 FGC:#FFFFFF FSZ:2.7 FFA:'font8' TXT:'-10db'"
Print "|LB UID:lb14 X:95 Y:60 ROT:0 SHE:0 ALP:0 FGC:#FFFFFF FSZ:2.7 FFA:'font8' TXT:'-5db'"
Print "|LB UID:lb15 X:95 Y:50 ROT:0 SHE:0 ALP:0 FGC:#FFFFFF FSZ:2.7 FFA:'font8' TXT:'-0db'"
Print "|LB UID:lb16 X:95 Y:40 ROT:0 SHE:0 ALP:0 FGC:#FFFFFF FSZ:2.7 FFA:'font8' TXT:'+5db'"
Print "|LB UID:lb17 X:95 Y:30 ROT:0 SHE:0 ALP:0 FGC:#FFFFFF FSZ:2.7 FFA:'font8' TXT:'over'"
Waitms 100
Print "|BSE UID:bseon X:5 Y:12 W:5.5 HIW:1 SHE:0 ROT:0 BTH:0.2 BGC:#a1a1a1 FGC:#a1a1a1"
Print "|BT UID:bton X:5 Y:12 W:4 H:9 SHE:1 ROT:0 RAD:3 BGC:#7a7a7a SBGC:#d9d9d9 FGC:#FFFFFF FSZ:4 BTH:0 TXT:" " SVAL:'on '"
Print "|BSA UID:bsao1 X:5 Y:12 W:1.1 SHE:0 ROT:0 BTH:0.3 BGC:#000000 STA:-245 ENA:65"
Print "|BSL UID:bslo1 X:5 Y:12 ROT:90 FGC:#000000 LEN:1.5 BTH:0.3"
Waitms 100 'vumetre de gauche et droite
Print "|CB UID:Vu_g X:75 Y:16 W:10 BGC:#FF0000 FGC:00FF00 SFGC:#FF0000 HAW:1 HAH:0 HAR:0 HAC:#8ED3D3D2 SHE:0 SHHR:0 SHVR:0 SHR:0 VAL:0 LVAL:-20 HVAL:10 BTH:0.5 TXTC:#FFFFF XTC:6 YTC:0 SHN:1 NT:0.2 UD:0 ACT:0 SHT:0 VIS:0 "
Print "|CB UID:Vu_d X:90 Y:16 W:10 BGC:#FF0000 FGC:00FF00 SFGC:#FF0000 HAW:1 HAH:0 HAR:0 HAC:#8ED3D3D2 SHE:0 SHHR:0 SHVR:0 SHR:0 VAL:0 LVAL:-20 HVAL:10 BTH:0.5 TXTC:#FFFFF XTC:6 YTC:0 SHN:1 NT:0.2 UD:0 ACT:0 SHT:0 VIS:0 "
Waitms 100
Print "|CH UID:ch0 X:85 Y:14 W:25 BSZ:100 CHT:2 XTC:8 YTC:30 XMA:1 YMA:1 LT:0.15 DRA:0 DRAT:0 YASC:1 XASC:0 VLP:1 "
'//Print "|KNO UID:kno1 X:95 Y:87 W:7 VIS:1 ROT:0 SHE:1 STR:10 STS:1.5" 'bouton en bas à droite
Print "|BRS UID:brs0 HID:brs BRI:100"
'//Print "|BT UID:btfm X:83 Y:30 W:10 H:10 OPA:0.01 VIS:1 SCI:0 " 'bouton cach� pour prendre une foto de l'affichage
Print "@hls 200"
Enable Interrupts
ReturnEnd
Table:
Data 31.620! '-20 db =0,1 v,facteur de division de l'ADC en fonction de la position des potentiometre de sortie
Data 28.232! '-19 db =0,112 v
Data 25.095!
Data 22.426!
Data 20.013!
Data 17.764!
Data 15.810!
Data 14.116!
Data 12.598!
Data 11.213!
Data 10.006!
Data 8.907!
Data 7.945!
Data 7.074!
Data 6.311!
Data 5.626!
Data 5.011!
Data 4.498!
Data 3.982!
Data 3.549!
Data 3.162!
Data 2.818!
Data 2.512!
Data 2.238!
Data 1.995!
Data 1.778!
Data 1.585!
Data 1.412!
Data 1.259!
Data 1.122!
Data 1.000! -
RE: ESP8266 bugs !!?
@kl3m3n
Log of the transmission between Arduino and GUI.O with ESP8266.
Works perfectly with bluetooth!!
Bernard
Transmission GUI-O.pdf -
RE: ESP8266 bugs !!?
Hello,
Everything goes well when my Arduino receives the @init command. Arduino sends all the information back to GUI-O. and it is displayed correctly on GUI-O. Then, the main loop of my program sends every 60 msec:
Print "@slout_g VAL:" ; Logleft; "
Print "@slout_d VAL:" ; Logright; "
and Print "@ch0 PLI:'pl0,pl1' PLC:'#000000,#00BE00' YP:'" ; Logleft; "," ; Logright; "'," ; "XP:'0,0,0,0'". From then on, GUI-O no longer sends a command to the Arduino when I activate a widget on GUI-O! (a slider for example)
If I replace the ESP8266 with a Bluethout module, everything works correctly!! out of curiosity, I am attaching the source program. (Bascom)
I still suspect the ESP8266 that I will replace and I will keep you informed.
Kind regards, Bernard'=============================================================================== ' HW: Arduino Nano ATMEGA 328 , programmed whit BASCOM ' GUI-O Table mixage ' GUI-O Ver 1.0.78 '=============================================================================== '$sim $regfile = "m328pdef.dat" $crystal = 16000000 $baud = 19200 $hwstack = 40 $swstack = 20 $framesize = 30 Config Serialin = Buffered , Size = 120 Config Single = Scientific , Digits = 1 Enable Interrupts 'https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=2543&highlight=gettoken $lib "mcsbyteint.lib" $lib "GetToken.Lib" $external Gettoken Declare Function Gettoken(strinput As String , Byval Bseparator As Byte , Byval Bcount As Byte ) As String Dim Sep As Byte Dim Position As Byte Config Adc = Single , Prescaler = 32 , Reference = Aref 'internal=1,2v, aref =3.3V Start Adc Config Pind.2 = Output Cmd_vent Alias Portd.2 Reset Cmd_vent Config Pinb.5 = Output Sig_sim Alias Portb.5 Sig_sim = 0 Dim Data_key As Byte Dim Rdata As String * 100 Dim Guio_msg As String * 40 Dim Slm1 As String * 5 Dim Slm2 As String * 5 Dim Slm3 As String * 5 Dim Slm4 As String * 5 Dim Slm5 As String * 5 Dim Slm6 As String * 5 Dim Slmlg As String * 5 Dim Slmld As String * 5 Dim Slmgn As Byte Dim Slmdn As Byte Dim Light_s As String * 5 Dim Adcvg As Word Dim Adcvd As Word Dim Temp1 As Single Dim Temp2 As Single Dim Light As Byte Dim Flag_ini As Bit Dim Loggauche As Single Dim Logdroite As Single Dim Diviseurg As Single Dim Diviseurd As Single Diviseurg = 3.162 Diviseurd = 3.162 Reset Flag_ini Do If Ischarwaiting() = 1 Then 'Wait the message GUI-O @init ? Gosub Read_data End If If Flag_ini = 1 Then Exit Do End If Loop '=============================================================================== ' ' ********************************************************************** ' * Main routine, manage leds, circular bar, Graph,textes, values, * ' ********************************************************************** '+10db= 3,162v, 5db =1,778v, 0db=1v, -5db=0,562v, -10db=0,316v, -15db=0,178v, -20db=0,10v -40db=0,01 ' 988 555 312 175 98 55 40 3 ADC Value' '3,3v/1024= 0,0032 v par bit '------------------------Duration of this MAIN 60 Msec-------------------------- Main: Do Toggle Cmd_vent If Ischarwaiting() = 1 Then 'message GUI-O ? Gosub Read_data End If Adcvg = Getadc(0) 'get ADC value from ch.0 Temp1 = Adcvg * 0.003222 'Get the volt value Temp1 = Temp1 / Diviseurg 'diviser la valeur en volt par la position du potentiometre gauche Loggauche = Log10(temp1) 'transformer cette valeur en dbv Loggauche = Loggauche * 20 Print "@slout_g VAL:" ; Loggauche ; " '// Print "@ch0 PLI:'pl0' PLC:'#000000' YP:" ; Loggauche ; " '// Print "@ch0 PLI:'pl0,pl1' PLC:'#000000,#00BE00' YP:'" ; Loggauche ; "," ; Logdroite ; "'," ; "XP:'0,0,0,0'" ' waitms 300 Adcvd = Getadc(1) 'get ADC value from ch.1 Temp2 = Adcvd * 0.003222 'Get the volt value Temp2 = Temp2 / Diviseurd 'diviser la valeur en volt par la position du potentiometre gauche Logdroite = Log10(temp2) 'transformer cette valeur en dbv Logdroite = Logdroite * 20 ' Aff1 = Str(logdroite , 1) Print "@slout_d VAL:" ; Logdroite ; " Print "@ch0 PLI:'pl0,pl1' PLC:'#000000,#00BE00' YP:'" ; Loggauche ; "," ; Logdroite ; "'," ; "XP:'0,0,0,0'" ' Waitms 300 Loop '=============================================================================== ' ' ***************************** ' * Lecture des messages GUI-O* ' ***************************** '--MS-GUI-O----------------Durée de la fonction 60 msec ----------------------- Read_data: ' retourne tout ce qui est après @ xxxxxxxxxxxxxxxxxx Data_key = Inkey() '------------------------------------------------------------------------------- Select Case Data_key Case "@": 'message GUI-O ? Set Sig_sim 'Just for debbuging Input Rdata Noecho Sep = &H20 '= espace Position = 1 Guio_msg = Gettoken(rdata , Sep , Position) 'placer dans Guio_msg la commande reçue '------------------------------ Gestion des objets Météo ----------------------- Select Case Guio_msg Case "slm1": 'Potentiometre CH-1 Gauche Slm1 = Mid(rdata , 6 , 4) Print "@slm1V TXT:" ; Slm1 ; " " 'affichage numerique de la valeur du Potentiometre gauche Case "slm2" : 'Potentiometre Ch -1 Droite Slm2 = Mid(rdata , 6 , 4) Print "@slm2V TXT:" ; Slm2 ; " " 'Affichage Numerique De La Valeur Du Potentiometre droite Case "slm3": 'Potentiometre CH-2 Gauche Slm3 = Mid(rdata , 6 , 4) Print "@slm3V TXT:" ; Slm3 ; " " 'affichage numerique de la valeur du Potentiometre gauche Case "slm4" : 'Potentiometre Ch -2 Droite Slm4 = Mid(rdata , 6 , 4) Print "@slm4V TXT:" ; Slm4 ; " " 'Affichage Numerique De La Valeur Du Potentiometre droite Case "slm5": 'Potentiometre CH-3 Gauche Slm5 = Mid(rdata , 6 , 4) Print "@slm5V TXT:" ; Slm5 ; " " 'affichage numerique de la valeur du Potentiometre gauche Case "slm6" : 'Potentiometre Ch -3 Droite Slm6 = Mid(rdata , 6 , 4) Print "@slm6V TXT:" ; Slm6 ; " " 'Affichage Numerique De La Valeur Du Potentiometre droite Case "slml" : 'Potentiometre de sortie Gauche Slmlg = Mid(rdata , 6 , 4) 'lire la valeur du potentiometre gauche Slmgn = Val(slmlg) 'transformer en numerique Diviseurg = Lookup(slmgn , Table ) Case "slmd" : 'Potentiometre de sortie Droite Slmld = Mid(rdata , 6 , 4) 'lire la valeur du potentiometre droite Slmdn = Val(slmld) 'transformer en numerique Diviseurd = Lookup(slmdn , Table) 'chercher le diviseur dans la table Case "bton" 'reglage brillance ecran Light = Light + 10 If Light = 110 Then Light = 10 End If Light_s = Str(light) Print "@brs0 BRI:" ; Light_s ; " " Case "bt_fm": 'prendre une foto instantanée de la page meteo Print "@caps" Case "init": Gosub Guio_ini Set Flag_ini Case Else : Guio_msg = " " Clear Serialin End Select Case Else : Guio_msg = " " Clear Serialin Reset Sig_sim End Select Return '=============================================================================== ' ' ***************************** ' * Init sequence GUI-O* ' ***************************** ' ''--MS-GUI-O----------------==================================================== Guio_ini: Print "@sls 500" Print "@cls" Print "@clh" Print "@gse COD:0 TSC:39" 'Utiliser à la place de (chr(34) Print "@guis BGC:#2E2E2F ASR:0.4615" Print "|SORI UID:sori1 HID:sori ORI:2 SEN:0" Print "|LB UID:slm1V X:15 Y:15 W:20 FGC:#fb0001 FSZ:5 FFA:'font8' TXT:'0'" 'valeur au dessus de ch-1 g Print "|LB UID:slm2V X:25 Y:15 W:20 FGC:#fb0001 FSZ:5 FFA:'font8' TXT:'0'" 'valeur au dessus de ch-1 d Print "|LB UID:slm3V X:35 Y:15 W:20 FGC:#fb0001 FSZ:5 FFA:'font8' TXT:'0'" 'valeur au dessus de ch-2 g Print "|LB UID:slm4V X:45 Y:15 W:20 FGC:#fb0001 FSZ:5 FFA:'font8' TXT:'0'" 'valeur au dessus de ch-2 d Print "|LB UID:slm5V X:55 Y:15 W:20 FGC:#fb0001 FSZ:5 FFA:'font8' TXT:'0'" 'valeur au dessus de ch-3 g Print "|LB UID:slm6V X:65 Y:15 W:20 FGC:#fb0001 FSZ:5 FFA:'font8' TXT:'0'" 'valeur au dessus de ch-3 d Print "|LB UID:valadc X:95 Y:96 W:20 FGC:#fb0001 FSZ:5 FFA:'font8' TXT:'0000'" 'valeur au dessous des leds en bas à droite (ADC ) Waitms 100 Print "|BSL UID:bslx11 X:11 Y:30 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF" Print "|BSL UID:bslx12 X:11 Y:40 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF" Print "|BSL UID:bslx13 X:11 Y:50 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|BSL UID:bslx14 X:11 Y:60 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|BSL UID:bslx15 X:11 Y:70 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|BSL UID:bslx16 X:11 Y:80 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|BSL UID:bslx17 X:11 Y:90 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|SL UID:slm1 X:15 Y:60 W:28 H:2 HAH:6 HAW:6 IP:'Bout_Vol_In.png' HAR:0 HAC:#000E530A VIS:1 ROT:270 BGC:#000000 SFGC:#822D0A FGC:#4EB50A SHE:0 VAL:0 LVAL:-20 HVAL:+10 UD:1 RAD:1 SHH:1 CE:1 " Print "|LB UID:lb1 X:15 Y:98 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3 FFA:'font8' TXT:'CH-1'" Waitms 100 Print "|BSL UID:bslx21 X:21 Y:30 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF" Print "|BSL UID:bslx22 X:21 Y:40 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF" Print "|BSL UID:bslx23 X:21 Y:50 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|BSL UID:bslx24 X:21 Y:60 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|BSL UID:bslx25 X:21 Y:70 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|BSL UID:bslx26 X:21 Y:80 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|BSL UID:bslx27 X:21 Y:90 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|SL UID:slm2 X:25 Y:60 W:28 H:2 HAH:6 HAW:6 IP:'Bout_Vol_In.png' HAR:0 HAC:#000e530a VIS:1 ROT:270 BGC:#000000 SFGC:#822d0a FGC:#4eb50a SHE:0 VAL:0 LVAL:-20 HVAL:+10 UD:1 RAD:1 SHH:1 CE:1 " Print "|LB UID:lb2 X:25 Y:98 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3 FFA:'font8' TXT:'CH-1'" Waitms 100 Print "|BSL UID:bslx31 X:31 Y:30 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF" Print "|BSL UID:bslx32 X:31 Y:40 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF" Print "|BSL UID:bslx33 X:31 Y:50 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|BSL UID:bslx34 X:31 Y:60 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|BSL UID:bslx35 X:31 Y:70 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|BSL UID:bslx36 X:31 Y:80 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|BSL UID:bslx37 X:31 Y:90 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|SL UID:slm3 X:35 Y:60 W:28 H:2 HAH:6 HAW:6 IP:'Bout_Vol_In.png' HAR:0 HAC:#000e530a VIS:1 ROT:270 BGC:#000000 SFGC:#822d0a FGC:#4eb50a SHE:0 VAL:0 LVAL:-20 HVAL:+10 UD:1 RAD:1 SHH:1 CE:1 " Print "|LB UID:lb3 X:35 Y:98 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3 FFA:'font8' TXT:'CH-2'" Waitms 100 Print "|BSL UID:bslx41 X:41 Y:30 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF" Print "|BSL UID:bslx42 X:41 Y:40 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF" Print "|BSL UID:bslx43 X:41 Y:50 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|BSL UID:bslx44 X:41 Y:60 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|BSL UID:bslx45 X:41 Y:70 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|BSL UID:bslx46 X:41 Y:80 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|BSL UID:bslx47 X:41 Y:90 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|SL UID:slm4 X:45 Y:60 W:28 H:2 HAH:6 HAW:6 IP:'Bout_Vol_In.png' HAR:0 HAC:#000e530a VIS:1 ROT:270 BGC:#000000 SFGC:#822d0a FGC:#4eb50a SHE:0 VAL:0 LVAL:-20 HVAL:+10 UD:1 RAD:1 SHH:1 CE:1 " Print "|LB UID:lb4 X:45 Y:98 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3 FFA:'font8' TXT:'CH-2'" Waitms 100 Print "|BSL UID:bslx51 X:51 Y:30 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF" Print "|BSL UID:bslx52 X:51 Y:40 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF" Print "|BSL UID:bslx53 X:51 Y:50 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|BSL UID:bslx54 X:51 Y:60 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|BSL UID:bslx55 X:51 Y:70 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|BSL UID:bslx56 X:51 Y:80 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|BSL UID:bslx57 X:51 Y:90 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|SL UID:slm5 X:55 Y:60 W:28 H:2 HAH:6 HAW:6 IP:'Bout_Vol_In.png' HAR:0 HAC:#000e530a VIS:1 ROT:270 BGC:#000000 SFGC:#822d0a FGC:#4eb50a SHE:0 VAL:0 LVAL:-20 HVAL:+10 UD:1 RAD:1 SHH:1 CE:1 " Print "|LB UID:lb5 X:55 Y:98 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3 FFA:'font8' TXT:'CH-3'" Waitms 100 Print "|BSL UID:bslx61 X:61 Y:30 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF" Print "|BSL UID:bslx62 X:61 Y:40 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF" Print "|BSL UID:bslx63 X:61 Y:50 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|BSL UID:bslx64 X:61 Y:60 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|BSL UID:bslx65 X:61 Y:70 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|BSL UID:bslx66 X:61 Y:80 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|BSL UID:bslx67 X:61 Y:90 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000" Print "|SL UID:slm6 X:65 Y:60 W:28 H:2 HAH:6 HAW:6 IP:'Bout_Vol_In.png' HAR:0 HAC:#000e530a VIS:1 ROT:270 BGC:#000000 SFGC:#822d0a FGC:#4eb50a SHE:0 VAL:0 LVAL:-20 HVAL:+10 UD:1 RAD:1 SHH:1 CE:1 " Print "|LB UID:lb6 X:65 Y:98 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3 FFA:'font8' TXT:'CH-3'" Waitms 100 ' Gradation pot. input Gauche Print "|LB UID:lbc1 X:8 Y:30 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'+10'" Print "|LB UID:lbc2 X:8 Y:40 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'+5' " Print "|LB UID:lbc3 X:8 Y:50 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'0'" Print "|LB UID:lbc4 X:8 Y:60 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'-5'" Print "|LB UID:lbc5 X:8 Y:70 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'-10'" Print "|LB UID:lbc6 X:8 Y:80 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'-15'" Print "|LB UID:lbc7 X:8 Y:90 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'-20'" Waitms 100 ' Gradation pot. input Droite Print "|LB UID:lbd1 X:72 Y:30 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'+10'" Print "|LB UID:lbd2 X:72 Y:40 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'+5' " Print "|LB UID:lbd3 X:72 Y:50 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'0'" Print "|LB UID:lbd4 X:72 Y:60 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'-5'" Print "|LB UID:lbd5 X:72 Y:70 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'-10'" Print "|LB UID:lbd6 X:72 Y:80 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'-15'" Print "|LB UID:lbd7 X:72 Y:90 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'-20'" Waitms 100 'potentiometre de sortie gauche et droite Print "|LB UID:lbm X:83.5 Y:98 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3 FFA:'font8' TXT:'MASTER'" Print "|SL UID:slml X:80 Y:60 W:28 H:2 HAH:7 HAW:7 IP:'Bout_Vol_Out.png' HAR:0 HAC:#00772200 VIS:1 ROT:270 BGC:#000000 SFGC:#ffc04c FGC:#a93c3c SHE:0 VAL:20 LVAL:0 HVAL:30 UD:1 RAD:1 SHH:1 CE:1 " Print "|SL UID:slmd X:87 Y:60 W:28 H:2 HAH:7 HAW:7 IP:'Bout_Vol_Out.png' HAR:0 HAC:#00772200 VIS:1 ROT:270 BGC:#000000 SFGC:#ffc04c FGC:#a93c3c SHE:0 VAL:20 LVAL:0 HVAL:30 UD:1 RAD:1 SHH:1 CE:1 " Waitms 100 'indicateur de sortie gauche et droite Print "|SL UID:slout_g X:92 Y:60 W:28 H:3 ROT:270 BGC:#000000 FGC:#4EB50A SFGC:#FF0000 HAW:6 HAH:6 HAR:5 HAC:#000E530A SHE:0 SHH:0 IP:" " VAL:0.0 LVAL:-20.0 HVAL:+10.0 XTC:6 LT:0.2 ACT:0 CE:1 UD:0 VIS:1 " Print "|SL UID:slout_d X:98 Y:60 W:28 H:3 ROT:270 BGC:#000000 FGC:#4EB50A SFGC:#FF0000 HAW:6 HAH:6 HAR:5 HAC:#000A530A SHE:0 SHH:0 IP:" " VAL:0.0 LVAL:-20.0 HVAL:+10.0 XTC:6 LT:0.2 ACT:0 CE:1 UD:0 VIS:1 " Waitms 100 ' Gradation leds de sortie Print "|LB UID:lb11 X:95 Y:90 ROT:0 SHE:0 ALP:0 FGC:#FFFFFF FSZ:2.7 FFA:'font8' TXT:'-20db'" Print "|LB UID:lb12 X:95 Y:80 ROT:0 SHE:0 ALP:0 FGC:#FFFFFF FSZ:2.7 FFA:'font8' TXT:'-15db'" Print "|LB UID:lb13 X:95 Y:70 ROT:0 SHE:0 ALP:0 FGC:#FFFFFF FSZ:2.7 FFA:'font8' TXT:'-10db'" Print "|LB UID:lb14 X:95 Y:60 ROT:0 SHE:0 ALP:0 FGC:#FFFFFF FSZ:2.7 FFA:'font8' TXT:'-5db'" Print "|LB UID:lb15 X:95 Y:50 ROT:0 SHE:0 ALP:0 FGC:#FFFFFF FSZ:2.7 FFA:'font8' TXT:'-0db'" Print "|LB UID:lb16 X:95 Y:40 ROT:0 SHE:0 ALP:0 FGC:#FFFFFF FSZ:2.7 FFA:'font8' TXT:'+5db'" Print "|LB UID:lb17 X:95 Y:30 ROT:0 SHE:0 ALP:0 FGC:#FFFFFF FSZ:2.7 FFA:'font8' TXT:'over'" Waitms 100 Print "|BSE UID:bseon X:5 Y:12 W:5.5 HIW:1 SHE:0 ROT:0 BTH:0.2 BGC:#a1a1a1 FGC:#a1a1a1" Print "|BT UID:bton X:5 Y:12 W:4 H:9 SHE:1 ROT:0 RAD:3 BGC:#7a7a7a SBGC:#d9d9d9 FGC:#FFFFFF FSZ:4 BTH:0 TXT:" " SVAL:'on '" Print "|BSA UID:bsao1 X:5 Y:12 W:1.1 SHE:0 ROT:0 BTH:0.3 BGC:#000000 STA:-245 ENA:65" Print "|BSL UID:bslo1 X:5 Y:12 ROT:90 FGC:#000000 LEN:1.5 BTH:0.3" Waitms 100 'vumetre de gauche et droite Print "|CB UID:Vu_g X:75 Y:16 W:10 BGC:#FF0000 FGC:00FF00 SFGC:#FF0000 HAW:1 HAH:0 HAR:0 HAC:#8ED3D3D2 SHE:0 SHHR:0 SHVR:0 SHR:0 VAL:0 LVAL:-20 HVAL:10 BTH:0.5 TXTC:#FFFFF XTC:6 YTC:0 SHN:1 NT:0.2 UD:0 ACT:0 SHT:0 VIS:0 " Print "|CB UID:Vu_d X:90 Y:16 W:10 BGC:#FF0000 FGC:00FF00 SFGC:#FF0000 HAW:1 HAH:0 HAR:0 HAC:#8ED3D3D2 SHE:0 SHHR:0 SHVR:0 SHR:0 VAL:0 LVAL:-20 HVAL:10 BTH:0.5 TXTC:#FFFFF XTC:6 YTC:0 SHN:1 NT:0.2 UD:0 ACT:0 SHT:0 VIS:0 " Waitms 100 Print "|CH UID:ch0 X:85 Y:14 W:25 BSZ:100 CHT:2 XTC:8 YTC:30 XMA:1 YMA:1 LT:0.15 DRA:0 DRAT:0 VLP:1 " '//Print "|KNO UID:kno1 X:95 Y:87 W:7 VIS:1 ROT:0 SHE:1 STR:10 STS:1.5" 'bouton en bas à droite Print "|BRS UID:brs0 HID:brs BRI:100" '//Print "|BT UID:bt_fm X:83 Y:30 W:10 H:10 OPA:0.01 VIS:1 SCI:0 " 'bouton cach� pour prendre une foto de l'affichage Print "@hls 200" Return End Table: Data 31.620! '-20 db =0,1 v,facteur de division de l'ADC en fonction de la position des potentiometre de sortie Data 28.232! '-19 db =0,112 v Data 25.095! Data 22.426! Data 20.013! Data 17.764! Data 15.810! Data 14.116! Data 12.598! Data 11.213! Data 10.006! Data 8.907! Data 7.945! Data 7.074! Data 6.311! Data 5.626! Data 5.011! Data 4.498! Data 3.982! Data 3.549! Data 3.162! Data 2.818! Data 2.512! Data 2.238! Data 1.995! Data 1.778! Data 1.585! Data 1.412! Data 1.259! Data 1.122! Data 1.000! '+ 10 Db = 3 , 162 V
-
ESP8266 bugs !!?
@kl3m3n
Good morning,
I have 2 very distinct applications which each run on an arduino card. (programmed with Bascom) They are both connected to ESP8266 Wemos D1 R1 and I use GUI-O. They worked without problems for months and suddenly, the two applications no longer want to connect to GUI-O!. If I replace the ESP8266 with Bluetooth modules, they work on GUI-O again.
So I reprogrammed the esp8266s, reconnected to GUI-O successfully and put the ESP8266s back in place. I see that GUI-O connects to the application but the data exchange only partially works!
An idea ? , although I was able to pair the ESP8266, could it be defective?
Is there software capable of restoring the original firmware in the ESP8266?
Kind regards, Bernard -
Audio Mixer Question
Re : GUI-O Audio MIXER
Hello Gammda,
I'm talking to you because I see that you are the only one on this forum to use BASCOM.
I took over your audio mixer project published on March 16, 2022. I modified it somewhat by removing the -60db to over LEDs and replaced by two sliders to display the values of the two ADC converters (ch0-ch1). Everything works correctly [TableMixage.bas](Type de fichier non valide. Les types autorisés sont : .png, .jpg, .bmp, .txt, .pdf, .jpeg) if in the main routine, I do not activate lines 86 to 96. (reading and display on the 2 output sliders). If I activate these lines, the Ischarwaiting() = 1 function no longer works!!
Do you have any idea of the problem?
Kind regards, Bernard ```
code_text
`'===============================================================================
'' HW: Arduino Nano ATMEGA 328
' GUI-O Datalogger
' GUI-O Ver 1.0.78
'==============================================================================='$sim
$regfile = "m328pdef.dat"
$crystal = 16000000
$baud = 19200 '38400
$hwstack = 128
$swstack = 128
$framesize = 128Config Serialin = Buffered , Size = 50
Enable Interrupts
'https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=2543&highlight=gettoken
$lib "GetToken.Lib"
$external Gettoken
Declare Function Gettoken(strinput As String , Byval Bseparator As Byte , Byval Bcount As Byte ) As StringDim Sep As Byte
Dim Position As ByteConfig Adc = Single , Prescaler = Auto , Reference = Aref 'internal=1,2v, aref =3.3V
Start AdcConfig Pinb.5 = Output
Sig_sim Alias Portb.5
Sig_sim = 0
Dim Data_key As Byte
Dim Rdata As String * 100
Dim Guio_msg As String * 40
Dim Slm1 As String * 5
Dim Slm2 As String * 5
Dim Slm3 As String * 5
Dim Slm4 As String * 5
Dim Slm5 As String * 5
Dim Slm6 As String * 5
Dim Slmlg As String * 5
Dim Slmld As String * 5
Dim Light_s As String * 5
Dim Adcvg As Word
Dim Adcvd As Word
Dim Val_vug As Single
Dim Temp1 As Single
Dim Val_vud As Single
Dim Temp2 As Single
Dim Db_outg As Byte 'Single
Dim Db_outd As Byte 'Single
Dim Light As Byte
Dim Flag_ini As Bit
Reset Flag_iniDb_outd = 0
'Gosub Set_led_g
Db_outg = 0
'Gosub Set_led_dDo
If Ischarwaiting() = 1 Then 'message GUI-O ?
Gosub Read_data
End IfIf Flag_ini = 1 Then Exit Do End If
Loop
'===============================================================================
'
' **********************************************************************
' * Main routine, manage leds, circular bar, Graph,textes, values, *
' **********************************************************************
'+10db= 3,162v, 5db =1,778v, 0db=1v, -5db=0,562v, -10db=0,316v, -15db=0,178v, -20db=0,13v
' 988 555 312 175 98 55 40 ADC Value'
'3,3v/1024= 0,0032 v par bit
'--MS-GUI-O---------------------------------------------------------------------
Main:
DoIf Ischarwaiting() = 1 Then 'message GUI-O ?
Gosub Read_data
End If
'********* If y use this, Ischarwaiting() do not run !! ***********************
'(
While Sig_sim = 0
Adcvg = Getadc(0) 'get ADC value from ch.0
Temp1 = Adcvg * 0.0032 'Get the volt value
Print "@slout_g VAL:" ; Temp1 ; " " 'print on Slider'Print "@valadc TXT:" ; Temp1 ; " Adcvd = Getadc(1) 'get ADC value from ch.1 Temp2 = Adcvd * 0.0032 'Get the volt value Print "@slout_d VAL:" ; Temp2 ; "" 'print on Slider
Wend
')
'******************************************************************************
Waitms 50
Loop'===============================================================================
'
' *****************************
' * Lecture des messages GUI-O*
' *****************************'--MS-GUI-O----------------Durée de la fonction 60 msec -----------------------
Read_data: ' retourne tout ce qui est après @ xxxxxxxxxxxxxxxxxx
Data_key = Inkey()
'-------------------------------------------------------------------------------
Select Case Data_key
Case "@": 'message GUI-O ?
Set Sig_sim 'activer la led sur Arduino Nano
Input Rdata 'Noecho
Sep = &H20 '= espace
Position = 1
Guio_msg = Gettoken(rdata , Sep , Position) 'placer dans Guio_msg la commande reçue
'------------------------------ Gestion des objets Météo -----------------------
Select Case Guio_msgCase "slm1": 'Potentiometre CH-1 Gauche Slm1 = Mid(rdata , 6 , 4) Print "@slm1V TXT:" ; Slm1 ; " " 'affichage numerique de la valeur du Potentiometre gauche Case "slm2" : 'Potentiometre Ch -1 Droite Slm2 = Mid(rdata , 6 , 4) Print "@slm2V TXT:" ; Slm2 ; " " 'Affichage Numerique De La Valeur Du Potentiometre droite Case "slm3": 'Potentiometre CH-2 Gauche Slm3 = Mid(rdata , 6 , 4) Print "@slm3V TXT:" ; Slm3 ; " " 'affichage numerique de la valeur du Potentiometre gauche Case "slm4" : 'Potentiometre Ch -2 Droite Slm4 = Mid(rdata , 6 , 4) Print "@slm4V TXT:" ; Slm4 ; " " 'Affichage Numerique De La Valeur Du Potentiometre droite Case "slm5": 'Potentiometre CH-3 Gauche Slm5 = Mid(rdata , 6 , 4) Print "@slm5V TXT:" ; Slm5 ; " " 'affichage numerique de la valeur du Potentiometre gauche Case "slm6" : 'Potentiometre Ch -3 Droite Slm6 = Mid(rdata , 6 , 4) Print "@slm6V TXT:" ; Slm6 ; " " 'Affichage Numerique De La Valeur Du Potentiometre droite Case "slml" : 'Potentiometre de sortie Gauche Slmlg = Mid(rdata , 6 , 4) 'lire la valeur du potentiometre gauche Print "@Vu_g VAL:" ; Slmlg ; "" 'afficher sur le vu metre circulaire gauche Case "slmd": 'Potentiometre de sortie Droite Slmld = Mid(rdata , 6 , 4) 'lire la valeur du potentiometre droite Print "@Vu_d VAL:" ; Slmld ; "" 'afficher sur le vu metre circulaire droite Case "bton" 'reglage brillance ecran Light = Light + 10 If Light = 110 Then Light = 10 End If Light_s = Str(light) Print "@brs0 BRI:" ; Light_s ; " " Case "bt_fm": 'prendre une foto instantan� de la page meteo Print "@caps" Case "init": Gosub Guio_ini Set Flag_ini Case Else : Guio_msg = " " Clear Serialin End Select Case Else : Guio_msg = " " Clear Serialin
End Select
Guio_msg = " "
Clear Serialin
Reset Sig_sim
Return'===============================================================================
'
'
'
'
'===============================================================================
Guio_ini:
Print "@sls 500"
Print "@cls"
Print "@clh"
Print "@gse COD:0 TSC:39" 'Utiliser à la place de (chr(34)
Print "@guis BGC:#2E2E2F ASR:0.4615"
Print "|SORI UID:sori1 HID:sori ORI:2 SEN:0"Print "|LB UID:slm1V X:15 Y:15 W:20 FGC:#fb0001 FSZ:5 FFA:'font8' TXT:'0'" 'valeur au dessus de ch-1 g
Print "|LB UID:slm2V X:25 Y:15 W:20 FGC:#fb0001 FSZ:5 FFA:'font8' TXT:'0'" 'valeur au dessus de ch-1 d
Print "|LB UID:slm3V X:35 Y:15 W:20 FGC:#fb0001 FSZ:5 FFA:'font8' TXT:'0'" 'valeur au dessus de ch-2 g
Print "|LB UID:slm4V X:45 Y:15 W:20 FGC:#fb0001 FSZ:5 FFA:'font8' TXT:'0'" 'valeur au dessus de ch-2 d
Print "|LB UID:slm5V X:55 Y:15 W:20 FGC:#fb0001 FSZ:5 FFA:'font8' TXT:'0'" 'valeur au dessus de ch-3 g
Print "|LB UID:slm6V X:65 Y:15 W:20 FGC:#fb0001 FSZ:5 FFA:'font8' TXT:'0'" 'valeur au dessus de ch-3 d
Print "|LB UID:valadc X:95 Y:96 W:20 FGC:#fb0001 FSZ:5 FFA:'font8' TXT:'0000'" 'valeur au dessous des leds en bas à droite (ADC )Print "|BSL UID:bslx11 X:11 Y:30 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF"
Print "|BSL UID:bslx12 X:11 Y:40 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF"
Print "|BSL UID:bslx13 X:11 Y:50 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx14 X:11 Y:60 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx15 X:11 Y:70 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx16 X:11 Y:80 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx17 X:11 Y:90 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|SL UID:slm1 X:15 Y:60 W:28 H:2 HAH:6 HAW:6 IP:'Bout_Vol_In.png' HAR:0 HAC:#000E530A VIS:1 ROT:270 BGC:#000000 SFGC:#822D0A FGC:#4EB50A SHE:0 VAL:0 LVAL:-20 HVAL:+10 UD:1 RAD:1 SHH:1 CE:1 "
Print "|LB UID:lb1 X:15 Y:98 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3 FFA:'font8' TXT:'ch-1'"
Waitms 100
Print "|BSL UID:bslx21 X:21 Y:30 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF"
Print "|BSL UID:bslx22 X:21 Y:40 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF"
Print "|BSL UID:bslx23 X:21 Y:50 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx24 X:21 Y:60 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx25 X:21 Y:70 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx26 X:21 Y:80 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx27 X:21 Y:90 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|SL UID:slm2 X:25 Y:60 W:28 H:2 HAH:6 HAW:6 IP:'Bout_Vol_In.png' HAR:0 HAC:#000e530a VIS:1 ROT:270 BGC:#000000 SFGC:#822d0a FGC:#4eb50a SHE:0 VAL:0 LVAL:-20 HVAL:+10 UD:1 RAD:1 SHH:1 CE:1 "
Print "|LB UID:lb2 X:25 Y:98 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3 FFA:'font8' TXT:'ch-1'"
Waitms 100
Print "|BSL UID:bslx31 X:31 Y:30 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF"
Print "|BSL UID:bslx32 X:31 Y:40 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF"
Print "|BSL UID:bslx33 X:31 Y:50 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx34 X:31 Y:60 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx35 X:31 Y:70 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx36 X:31 Y:80 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx37 X:31 Y:90 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|SL UID:slm3 X:35 Y:60 W:28 H:2 HAH:6 HAW:6 IP:'Bout_Vol_In.png' HAR:0 HAC:#000e530a VIS:1 ROT:270 BGC:#000000 SFGC:#822d0a FGC:#4eb50a SHE:0 VAL:0 LVAL:-20 HVAL:+10 UD:1 RAD:1 SHH:1 CE:1 "
Print "|LB UID:lb3 X:35 Y:98 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3 FFA:'font8' TXT:'ch-2'"
Waitms 100
Print "|BSL UID:bslx41 X:41 Y:30 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF"
Print "|BSL UID:bslx42 X:41 Y:40 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF"
Print "|BSL UID:bslx43 X:41 Y:50 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx44 X:41 Y:60 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx45 X:41 Y:70 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx46 X:41 Y:80 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx47 X:41 Y:90 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|SL UID:slm4 X:45 Y:60 W:28 H:2 HAH:6 HAW:6 IP:'Bout_Vol_In.png' HAR:0 HAC:#000e530a VIS:1 ROT:270 BGC:#000000 SFGC:#822d0a FGC:#4eb50a SHE:0 VAL:0 LVAL:-20 HVAL:+10 UD:1 RAD:1 SHH:1 CE:1 "
Print "|LB UID:lb4 X:45 Y:98 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3 FFA:'font8' TXT:'ch-2'"
Waitms 100
Print "|BSL UID:bslx51 X:51 Y:30 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF"
Print "|BSL UID:bslx52 X:51 Y:40 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF"
Print "|BSL UID:bslx53 X:51 Y:50 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx54 X:51 Y:60 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx55 X:51 Y:70 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx56 X:51 Y:80 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx57 X:51 Y:90 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|SL UID:slm5 X:55 Y:60 W:28 H:2 HAH:6 HAW:6 IP:'Bout_Vol_In.png' HAR:0 HAC:#000e530a VIS:1 ROT:270 BGC:#000000 SFGC:#822d0a FGC:#4eb50a SHE:0 VAL:0 LVAL:-20 HVAL:+10 UD:1 RAD:1 SHH:1 CE:1 "
Print "|LB UID:lb5 X:55 Y:98 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3 FFA:'font8' TXT:'ch-3'"
Waitms 100
Print "|BSL UID:bslx61 X:61 Y:30 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF"
Print "|BSL UID:bslx62 X:61 Y:40 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#FFFFFF"
Print "|BSL UID:bslx63 X:61 Y:50 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx64 X:61 Y:60 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx65 X:61 Y:70 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx66 X:61 Y:80 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|BSL UID:bslx67 X:61 Y:90 SHE:0 ROT:0 LEN:8 BTH:0.1 FGC:#000000"
Print "|SL UID:slm6 X:65 Y:60 W:28 H:2 HAH:6 HAW:6 IP:'Bout_Vol_In.png' HAR:0 HAC:#000e530a VIS:1 ROT:270 BGC:#000000 SFGC:#822d0a FGC:#4eb50a SHE:0 VAL:0 LVAL:-20 HVAL:+10 UD:1 RAD:1 SHH:1 CE:1 "
Print "|LB UID:lb6 X:65 Y:98 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3 FFA:'font8' TXT:'ch-3'"
Waitms 100 ' Gradation pot. input Gauche
Print "|LB UID:lbc1 X:8 Y:30 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'+10'"
Print "|LB UID:lbc2 X:8 Y:40 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'+5db' "
Print "|LB UID:lbc3 X:8 Y:50 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'0db'"
Print "|LB UID:lbc4 X:8 Y:60 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'-5'"
Print "|LB UID:lbc5 X:8 Y:70 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'-10'"
Print "|LB UID:lbc6 X:8 Y:80 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'-15'"
Print "|LB UID:lbc7 X:8 Y:90 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'-20'"
Waitms 100 ' Gradation pot. input Droite
Print "|LB UID:lbd1 X:72 Y:30 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'+10'"
Print "|LB UID:lbd2 X:72 Y:40 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'+5db' "
Print "|LB UID:lbd3 X:72 Y:50 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'0db'"
Print "|LB UID:lbd4 X:72 Y:60 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'-5'"
Print "|LB UID:lbd5 X:72 Y:70 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'-10'"
Print "|LB UID:lbd6 X:72 Y:80 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'-15'"
Print "|LB UID:lbd7 X:72 Y:90 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3.5 FFA:'font8' TXT:'-20'"
'potentiometre de sortie gauche et droite
Print "|LB UID:lbm X:83.5 Y:98 ROT:0 SHE:1 FGC:#FFFFFF ALP:0 FSZ:3 FFA:'font8' TXT:'master'"
Print "|SL UID:slml X:80 Y:60 W:28 H:2 HAH:7 HAW:7 IP:'Bout_Vol_Out.png' HAR:0 HAC:#00772200 VIS:1 ROT:270 BGC:#000000 SFGC:#ffc04c FGC:#a93c3c SHE:0 VAL:0 LVAL:-20 HVAL:+10 UD:1 RAD:1 SHH:1 CE:1 "
Print "|SL UID:slmd X:87 Y:60 W:28 H:2 HAH:7 HAW:7 IP:'Bout_Vol_Out.png' HAR:0 HAC:#00772200 VIS:1 ROT:270 BGC:#000000 SFGC:#ffc04c FGC:#a93c3c SHE:0 VAL:0 LVAL:-20 HVAL:+10 UD:1 RAD:1 SHH:1 CE:1 "
Waitms 100
'indicateur de sortie gauche et droite
Print "|SL UID:slout_g X:92 Y:60 W:28 H:3 ROT:270 BGC:#000000 FGC:#4EB50A SFGC:#FF0000 HAW:6 HAH:6 HAR:5 HAC:#000E530A SHE:0 SHH:0 IP:" " VAL:0 LVAL:0.1 HVAL:4 XTC:6 LT:0.2 ACT:0 CE:1 UD:1 VIS:1 "
Print "|SL UID:slout_d X:98 Y:60 W:28 H:3 ROT:270 BGC:#000000 FGC:#4EB50A SFGC:#FF0000 HAW:6 HAH:6 HAR:5 HAC:#000A530A SHE:0 SHH:0 IP:" " VAL:0 LVAL:0.1 HVAL:4 XTC:6 LT:0.2 ACT:0 CE:1 UD:1 VIS:1 "
'( ' Leds de sortie Gauche
Print "|SI UID:si1 X:98 Y:90 W:1.5 VIS:1 ROT:0 BGC:#B0C4DE FGC:#009900 SHE:0 EN:1 OPA:0.2" '72
Print "|SI UID:si2 X:98 Y:80 W:1.5 VIS:1 ROT:0 BGC:#B0C4DE FGC:#009900 SHE:0 EN:1 OPA:0.2" '65
Print "|SI UID:si3 X:98 Y:70 W:1.5 VIS:1 ROT:0 BGC:#b0c4de FGC:#009900 SHE:0 EN:1 OPA:0.2" '58
Print "|SI UID:si4 X:98 Y:60 W:1.5 VIS:1 ROT:0 BGC:#B0C4DE FGC:#009900 SHE:0 EN:1 OPA:0.2" '51
Print "|SI UID:si5 X:98 Y:50 W:1.5 VIS:1 ROT:0 BGC:#B0C4DE FGC:#FFC300 SHE:0 EN:1 OPA:0.2" '44
Print "|SI UID:si6 X:98 Y:40 W:1.5 VIS:1 ROT:0 BGC:#B0C4DE FGC:#FFC300 SHE:0 EN:1 OPA:0.2" '37
Print "|SI UID:si7 X:98 Y:30 W:1.5 VIS:1 ROT:0 BGC:#B0C4DE FGC:#990000 SHE:0 EN:1 OPA:0.2"
Waitms 100 ' Leds de sortie Droite
Print "|SI UID:sj1 X:92 Y:90 W:1.5 VIS:1 ROT:0 BGC:#B0C4DE FGC:#009900 SHE:0 EN:1 OPA:0.2"
Print "|SI UID:sj2 X:92 Y:80 W:1.5 VIS:1 ROT:0 BGC:#B0C4DE FGC:#009900 SHE:0 EN:1 OPA:0.2"
Print "|SI UID:sj3 X:92 Y:70 W:1.5 VIS:1 ROT:0 BGC:#B0C4DE FGC:#009900 SHE:0 EN:1 OPA:0.2"
Print "|SI UID:sj4 X:92 Y:60 W:1.5 VIS:1 ROT:0 BGC:#B0C4DE FGC:#009900 SHE:0 EN:1 OPA:0.2"
Print "|SI UID:sj5 X:92 Y:50 W:1.5 VIS:1 ROT:0 BGC:#B0C4DE FGC:#FFC300 SHE:0 EN:1 OPA:0.2"
Print "|SI UID:sj6 X:92 Y:40 W:1.5 VIS:1 ROT:0 BGC:#B0C4DE FGC:#FFC300 SHE:0 EN:1 OPA:0.2"
Print "|SI UID:sj7 X:92 Y:30 W:1.5 VIS:1 ROT:0 BGC:#B0C4DE FGC:#990000 SHE:0 EN:1 OPA:0.2"
')
'Waitms 100 ' Gradation leds de sortie
Print "|LB UID:lb11 X:95 Y:90 ROT:0 SHE:0 ALP:0 FGC:#FFFFFF FSZ:2.7 FFA:'font8' TXT:'-20db'"
Print "|LB UID:lb12 X:95 Y:80 ROT:0 SHE:0 ALP:0 FGC:#FFFFFF FSZ:2.7 FFA:'font8' TXT:'-15db'"
Print "|LB UID:lb13 X:95 Y:70 ROT:0 SHE:0 ALP:0 FGC:#FFFFFF FSZ:2.7 FFA:'font8' TXT:'-10db'"
Print "|LB UID:lb14 X:95 Y:60 ROT:0 SHE:0 ALP:0 FGC:#FFFFFF FSZ:2.7 FFA:'font8' TXT:'-5db'"
Print "|LB UID:lb15 X:95 Y:50 ROT:0 SHE:0 ALP:0 FGC:#FFFFFF FSZ:2.7 FFA:'font8' TXT:'-0db'"
Print "|LB UID:lb16 X:95 Y:40 ROT:0 SHE:0 ALP:0 FGC:#FFFFFF FSZ:2.7 FFA:'font8' TXT:'+5db'"
Print "|LB UID:lb17 X:95 Y:30 ROT:0 SHE:0 ALP:0 FGC:#FFFFFF FSZ:2.7 FFA:'font8' TXT:'over'"
Waitms 100
Print "|BSE UID:bseon X:5 Y:12 W:5.5 HIW:1 SHE:0 ROT:0 BTH:0.2 BGC:#a1a1a1 FGC:#a1a1a1"
Print "|BT UID:bton X:5 Y:12 W:4 H:9 SHE:1 ROT:0 RAD:3 BGC:#7a7a7a SBGC:#d9d9d9 FGC:#FFFFFF FSZ:4 BTH:0 TXT:" " SVAL:'on '"
Print "|BSA UID:bsao1 X:5 Y:12 W:1.1 SHE:0 ROT:0 BTH:0.3 BGC:#000000 STA:-245 ENA:65"
Print "|BSL UID:bslo1 X:5 Y:12 ROT:90 FGC:#000000 LEN:1.5 BTH:0.3"
Waitms 100 'vumetre de gauche et droite
Print "|CB UID:Vu_g X:75 Y:16 W:10 BGC:#FF0000 FGC:00FF00 SFGC:#FF0000 HAW:1 HAH:0 HAR:0 HAC:#8ED3D3D2 SHE:0 SHHR:0 SHVR:0 SHR:0 VAL:0 LVAL:-20 HVAL:10 BTH:0.5 TXTC:#FFFFF XTC:6 YTC:0 SHN:1 NT:0.2 UD:1 ACT:0 SHT:1 "
Print "|CB UID:Vu_d X:90 Y:16 W:10 BGC:#FF0000 FGC:00FF00 SFGC:#FF0000 HAW:1 HAH:0 HAR:0 HAC:#8ED3D3D2 SHE:0 SHHR:0 SHVR:0 SHR:0 VAL:0 LVAL:-20 HVAL:10 BTH:0.5 TXTC:#FFFFF XTC:6 YTC:0 SHN:1 NT:0.2 UD:1 ACT:0 SHT:1 "
Waitms 100
'Print "|KNO UID:kno1 X:95 Y:87 W:7 VIS:1 ROT:0 SHE:1 STR:10 STS:1.5" 'bouton en bas à droite
Print "|BRS UID:brs0 HID:brs BRI:100"
Print "|BT UID:bt_fm X:83 Y:30 W:10 H:10 OPA:0.01 VIS:1 SCI:0 " 'bouton cach� pour prendre une foto de l'affichage
Print "@hls 200"
Return`` -
RE: Quick pair
@kl3m3n
yes, I stupidly took the Arduino sketch that I used in February, without checking all the parameters! I hope that my thoughtlessness will be useful to others......
Kind regards and thank you Bernard -
RE: Quick pair
@kl3m3n
Good morning,
Everything is back to normal finally!!
In the Arduino IDE it was the ESP8266 Boards -> Lolin (Wemos) D1 mini pro instead of Lolin (Wemos) D1 R1......
Thank you for your patience !!!
Kind regards, Bernard -
RE: Quick pair
@kl3m3n
Hello,
yes it's an ESP8266, sorry. No I use the code ESP8266 in Arduino IDE (LOLIN (Vemos) D1 mini pro (ESP8266).
I downloaded the code from GUI-O in February 2023 and I managed to program 2 ESP8266 with this sketch,
I haven't changed anything since except through my router and my internet provider.
With the new box, THE SSID has gone from 7 to 8 characters and the password has not changed!a question :
Is it normal that during pairing, I see "guio_ea9f6d93b119" with a padlock and that it does not ask me for the password 12345678? It seems to me that previously there was no padlock and that it asked me for the password.....!
Sincerely -
RE: Quick pair
@Bernard
Hello,
yes it's an ESP8266, sorry. No I use the code ESP8266 in Arduino IDE (LOLIN (Vemos) D1 mini pro (ESP8266).
I downloaded the code from GUI-O in February 2023 and I managed to program 2 ESP8266 with this sketch,
I haven't changed anything since except through my router and my internet provider.
With the new box, THE SSID has gone from 6 to 7 characters and the password has not changed!
Sincerely -
RE: Quick pair
@kl3m3n
Here are my tests......
The esp32 was already put in "pairing" mode during the old installation. When attempting Direct Device pairing, I see the wifi of the esp32 but with a padlock next to it! Besides, he never asks me for the password “12345678” during the procedure.
The connection is active before pairing is IoT.
I tried sending !CLEAR_PARAMS or !REBOOT_AP but that doesn't change anything....
I uncommented line 16 (#define _GUIO_DEBUG).
Here is the result:AP status: 1
Pairing request: {
"mqttHostName": "mqtt.gui-o.com",
"mqttUserName": "gui-o-mqtt-generic",
"mqttUserPassword": "lqXeZpv5VJyv0XBT",
"networkPassword": "80xxxx83",
"networkSsid": "faxx-xxell",
"publishTopic": "de37c943-94ce-4e08-a49e-80ee204b7f01",
"subscribeTopic": "37ba969f-c917-462a-bf21-bdbe8d17db1d"
}
"pairingResponse": 0,
"pairingDeviceName": "guio_ea9f6d93b119",
"networkSsid": "faxx-xxell",
"networkPassword": "80xxxxx83",
"mqttHostName": "mqtt.gui-o.com",
"mqttUserName": "gui-o-mqtt-generic",
"mqttUserPassword": "lqXeZpv5VJyv0XBT",
"subscribeTopic": "37ba969f-c917-462a-bf21-bdbe8d17db1d",
"publishTopic": "de37c943-94ce-4e08-a49e-80ee204b7f01"
}
Pairing succeeded! Copying parameters and scheduling restart...
@<pGH
dpNgpA@g8c)s'9
H:
=H+?))�
**** GUI-O ESP8266 ****GUI-O parameters not found... initializing...
*** AP mode ***
ssid: guio_ea9f6d93b119
password: 12345678
AP status: 1Best regards Bernard
-
Quick pair
@kl3m3n
Good morning !
I changed internet operator, therefore my box. Since then, I haven't been able to connect my esp32 to GUI-O. I uninstalled and reinstalled GUI-O on my phone and applied the Quik pair procedure as described in your procedure "Step 4: Pair GUI-O application with ESP32 board".
I have a problem at the 59th second of the video. I have the message "IOT Connection successful", a small flash on esp32, I wait another 2 minutes but I have a message "This is longer than usual. Please try resetting the paired device" and "No response from paired device .Please retry pairing procedure"
Any idea what's going on?
Kind regards, Bernard -
Real-time clock (RTC)
Hello kl3m3n
I would like to retrieve the day of the week from the phone in numerical form (1,2,3,4,5,6,7) or (Monday,Tuesday Wednesday,Thursday,Friday,Saturday,Sunday). Is there a command for this?
Kind regards, Bernard -
RE: BASACOM and CAN BUS
Hello,
I have never used CAN BUS . In the bascom help in "CONFIG CANBUSMODE" there is an example....
Bernard -
RE: BASACOM and CAN BUS
Good morning Sato,
I'm not sure I understand your question! Are you looking for an example of Bascom code with or without CAN?Bernard
-
RE: Experimentation with GUI-O
@Bernard
Here is the GUI-O initialization sequence......@sls 200 @cls @clh @clo @gse COD:0 TSC:39 @guis BGC:#000000 ASR:0.4615 PGF:0 |SORI UID:sori1 HID:sori ORI:2 SEN:0 // PAGE 1 // |IM UID:im0 X:50 Y:50 W:100 H:100 IP:'fondecran7.jpg' OPA:1 PLS:0 SCM:1 ACT:0 |CB UID:cb_T X:18 Y:30 W:19 BGC:#6E7274 FGC:#81DB64 SFGC:#FD1B28 HAW:2 HAR:2 LVAL:-20 HVAL:60 UD:2 FSZ:5 FFA:\"font6\" BTH:1.5 YTC:3 SHN:1 SHT:1\r\n |LB UID:lb_Vt X:18 Y:20 W:20 FGC:#FB0001 FSZ:5 FFA:\"font8\" TXT:\"00.00\"\r\n |LB UID:lb_T X:18 Y:45 W:20 FGC:#FB0001 FSZ:5 FFA:\"font2\" TXT:\"TEMP\"\r\n |LB UID:tmp_t X:15 Y:35 FGC:#42ECF5 FSZ:5 FFA:\"font6\" TXT:\"Cons. Temp\ ALP:1\r\n |BT UID:bt_ca X:18 Y:28 W:10 H:10 OPA:0.01\r\n |SI UID:Si_cmr X:18 Y:30 W:1.3 VIS:0 BGC:#FF0003\r\n |SI UID:Si_cmb X:18 Y:30 W:1 VIS:0\r\n |LB UID:tmp_r X:17 Y:40 FFA:\"font6\" TXT:\"00.00\" ALP:1\r\n |CB UID:cb_H X:50 Y:30 W:19 BGC:#6E7274 FGC:#81DB64 SFGC:#FD1B28 HAW:2 HAR:2 VAL:-20 LVAL:10 UD:2 FSZ:5 FFA:\"font6\" BTH:1.5 YTC:3 SHN:1 SHT:1\r\n |LB UID:lb_H X:50 Y:45 W:20 FGC:#00F7FF FSZ:5 FFA:\"font2\" TXT:\"HUM\"\r\n |LB UID:lb_Vh X:50 Y:20 W:20 FGC:#00F7FF FSZ:5 FFA:\"font8\" TXT:\"00.00\"\r\n |CB UID:cb_P X:83 Y:30 W:19 BGC:#6E7274 FGC:#81DB64 SFGC:#FD1B28 HAW:2 HAR:2 LVAL:600 HVAL:1050 UD:2 FSZ:5 FFA:\"font6\" BTH:1.5 YTC:3 SHN:1 SHT:1\r\n |LB UID:lb_P X:84 Y:45 W:20 FGC:#FFFF00 FSZ:5 FFA:\"font2\" TXT:\"PRESS.\"\r\n |LB UID:lb_Vp X:83 Y:20 W:20 FGC:#FFFF00 FSZ:5 FFA:\"font8\" TXT:\"00.00\"\r\n |LB UID:lbalt X:83 Y:35 FGC:#FFFFFF FSZ:3.8 FFA:\"font7\" TXT:\"Altitude\"\r\n |LB UID:lb_Va X:83 Y:39 W:20 FGC:#FFFF00 FSZ:5 FFA:\"font6\" TXT:\"---\"\r\n |CH UID:ch0 X:50 Y:75 W:50 H:50 BGC:#3A4456 SHE:1 FSZ:2.5 RAD:1 CHT:2 BSZ:120 CHN:\"'MESURE HUM / TEMP.\" XTC:12 YTC:6 XMA:2 YMA:4 XHI:75 VLP:2\r\n |BT UID:bt_1 X:18 Y:65 W:12 H:12 FSZ:5 TXT:\"1 Sec\"\r\n |SI UID:Si_1 X:8 Y:65 W:3.5 BGC:#FF0003\r\n |BT UID:bt_10 X:18 Y:79 W:12 H:12 FSZ:5 TXT:\"10 Sec\"\r\n |SI UID:Si_10 X:8 Y:79 W:3.5 BGC:#FF0003\r\n |LB UID:lb_Si10 X:8 Y:80 W:3.5 VIS:0 FGC:#FB0001 SHE:1 FSZ:5 FFA:\"font2\ TXT:\"0\"\r\n |BT UID:bt_60 X:18 Y:93 W:12 H:12 FSZ:5 TXT:\"1 Min\"\r\n |SI UID:Si_60 X:8 Y:93 W:3.5 BGC:#FF0003\r\n |LB UID:lb_Si60 X:8 Y:93 W:6 VIS:0 FGC:#FB0001 SHE:1 FSZ:5 FFA:\"font2\ TXT:\"0\"\r\n |TI UID:f_name X:86 Y:54 W:19 BGC:#C7FFFC FGC:#4C4C4C SHC:#F3FF0000 FSZ:7 FFA:\"font6\" RAD:1 BTH:0.2 TXT:\"file.txt\"\r\n |EXTF UID:extf1 HID:extf FNA:F_name\r\n |BT UID:bt_St X:86 Y:66 W:20 H:12 FGC:#00FF00 SHC:#99000000 FSZ:5 TXT:\"Start Record\"\r\n |BT UID:bt_Of X:86 Y:79 W:20 H:12 FSZ:5 TXT:\"Open File\"\r\n |BT UID:bt_Part X:81 Y:93 W:10 H:12 FSZ:5 TXT:\"Share\"\r\n |BT UID:bt_Del X:91 Y:93 W:9 H:12 FSZ:5 TXT:\"Delete\"\r\n |RTC UID:rtc1 HID:rtc RTCR:1 RTCF:yyyy/mm/dd HH:mm:ss\r\n |LB UID:datum X:32 Y:6 FGC:#42ECF5 SHE:1 FSZ:5 FFA:\"font6\" TXT:\"DAT\ ALP:1\r\n |LB UID:ura X:64 Y:6 FGC:#42ECF5 FSZ:5 FFA:\"font6\" TXT:\"TIM\" ALP:1\r\n |LB UID:lbguio X:64 Y:12 FGC:#FFFFFF FSZ:3 FFA:\"font7\" TXT:\"GUI_O\ ALP:1\r\n |LB UID:lbguiov X:64 Y:12 FGC:#00FFFFFF FSZ:3 FFA:\"font6\ TXT:\"https://www.gui-o.com\" URL:1 ALP:1\r\n |LB UID:lbesp X:33 Y:12 FGC:#FFFFFF FSZ:3.5 FFA:\"font7\" TXT:\"wiffi\" ALP:1\r\n |LB UID:lbespv X:33 Y:12 FGC:#00FFFFFF FSZ:2 FFA:\"font6\ TXT:\"https://randomnerdtutorials.com/esp8266-pinout-reference-gpios\ URL:1\r\n |BT UID:bt_stp X:18 Y:53 W:12 H:7 FSZ:5 TXT:\"Stop/St\"\r\n |LB UID:lblat X:32 Y:40 FGC:#FFFFFF FSZ:3.8 FFA:\"font7\" TXT:\"Lat N\" LALP:1\r\n |LB UID:lblatv X:32 Y:45 FGC:#42ECF5 FSZ:4.5 FFA:\"font6\" TXT:\"--\" ALP:1\r\n |LB UID:lblng X:63 Y:40 FGC:#FFFFFF SHE:1 FSZ:3.8 FFA:\"font7\" TXT:\"Long E\ LALP:1\r\n |LB UID:lblngv X:64 Y:45 FGC:#42ECF5 SHE:1 FSZ:4.5 FFA:\"font6\" TXT:\"--\" ALP:1\r\n |LB UID:lbggps X:64 Y:44 FGC:#00FFFFFF SHE:1 FSZ:3 FFA:\"font7\ TXT:\"https://www.coordonnees-gps.fr/\" URL:1 ALP:1\r\n |BAT UID:bat1 HID:bat SRAT:0.05\r\n |LB UID:lbbat X:48 Y:35 FGC:#FFFFFF SHE:1 FSZ:3.8 FFA:\"font7\" TXT:\"Batt %\" ALP:1\r\n |LB UID:lbbatv X:50 Y:39 W:15 FGC:#00F7FF SHE:1 FSZ:5 FFA:\"font6\" TXT:\"00.00\"\r\n |TON UID:ton1 HID:ton EDUR:1000\r\n |POS UID:pos1 HID:pos\r\n |BST UID:btsu X:11 Y:45 W:2.5 H:3 ROT:330 BGC:#FF0000\r\n |BST UID:btsd X:25 Y:45 W:2.5 H:3 ROT:30 BGC:#0000EC\r\n |NI UID:ct_in X:50 Y:52 VIS:0 OPA:0.01 BGC:#FD1013 FGC:#000000 FSZ:5 RAD:1 BTH:0.5\r\n |BT UID:bt_fm X:83 Y:30 W:10 H:10 OPA:0.01\r\n |FLA UID:fla0 X:50 Y:95 W:50 H:10 OPA:0.01 CTRS:2\r\n // Page 2 // |IM UID:imx X:17 Y:50 W:35 H:100 ACT:0 IP:\"Cardio.jpg\" SCM:0 SCI:1\r\n |CH UID:ch2 X:65 Y:75 W:72 H:50 FGC:#900000 FSZ:4 FFA:\"font6\" RAD:0 CHT:2 BSZ:200 BMA:0.03 CHN:\"ELECTRO CARDIOGRAM\" LT:0.15 XTC:10 YTC:8 YMA:8 YHI:5 DRA:0 SCI:1\r\n |CH UID:ch1 X:65 Y:25 W:72 H:50 FGC:#900000 SHE:1 FSZ:2.5 RAD:0 BTH:0.1 CHT:2 BSZ:200 CHN:\"MESURES\" LT:0.15 XTC:10 YTC:8 YMA:8 XHI:75 VLP:2 SCI:1\r\n |LB UID:lbpulse X:86 Y:23 FGC:#000000 SHE:1 FSZ:16 FFA:\"font6\" TXT:\"----\" ALP:1 SCI:1\r\n |LB UID:lbpname X:85 Y:10 FGC:#000000 SHE:1 FSZ:4 FFA:\"font8\" TXT:\"PULSE BMP\" ALP:1 SCI:1\r\n |LB UID:lbname X:2 Y:92 FGC:#000000 SHE:1 FSZ:10 FFA:\"font7\" TXT:\"ECG\" ALP:1 SCI:1\r\n |BT UID:btsound X:7 Y:21 W:10 H:10 BGC:#808B96 SBGC:#808B96 FGC:#FFFFFF SHE:1 SHVR:0.8 SHC:#404040 FSZ:6 FFA:\"font6\" TXT:\"Sound\" BTH:0 SVAL:\"Stop\" SCI:1\r\n |BT UID:btsim X:7 Y:8 W:10 H:10 BGC:#808B96 SBGC:#808B96 FGC:#FFFFFF SHE:1 SHVR:0.8 SHC:#404040 FSZ:6 FFA:\"font6\" TXT:\"Simulation\" BTH:0 SCI:1\r\n |BT UID:btach X:7 Y:34 W:10 H:10 BGC:#808B96 SBGC:#808B96 FGC:#FFFFFF SHE:1 SHVR:0.8 SHC:#404040 FSZ:6 FFA:\"font6\" TXT:\"Tachicardie\" BTH:0 SCI:1\r\n |BT UID:bttrg X:7 Y:62 W:10 H:10 BGC:#808B96 SBGC:#808B96 FGC:#FFFFFF SHE:1 SHVR:0.8 SHC:#404040 FSZ:6 FFA:\"font6\" TXT:\"Triger Aut/Man.\" BTH:0 SCI:1\r\n |LB UID:pttxt X:65 Y:10 W:20 FGC:#000000 SHE:1 FSZ:4 FFA:\"font8\" TXT:\"Pulse Time\" SCI:1\r\n |LB UID:ptim_v X:65 Y:15 W:8 FGC:#404040 FSZ:6 FFA:\"font2\" SCI:1\r\n |LB UID:tacxt X:45 Y:10 W:20 FGC:#000000 SHE:1 FSZ:4 FFA:\"font8\" TXT:\"TACHYCARDIE %\" SCI:1\r\n |LB UID:tach_v X:45 Y:15 W:10 FGC:#FC0000 FSZ:6 FFA:\"font2\" SCI:1\r\n |DRB UID:drb0 X:21 Y:8 W:15 H:10 BGC:#4B4C4C FGC:#FFFFFF SHE:1 FSZ:3 FFA:\"font2\" DAL:\"60,50,90,12\" SCI:1\r\n |SL UID:sl0 X:20 Y:75 W:16 ROT:270 BGC:#4C4C4D FGC:#0000FF SFGC:#FF2600 HAW:3 VAL:799 LVAL:200 HVAL:999 SCI:1\r\n |LB UID:trig_v X:20 Y:50 W:8 FGC:#00BE00 FSZ:8 FFA:\"font6\" TXT:\"....\" SCI:1\r\n |BT UID:bt_fc X:7 Y:78 W:10 H:10 OPA:0.01 SCI:1\r\n |FLA UID:fla1 X:50 Y:95 W:50 H:10 OPA:0.01 CTRS:2 SCI:1\r\n @hls 200 code_text
-
Experimentation with GUI-O
Hello everyone,
Attached is a description of two distinct applications which coexist in the same remote processor and in the same GUI-O session. ( 2 pages) I tried to use as many GUI-O widgets as possible. Thanks to @kl3m3n who took the time to answer all my questions!
PS: this application was written with Bascom for an Arduino Nano (57600 baud)
Bernard
DATALOGER_METEO_CARDIO_Dessin.pdf
DATALOGER_METEO_CARDIO_DESCRIPTION.pdf