Segui il video qui sotto per vedere come installare il nostro sito come web app sulla tua schermata principale.
Nota: Questa funzionalità potrebbe non essere disponibile in alcuni browser.
Ciao,Non vorrei sbagliarmi, ma credo che sia qui l'inghippo: quel sw si aspetta di prendere i dati da un altro convertitore rs485-tcp e non dalla rs485 a bordoNella scheda flyport ethernet ho usato anche come software quello trovato sul sito di AreaSX fatto da De Santis, che quindi ritengo sia corretto, almeno nella parte di connessione con l'inverter.
//Serial number
#define CMD_SN(AD) txdata[0]=AD; txdata[1]=0x3f; txdata[2]=0x00; txdata[3]=0x00; txdata[4]=0x00; txdata[5]=0x00; txdata[6]=0x00; txdata[7]=0x00;
...
for (address=[COLOR=#0000ff]0[/COLOR]; addressCOLOR]; address++){
#ifdef DEBUG
s[COLOR=#0000ff]printf(debug, "Ricerca Inverter all'Indirizzo 0xX\r\n", address);[/COLOR]
UARTWrite(PORT_RS232,debug);
#endif
CMD_SN((unsigned char)address)
res=SendCmd(txdata,2);
if(res==8){
#ifdef DEBUG
[COLOR=#0000ff]sprintf(debug, "Inverter Trovato all'Indirizzo 0xX\r\n", address);[/COLOR]
UARTWrite(PORT_RS232,debug);
#endif
state ++;
inverterdata.indirizzo=address;
break;
} else {
//UARTWrite(PORT_RS232,".");
LED4_ON;
vTaskDelay(10);
LED4_OFF;
vTaskDelay(10);
}
}
if(state==0){
#ifdef DEBUG
[COLOR=#0000ff]UARTWrite(PORT_RS232,"ATTENZIONE - Nessun Inverter Trovato\r\n");[/COLOR]
#endif
inverterdata.indirizzo=0;
}
0x02 0x3f 0x00 0x00 0x0 0x00 0x00 0x00