Smirf doesn't save data into eeprom

Hi guys

I tried to save the channel and address data into the eeprom but it doesn’t work.

I send the following commands:

putchar(20);

putchar(20);

putchar(20);

putchar(20);

putchar(20);

delay_ms(100);

putchar(49);

putchar(15);

putchar(50);

putchar(30);

putchar(52);

putchar(0);

delay_ms(20);

putchar(120);

But just the smirf change the new setting but when I turned off and power again the new setting are the default 2400 0 0

Can someone help me?

Thanks

Hi,

Looks like a good start.

Just so others know:

putchar(20); 
putchar(20); 
putchar(20); 
putchar(20); 
putchar(20); //ctl+t 5 times for quiet menu

delay_ms(100); 

putchar(49); //'1'
putchar(15); //channel 15
putchar(50); //'2'
putchar(30); //address 30
putchar(52); //'4' record to eeprom
putchar(0);  //??
delay_ms(20);  //wait for record to eeprom

putchar(120); //'x'

Looks fine except for the putchar(0) - not sure what you are doing there.

Is the SMiRF on the correct channel and address before you power the unit down?

-Nathan

hi Nathan

I read from the smirfv 2.0 datashet to put the ‘4’ and then 0 to save the data in the eeprom or am I wrong??

when I run the code, the smirf change the values to the new ones but when I turn it off and then turn it on the value are cleared and reseted.

Thanks

when I tried this code:

putchar(20);

putchar(20);

putchar(20);

putchar(20);

putchar(20);

delay_ms(100);

putchar(49);

putchar(20);

putchar(50);

putchar(30);

//putchar(52);

delay_ms(20);

putchar(120); ----> breakpoint

With breakpoint in the last line, I press start again the microcontroller and the smirfv2 goes out from the quick configuratio menu.

When I tried this code:

putchar(20);

putchar(20);

putchar(20);

putchar(20);

putchar(20);

delay_ms(100);

putchar(49);

putchar(20);

putchar(50);

putchar(30);

putchar(52);

delay_ms(20);

putchar(120); —> breakpoint

The smirfv2 still be in the quick configuration menu and never goes out.

What is hapenning???

Thanks