Blog top | Forums top | DreamLover Labs Main site | DL Lounge
Register | Login




Shop for male chastity devices and other training tools through this link to support us.


New stuff:

2024-06-06
I love the idea of making cert...
by jcoldstream
2024-03-28
Email confirmations after comp...
by switch95forfun
2024-03-28
Email confirmations after comp...
by switch95forfun
2023-12-01
Emails not received
by DreamLover Labs
2023-08-17
My husband needs to have a DL ...
by jcoldstream
2023-08-17
Can you shower or get the DL20...
by chastitydomme
2023-08-17
Where can I find other people ...
by ahsdfjklhfw
2023-08-17
I would also like to hear from...
by jcoldstream
2023-04-14
If you have soldering skills y...
by honeypod
2023-04-14
I love it...
by sissymaidemily
2023-02-20
I also have been able to get m...
by bdsamm
2022-11-05
Closed or opened Indication fo...
by switch95forfun
2022-11-04
I get mine at a Batteriesplus ...
by Fuseldar
2022-10-05
Battery suppliers
by DreamLover Labs
2022-07-25
System appears to be stable
by DreamLover Labs
2022-07-23
I've been experiencing this is...
by mayasblade
2022-07-23
Diagnosing network issues
by DreamLover Labs
2022-07-23
I'm facing the same problem...
by P4Palkkz
2022-07-20
Please email support with all ...
by dreamloverlabs
2022-06-26
Connection issues? Download the updated Windows app
by DreamLover Labs
2022-06-24
Server down...
by Alex2012
2022-06-24
Please download the updated Wi...
by dreamloverlabs
2022-06-24
Please download the updated Wi...
by dreamloverlabs
2022-06-24
I have tried several times to ...
by nikki.smith
2022-06-24
Login Response Unsuccessful...
by SlaveofDesire86
2021-11-05
Mistress Keyholder Rules the W...
by mistresskeyholder
2021-10-22
Widget not working...
by slavejake
2021-09-03
Giving back the Temp Ownership...
by keyholder0734
2021-08-24
What do you say guys shall we ...
by dreamloverlabs
2021-08-24
Hybrid solar systems...
by unipu2009
2020-12-10
Battery passivation
by DreamLover Labs
2019-09-02
Footage of DL2000 in use
by DreamLover Labs
2019-03-31
Hi, I am looking for a keyhold...
by dreamlover12
2019-01-20
Product questions
by DreamLover Labs
2018-07-29
Pay using cryptocurrencies
by DreamLover Labs
2018-07-08
Behind Barz + DreamLover 2000
by DreamLover Labs
<< return to blog entries

DL2K-LINK firmware reprogramming (warning: technical post)

2010-06-02 03:24:24 (7512 views)

In this big mess of laws, regulations, manufacturing and hardware, the few embedded software programming parts with which we used to struggle have come to seem trivially easy. However, there's one small and mean programming task with teeth we're finally attacking and that's the part where we allow you to reprogram the DL2K-LINK without external hardware.



There are many constraints:

- hardware can in no case become "broken" by incorrectly terminated upgrades. This is not exactly trivial as the chip used is a "programmable system on a chip" (PSoC) which can actually reconfigure its hardware inputs and outputs based on the firmware. It actually reconnects its internals! High tech chip... so if by any chance the configuration becomes messed up and a line is told to pull itself up while the other end tries to pull down (radio chip) this could create excess current going through the CMOS circuitry and even damage the hardware irreparably... so we need heavy checksum verification before anything is written to the program flash memory.

- in case of a failed firmware download, the unit must be able to start itself in "bootloader" mode to enable subsequent download attempts.

Now the part with teeth is that for us to be able to completely reconfigure the DL2K-LINK driver and functionality there needs to be another complementary driver (on the same device) which enables downloading the firmware. So essentially this part can be "booted" as 2 different USB devices; the DL2K-LINK and the firmware downloader.

And to do this you have to keep a close eye on USB descriptors, memory areas, checksum storage areas, and so forth. Whereas normally you create code and let the compiler put it where it may, here you must be aware of how it's compiled, where it goes, how it's rewritten, what the memory paging system is, and so forth.

Same as the firmware download on the DL2000 receiver (and the remote too which is entirely similar and will come up soon). Except that here you've got two USB devices in one...

Good news is that finally after struggling for a while it's working... (it downloads firmware and reboots with the new program) so we just have to move big blocks of code and do some cleaning up in order to restore all the features, and all will be well.

Blog posts must be getting more and more incoherent... we're crazy-busy-dizzy...

Comments

By dyonisos at 2010-06-09 13:24:44 Reply
I'm wondering what was your job experience before the DL2000 adventure ? Definitely a technical job, I guess. Reading your walk through China technical world is so interesting. And I thank you to share with us the development time of the DL. May be are we became some fans of. My old plastic CB is broken since a few days and I want ti go towards hard metal CB, but, in aim of endly testing your product, I bought a new plastic one before buying the metal one.

It's time guys to finish and SELL your product.

dyonisos
By Frank Hilbert at 2010-06-29 03:30:11 Reply
I am curious about the security provisions protecting the firmware programming. One unpleasant scenario would be, for example, the wearer to surreptitiously reprogram his device so that the pulses were all 90% reduced in intensity. He could still feel the zap and act "shocked" -- paint a grimace on his face, say "ooh!" etc. -- but not actually be subject to any meaningful discipline. This wouldn't necessarily require technical expertise on his part -- if a program like this gets written by someone, word will get out and it will be just a "google" away. So, I hope there is some sort of PIN code or password for the reprogramming. You probably know this already, but one of the mantras in security engineering is "security through obscurity is illusory" -- the secrets that prevent tampering should be in the form of a key code or PIN, not in the secrecy of the procedure or protocol.
By dreamloverlabs at 2010-06-29 09:08:34 Reply
Only original firmware can be programmed into the dongle. Fear not.
Post new comment
(C) 2008-2016 DreamLover Laboratories - all rights reserved