Search results

  1. N

    TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

    Hey there! I installed 1.0.0 on TSDZ2 and SW102. No serious problems so far on a 50 km ride. But there is a bug in SW102 code. The Display hangs sporadically if you enter a configuration menu. Happened several times entering SOC/Display/Motor config , this seems to be randomly happening and...
  2. N

    Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

    Yes, just google them. I found it on eBay/China.
  3. N

    Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

    Wiki updated with a solderless programming mehtod I used with great success: https://github.com/OpenSource-EBike-firmware/Color_LCD/wiki/Initial-SW102-firmware-install#solderless-connection-to-debug-pads Greetings Niklas
  4. N

    Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

    Updated wiki with new stand alone Windows programmer guide: https://github.com/OpenSource-EBike-firmware/Color_LCD/wiki/Initial-SW102-firmware-install#stand-alone-programming-for-windows This hopefully makes first install a bit easier! Have a great day Niklas
  5. N

    Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

    It is in theory possible to show a fancy icon on the screen indicating we are in bootloader mode. But because bootloader and application are two independent pieces of software, we have to rewrite the LCD driver for the bootloader. This costs flash space and we want to save that. The bootloader...
  6. N

    Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

    I will find some time again from August on. I am also interested to bring this project foward! Cheers Niklas
  7. N

    TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

    +1 I use the counting of consumed Wh, too! Found my battery cell used in my pack here: http://www.dampfakkus.de/akkutest.php?id=537 They tested the real Wh of one cell say at 2A and I can calculate the real Wh of my battery pack with this. Even if the voltage drop is quite linear in the middle...
  8. N

    Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

    Flash usage is no concern right now. We have 127 kb for application data (rest used by bootloader and SoftDevice). Eeprom emulation reserves 1 kb flash. The basic implementation (some fonts/GFX already included) compiles around 20 kb of flash. So with some reserve we have another 80-100k for our...
  9. N

    Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

    Hello everyone, I pushed some code to the 12.3.0 branch: I finally implemented the eeprom storage emulation. This is based on the nrf5x Flash Storage library. This was a bitch because it depends not only on SoftDevice but also needs some special initialization there. I missed that and all...
  10. N

    Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

    Okay, that is small :wink:
  11. N

    Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

    So what is the font size you used in your example above for the bottom line (BRK / Lights)?
  12. N

    Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

    How about this for Light and Brake: For everyone who is interested in drawing some icons, this is how I did it: Use Inkscape to draw "pixel art". I used this tutorial for the basic settings. Important settings are: - File -> Document Properties: Custom Size to the icon size you want, units to...
  13. N

    Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

    I am no expert in graphics but I think this is the wrong way. You should paint in Inkscape in vector graphics directly. In File -> Document Properties set 'Units' to 'px', width and hight to appropriate values (you can change them later too) and untick 'Use antialiasing'. When ready with...
  14. N

    Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

    I pushed new code to the 12.3.0 branch. I implemented the UART RX/TX part with some example how to use in the main.c (including a standard config in eeprom.h). With this, I was able to let the wheel spin and change the Assist level ;) Next I will have a look into saving config to flash (eeprom...
  15. N

    Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

    Nice work! I like ;) @casainho Do you really want a graph on that tiny display? I think we can use the space better for some more infos or to make some fonts even bigger. Barts layout uses the display quite nice, IMHO. About the fonts to use: I have no special plans. We can create just what we...
  16. N

    Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

    Are there different versions? Just grab one, they all have the Nordic SOC with Bluetooth on board.
  17. N

    Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

    Good to hear. Would be great if someone is looking into the lcd layout. The icon-thing include some steps, briefly: 1) Find some nice one on iconfinder.com. Choose "Free" and "Vector" in your search 2) open svg in inkscape and scale to appropriate size 3) open in gimp and export to bmp in 24-bit...
  18. N

    Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

    As far as I know, unlocking is done by a full erase of the chip. This is done when programming the softdevice. I extend the projects Makefile with some targets which uses openOCD in command line mode (-c) to flash hex files on the chip. F.i. flashing the program hex (flash_program): $(OPENOCD)...
  19. N

    Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

    Ah, yes. That is because of the .gitignore no hex files were uploaded. Will fix this soon! I update the wiki too. BTW: Flashing the examples need the Softdevice to be flashed too (at least once). The order of flashing is important: 1) flash_softdevice (only once or if you want to begin from...
  20. N

    Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

    Our SW102 firmware and bootloader are based on the nrf5 SDK, so all the build is done by Makefile too and is not managed by Eclipse. You can also call make on the command line but I create Build Targets in Eclipse, so I can start the Makefile targets I need just with a click: Main purpose of...
  21. N

    Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

    The Device Pack is for debugging view only. If you install the pack, you can easily select peripheral registers like ADC, GPIO, ... and when halted you get a extra view of those registers:
  22. N

    Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

    I mean we could develop a UART only Bootloader for SW102 and a Bluetooth Bootloader (which we already have). Someone who is interested in selling this but fears the Bluetooth SIG can sell the UART only SW102 and enduser can flash the BT Bootloader and firmware (once over UART) at home without...
  23. N

    Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

    1) Don't panic! :wink: This project is open source none commercial. We are no company and do not sell any products. It will never happen that the Bluetooth SIG rings the door bell of end users to collect some license fees! Those fees are for companies selling Bluetooth products and putting the...
  24. N

    Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

    You can find the bootloader repository on my account as a start: https://github.com/lowPerformer/SW102_Bootloader But I'm afraid this is not as simple as flashing a hex. The bootloader needs also the Softdevice S130 v2.0.1 present. Don't know which Softdevice is on the original SW102. If you...
  25. N

    Bafang SW102 Bluetooth LCD - OpenSource firmware and mobile app

    Hard to tell. It depends which bootloader is on the device. If it's based on the Nordic nrf5 bootloader, it requires a signed zip file. So without the private key you can't update anything. I assume this bootloader also accepts only signed packages. So for now you have to open the device and...
Back
Top