Hi,
I’m trying to add my third Box to TC. I already got a CC3200 and ESP32 Box running. So DNS and network is fine.
Here’s what I did:
cc3200tool -p /dev/tty.usbserial-A50285BI --reset dtr read_all_files ExtractedFromBox/
cc3200tool -p /dev/tty.usbserial-A50285BI --reset dtr read_flash backup.bin
c3200tool -p /dev/tty.usbserial-A50285BI --reset dtr read_file /sys/mcuimg.bin mcuimg.bin cc3200tool -p /dev/tty.usbserial-A50285BI --reset dtr write_file mcuimg.bin /sys/pre-img.bin cc3200tool -p /dev/tty.usbserial-A50285BI --reset dtr write_file hbng-bootloader/flash/sys/mcuimg.bin /sys/mcuimg.bin cd’ed into cert folder
Downloaded the server cert and cd’ed into the folder:
cc3200tool -p /dev/tty.usbserial-A50285BI --reset dtr write_file c2.der c2.der
This was wrong, because I was missing the /cert/ folder. So I did it again:
cc3200tool -p /dev/tty.usbserial-A50285BI --reset dtr write_file c2.der /cert/c2.der
Everything worked without any errors but when I try to add the box in TC, it won’t show in last step of adding a new box.
My config file is the following one:
Summary
{
"general": {
"activeImg": "ofw1",
"\_descWaitForPress": "Waits for an earpress on startup",
"waitForPress": false,
"\_descWaitForBoot": "Waits for an earpress before firmware boot",
"waitForBoot": false,
"waitTimeoutInS": 60,
"\_descMinBatteryLevel": "Divide through 2785 to get voltage",
"minBatteryLevel": 8869,
"ofwFixFlash": "/sys/pre-img.bin",
"\_descSerialLog": "Logging only works with the debug build!",
"serialLog": false,
"\_descLogLevel": "0:Trace - 5:Fatal",
"logLevel": 0,
"\_descLogColor": "Use colors in log output",
"logColor": false
},
"ofw1": {
"checkHash": false,
"hashFile": false,
"watchdog": true,
"bootFlashImg": true,
"flashImg": "/sys/pre-img.bin"
},
"ofw2": {
"checkHash": true,
"hashFile": false,
"watchdog": true,
"ofwFix": true,
"ofwSimBL": true,
"patches": \["altCa.305"\]
},
"ofw3": {
"checkHash": true,
"hashFile": false,
"watchdog": true,
"ofwFix": true,
"patches": \["altCa.305", "altUrl.tc.fritz.box"\]
},
"cfw1": {
"checkHash": false,
"hashFile": false,
"watchdog": true
},
"cfw2": {
"checkHash": false,
"hashFile": false,
"watchdog": true
},
"cfw3": {
"checkHash": false,
"hashFile": false,
"watchdog": true
},
"add1": {
"checkHash": true,
"hashFile": false,
"watchdog": true,
"ofwFix": true,
"ofwSimBL": false,
"patches": \["blockCheck.310", "noCerts.305", "noPass3.310", "noPrivacy.305", "uidCheck.307"\]
},
"add2": {
"checkHash": true,
"hashFile": false,
"watchdog": true,
"ofwFix": true,
"ofwSimBL": false,
"patches": \["altCa.305", "altUrl.305"\]
},
"add3": {
"checkHash": true,
"hashFile": false,
"watchdog": true,
"ofwFix": true,
"ofwSimBL": false,
"patches": \["altCa.305", "altUrl.305"\]
}
}
This is the same l’m using on the other CC3200.
Flash folder structure looks like:
(I checked again cc3200tool -p /dev/tty.usbserial-A50285BI --reset dtr read_all_files ExtractedFromBox/ )
ExtractedFromBox
- ca2.der
- cert
- fw
- settings.cfg
- sys
- tmp
- www
I have this additional ca2.der on /root. Is this a problem?
In the TC log it shows a certificate error:
Summary
Jan 31 23:25:05 teddycloud teddycloud[92]: INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443…
Jan 31 23:25:05 teddycloud teddycloud[92]: INFO |cloud_request.c:0252:web_request| trying IP: 10.10.1.244
Jan 31 23:25:05 teddycloud teddycloud[92]: WARN |tls_adapter.c:0582:tlsParseCertificateList| Server name mismatch!
Jan 31 23:25:05 teddycloud teddycloud[92]: ERROR|cloud_request.c:0262:web_request| Failed to connect to HTTP server! HTTP=Unknown HTTP Status Code error=Bad certificate [532]
Jan 31 23:25:05 teddycloud teddycloud[92]: ERROR|handler_reverse.c:0029:handleReverse| cloud_request_get() failed
Jan 31 23:25:05 teddycloud teddycloud[92]: INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443…
Jan 31 23:25:05 teddycloud teddycloud[92]: INFO |cloud_request.c:0252:web_request| trying IP: 10.10.1.244
Jan 31 23:25:05 teddycloud teddycloud[92]: WARN |tls_adapter.c:0582:tlsParseCertificateList| Server name mismatch!
Jan 31 23:25:05 teddycloud teddycloud[92]: ERROR|cloud_request.c:0262:web_request| Failed to connect to HTTP server! HTTP=Unknown HTTP Status Code error=Bad certificate [532]
Jan 31 23:25:05 teddycloud teddycloud[92]: ERROR|handler_reverse.c:0029:handleReverse| cloud_request_get() failed
Jan 31 23:25:05 teddycloud teddycloud[92]: INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443…
Jan 31 23:25:05 teddycloud teddycloud[92]: INFO |cloud_request.c:0252:web_request| trying IP: 10.10.1.244
Jan 31 23:25:05 teddycloud teddycloud[92]: WARN |tls_adapter.c:0582:tlsParseCertificateList| Server name mismatch!
Jan 31 23:25:05 teddycloud teddycloud[92]: ERROR|cloud_request.c:0262:web_request| Failed to connect to HTTP server! HTTP=Unknown HTTP Status Code error=Bad certificate [532]
Jan 31 23:25:05 teddycloud teddycloud[92]: ERROR|handler_reverse.c:0029:handleReverse| cloud_request_get() failed
Jan 31 23:25:05 teddycloud teddycloud[92]: INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443…
Jan 31 23:25:05 teddycloud teddycloud[92]: INFO |cloud_request.c:0252:web_request| trying IP: 10.10.1.244
Jan 31 23:25:05 teddycloud teddycloud[92]: WARN |tls_adapter.c:0582:tlsParseCertificateList| Server name mismatch!
Jan 31 23:25:05 teddycloud teddycloud[92]: ERROR|cloud_request.c:0262:web_request| Failed to connect to HTTP server! HTTP=Unknown HTTP Status Code error=Bad certificate [532]
Jan 31 23:25:05 teddycloud teddycloud[92]: ERROR|handler_reverse.c:0029:handleReverse| cloud_request_get() failed
Jan 31 23:25:05 teddycloud teddycloud[92]: INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443…
Jan 31 23:25:05 teddycloud teddycloud[92]: INFO |cloud_request.c:0252:web_request| trying IP: 10.10.1.244
Jan 31 23:25:05 teddycloud teddycloud[92]: WARN |tls_adapter.c:0582:tlsParseCertificateList| Server name mismatch!
Jan 31 23:25:05 teddycloud teddycloud[92]: ERROR|cloud_request.c:0262:web_request| Failed to connect to HTTP server! HTTP=Unknown HTTP Status Code error=Bad certificate [532]
Jan 31 23:25:05 teddycloud teddycloud[92]: ERROR|handler_reverse.c:0029:handleReverse| cloud_request_get() failed
Jan 31 23:25:05 teddycloud teddycloud[92]: INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443…
Jan 31 23:25:05 teddycloud teddycloud[92]: INFO |cloud_request.c:0252:web_request| trying IP: 10.10.1.244
Jan 31 23:25:05 teddycloud teddycloud[92]: WARN |tls_adapter.c:0582:tlsParseCertificateList| Server name mismatch!
Jan 31 23:25:05 teddycloud teddycloud[92]: ERROR|cloud_request.c:0262:web_request| Failed to connect to HTTP server! HTTP=Unknown HTTP Status Code error=Bad certificate [532]
Jan 31 23:25:05 teddycloud teddycloud[92]: ERROR|handler_reverse.c:0029:handleReverse| cloud_request_get() failed
Jan 31 23:25:05 teddycloud teddycloud[92]: INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443…
Jan 31 23:25:05 teddycloud teddycloud[92]: INFO |cloud_request.c:0252:web_request| trying IP: 10.10.1.244
Jan 31 23:25:05 teddycloud teddycloud[92]: WARN |tls_adapter.c:0582:tlsParseCertificateList| Server name mismatch!
Jan 31 23:25:05 teddycloud teddycloud[92]: ERROR|cloud_request.c:0262:web_request| Failed to connect to HTTP server! HTTP=Unknown HTTP Status Code error=Bad certificate [532]
Jan 31 23:25:05 teddycloud teddycloud[92]: ERROR|handler_reverse.c:0029:handleReverse| cloud_request_get() failed
Jan 31 23:25:05 teddycloud teddycloud[92]: INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443…
Jan 31 23:25:05 teddycloud teddycloud[92]: INFO |cloud_request.c:0252:web_request| trying IP: 10.10.1.244
Jan 31 23:25:05 teddycloud teddycloud[92]: WARN |tls_adapter.c:0582:tlsParseCertificateList| Server name mismatch!
Jan 31 23:25:05 teddycloud teddycloud[92]: ERROR|cloud_request.c:0262:web_request| Failed to connect to HTTP server! HTTP=Unknown HTTP Status Code error=Bad certificate [532]
Jan 31 23:25:05 teddycloud teddycloud[92]: ERROR|handler_reverse.c:0029:handleReverse| cloud_request_get() failed
I uploaded the server cert multiple times without success.
Additional: What means “Boxine” in the TC Webinterface? It’s red.
Anybody any ideas?
Do you need additional information?
Kind regards
Martin
Edit: I can switch to ofw1 and use the Box with any original tonie without any problems. Also loading cfw was possible.