Mercurial > public > ostc4
comparison BootLoader/Src/tComm_mini.c @ 992:39f28cd9dc46 BootloaderOstc5
Bootloader BT module initialization:
The previous version did the first initialization of the module based on the fact if a serial number is present or not. Meanwhile the serial number may be preset in the binary => use the name program flag as indicator if the module shall be initialized or not.
| author | Ideenmodellierer |
|---|---|
| date | Tue, 15 Apr 2025 21:49:42 +0200 |
| parents | aeafa631147d |
| children | f1b78bc8de10 |
comparison
equal
deleted
inserted
replaced
| 991:39b25be11009 | 992:39f28cd9dc46 |
|---|---|
| 1783 break; | 1783 break; |
| 1784 case BM_INIT_NAME: sprintf(TxBuffer,"AT+UBTLN=OSTC5-12345\r"); /* Bluetooth name */ | 1784 case BM_INIT_NAME: sprintf(TxBuffer,"AT+UBTLN=OSTC5-12345\r"); /* Bluetooth name */ |
| 1785 if(hardwareDataGetPointer()->primarySerial != 0xFFFF) /* module reinit? => restore old name */ | 1785 if(hardwareDataGetPointer()->primarySerial != 0xFFFF) /* module reinit? => restore old name */ |
| 1786 { | 1786 { |
| 1787 gfx_number_to_string(5,1,&TxBuffer[15],hardwareDataGetPointer()->primarySerial); | 1787 gfx_number_to_string(5,1,&TxBuffer[15],hardwareDataGetPointer()->primarySerial); |
| 1788 hardware_programmPrimaryBluetoothNameSet(); | |
| 1788 } | 1789 } |
| 1789 break; | 1790 break; |
| 1790 case BM_INIT_SSP_IDO_OFF: sprintf(TxBuffer,"AT+UDSC=0,0\r"); /* Disable SPP Server on ID0 */ | 1791 case BM_INIT_SSP_IDO_OFF: sprintf(TxBuffer,"AT+UDSC=0,0\r"); /* Disable SPP Server on ID0 */ |
| 1791 break; | 1792 break; |
| 1792 case BM_INIT_SSP_IDO_ON: sprintf(TxBuffer,"AT+UDSC=0,3\r"); /* SPP Server on ID0 */ | 1793 case BM_INIT_SSP_IDO_ON: sprintf(TxBuffer,"AT+UDSC=0,3\r"); /* SPP Server on ID0 */ |
