Skip to content

Commit 8f3a32d

Browse files
authored
Use console on code blocks
1 parent eb57a31 commit 8f3a32d

File tree

1 file changed

+25
-26
lines changed

1 file changed

+25
-26
lines changed

README.md

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ C = Checksum
120120

121121
### Firmware
122122
We are looking for
123-
```
123+
```console
124124
50 41 43 4B BC 16 09 00 40 01 00 00 4F 41 44 20 (PACK¼ �@��OAD)
125125
```
126126

@@ -134,7 +134,7 @@ shifterware.bin
134134
batteryware.bin
135135

136136

137-
```
137+
```console
138138
0x0002000 ?
139139
0x005A000 BLE Secrets (60)
140140
0x005af80 M-ID/M-KEY (60)
@@ -204,22 +204,22 @@ READ AND DECODE LOGS
204204
### Some Communication from the Bike to the VanMoof Backend via self-signed Certs.
205205

206206
The Backend only supports
207-
```aiignore
207+
```console
208208
Hexcode Cipher Suite Name (OpenSSL) KeyExch. Encryption Bits Cipher Suite Name (IANA/RFC)
209209
x3c AES128-SHA256 RSA AES 128 TLS_RSA_WITH_AES_128_CBC_SHA256
210210
```
211211

212212
The uuid is without dashes, 32chars, numbers and chars. No duplication checking.
213213
dist is in Kilometers with hectometer. So 5,5 kilometers become 55 here.
214-
responds with result true.
215-
```
214+
responds with result true.
215+
```console
216216
curl -vk https://bikecomm.vanmoof.com/ping-response \
217217
-H "Content-Type: application/json" \
218218
-d '{"guid":"UUID","statistics":{"batt":95,"mac":"MAC","swv":"1.6.8","dist":37154}}'
219219
```
220220

221221
Message Type(s) unknown
222-
```
222+
```console
223223
curl -vk https://bikecomm.vanmoof.com/bike-message
224224
-H "Content-Type: application/json"
225225
-d '{"mac_address":"MAC","message_type":"","message_data":""}'
@@ -228,7 +228,7 @@ curl -vk https://bikecomm.vanmoof.com/bike-message
228228
/upload expects ublox Data. => InvalidUBloxDataException
229229

230230
### m2m.vanmoof.com (SMS the bike sends)
231-
```
231+
```console
232232
ALARM_BMS_REMOVED
233233
SET_SHIPPING
234234
START_FROM_SHIPPING
@@ -309,7 +309,7 @@ Press ESC on the UART (Debug) Port until the MCU (Microcontroller) reboots and h
309309
STM32 bootloader <1.09> Muco Technologies (c)2019
310310
```
311311

312-
```
312+
```console
313313
For more information on a specific command, type HELP command-name
314314
help This tekst
315315
ver Software version
@@ -431,7 +431,7 @@ setoad test
431431
setgear save muco shifter
432432
```
433433

434-
```aiignore
434+
```console
435435
ver
436436
ES3.0 Main 1.08.02
437437
ES3 boot 1.09
@@ -442,7 +442,7 @@ GSMWare
442442
CMD_BLE_MAC F8:8A:5E:4F:9E:CB
443443
```
444444

445-
```aiignore
445+
```console
446446
show
447447
< I/O >
448448
Botton_Left 0
@@ -508,7 +508,7 @@ ride change: No
508508
bike state 20
509509
```
510510

511-
```aiignore
511+
```console
512512
battery
513513
BAT_ID 0x0
514514
FAULT 0x0
@@ -566,7 +566,7 @@ SCP 0
566566

567567
Enter the BLE Chip shell with bledebug then execute reset to get this output:
568568

569-
```aiignore
569+
```console
570570
Connect to UART8
571571
reset
572572
Mon Feb 17 20:00:34 2025: Platform reset
@@ -587,8 +587,7 @@ systick .................... : 30316279
587587
Type 'help' for a list of all available commands.
588588
```
589589

590-
```aiignore
591-
590+
```console
592591
> help
593592
The following commands are available:
594593

@@ -628,15 +627,15 @@ The following commands are available:
628627
help - show all monitor commands
629628
```
630629

631-
```
630+
```console
632631
> extflash-verify
633632
Flash type : MX25L51245G
634633
Device size (Mbyte): 64
635634
SW status register write protection: y
636635
Block write-protection enabled : n
637636
```
638637

639-
```aiignore
638+
```console
640639
> pack-process
641640
Sat Jan 1 00:55:04 2000: invalid pack content
642641
Processing pakfs, expect a small startup delay because of mainware erasing its shadowflash, which blocks all serial I/O
@@ -646,29 +645,29 @@ Processing pakfs, expect a small startup delay because of mainware erasing its s
646645
ES3 v1.08.02
647646
```
648647

649-
```aiignore
648+
```console
650649
> ble-info
651650
number of connections: 0/3
652651
Device address: cb:9e:4f:5e:94:f8
653652
```
654653

655-
```aiignore
654+
```console
656655
> ble-erase-all-bonds
657656
```
658657

659-
```aiignore
658+
```console
660659
> pack-delete
661660
Deleting PACK archive...
662661
Erase pack progress <99%>
663662
Done
664663
```
665664

666-
```aiignore
665+
```console
667666
> pack-upload
668667
CCCCCCYModem successfully received 595968 bytes for file "pack.bin"
669668
```
670669

671-
```
670+
```console
672671
> pack-list
673672
Scanning PACK archive..
674673
217,884 bytes bleware.bin
@@ -678,13 +677,13 @@ Scanning PACK archive..
678677
83,940 bytes batteryware.bin
679678
```
680679

681-
```
680+
```console
682681
> log-flush
683682
Done erasing logs
684683
```
685684

686685

687-
```aiignore
686+
```console
688687
> pack-process
689688
Processing pakfs, expect a small startup delay because of mainware erasing its shadowflash, which blocks all serial I/O
690689

@@ -762,7 +761,7 @@ Wake Reason: WAKE_SRC_BUTTON_1 WAKE_SRC_MEMS WAKE_KICKLOCK
762761
ES3 v1.01.15
763762
```
764763

765-
```aiignore
764+
```console
766765
shipping
767766
Set shipping mode
768767
01/00:24:53 BIKE_SHIPPING
@@ -784,12 +783,12 @@ No MOTOR_SLEEP_MODE from motor 0x0404
784783
```
785784

786785
### To save the distance i put the bike into shipping. That saved the distance into eeprom.
787-
```aiignore
786+
```console
788787
distance 0
789788
Set 0.0 Km
790789
```
791790

792-
```aiignore
791+
```console
793792
factory-shipping
794793
Set factory shipping mode
795794
BLE remove id 112 nr 5C

0 commit comments

Comments
 (0)