[Logo] Anarduino and HopeRF Community Forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics     [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Over the air reprogramming and file transfer in a full network  XML
Forum Index » Anarduino
Author Message
w1ll14m



Joined: 03/10/2014 07:24:02
Messages: 21
Offline

stevech wrote:
jrbenito wrote:
stevech wrote:I don't now know of a way to control non-commercial use of such code - as there are commercial uses now.

suggestions welcomed.


By control you mean avoid the use or forbid it?

Regards,
Benito.

Control the use of code for commercial purposes - because in much of the world today, licensing agreements are ignored.


This is rather difficult subject. You know that there is a chance that your code will be used for some commercial product and there are always people that ingnore license agreements, unfortunately this is a problem for all the open-source hard and software projects. Some people solve this by presenting the download at dedicated website with a disclamer/license alongside a paypal donation button to "buy a beer or two" to appreciate your work and might alleviate the pain of seeing your code in a commercial product some day. And leave your some contact information for the ones that are interested in a commercial license. I for one would gladly donate a few bucks for this. Another possibility would be to divide a few features that are attractive to commercial uses into a commercial version that is for sale and have a less feature packed version for the open-source community. For example the gui for mass updating all nodes could be "limited" in functionality. Although the user could code something them selves (in which they are free to do so in the most opensource license agreements) thus making a commercial package more appealing to commercial parties.

I still have faith in the open-source principle.
w1ll14m



Joined: 03/10/2014 07:24:02
Messages: 21
Offline

Hi Steve,

I have started playing around with the optiboot code. I have issues reading the SPI flash, I was hoping you could tell me how you read the SPI flash from within the bootloader?

Regards,
William
stevech



Joined: 07/07/2014 18:07:27
Messages: 91
Offline

w1ll14m wrote:Hi Steve,

I have started playing around with the optiboot code. I have issues reading the SPI flash, I was hoping you could tell me how you read the SPI flash from within the bootloader?

Regards,
William
I have SPI code in the bootloader that does not use a library. It's small and tight.

I may soon have an agreement with Anarduino on this bootloader and possibly too, the more complex higher level protocols to send the firmware to network nodes using the RadioHead stack for the radio-hardware transparency under my application protocols and file transfer code. I still don't know how to prevent intellectual property theft when I choose not to make this open source. License agreements are not honored by most on our planet.


w1ll14m



Joined: 03/10/2014 07:24:02
Messages: 21
Offline

stevech wrote:
w1ll14m wrote:Hi Steve,

I have started playing around with the optiboot code. I have issues reading the SPI flash, I was hoping you could tell me how you read the SPI flash from within the bootloader?

Regards,
William
I have SPI code in the bootloader that does not use a library. It's small and tight.

I may soon have an agreement with Anarduino on this bootloader and possibly too, the more complex higher level protocols to send the firmware to network nodes using the RadioHead stack for the radio-hardware transparency under my application protocols and file transfer code. I still don't know how to prevent intellectual property theft when I choose not to make this open source. License agreements are not honored by most on our planet.




At the moment I'm stuck with 2 of my projects, I need WirelessProgramming because a few modules will be placed on hard to reach locations in my house and at this point I decided to give dualoptiboot a try. I got the wirelessprogramming partly to work and was able to write the hex to the SPI flash over the air and dump the SPI flash contents, the part where it fails is in the bootloader. There are a few lines of spi transfers (I think you know what lines I'm talking about) but somehow it doesn't do these right so I can't read the SPI flash. I think it's related to port and pin definitions, I will post the results when I get it to work.

I would prefer your solution as it looks very complete and RadioHead looks much more reliable and feature packed than other radio libraries (that I'm used to). I was also looking for a decent project written with RadioHead to learn (I find the RadioHead documentation pretty hard to read, C and C++ are pretty new to me). Please keep me informed about the status of your project and it's licensing, I'm still very interested. Meanwhile I would like to continue with my projects so I will proceed with trying to get DualOptiboot to work with the anarduino.
mirmit



Joined: 05/11/2014 09:48:22
Messages: 8
Offline

I've been able to make some progress with LowPowerLab wireless programming solution, but it need some polishing before publish.

In addition to the Flash CS pin change between the boards, I've struggled a lot because, it seem the erase page doesn't properly work and some of the SPI communication doesn' t work so well. The chip identification almost always return 00.

I'm ready to share as it is if someone want to start from there.
w1ll14m



Joined: 03/10/2014 07:24:02
Messages: 21
Offline

mirmit wrote:I've been able to make some progress with LowPowerLab wireless programming solution, but it need some polishing before publish.

In addition to the Flash CS pin change between the boards, I've struggled a lot because, it seem the erase page doesn't properly work and some of the SPI communication doesn' t work so well. The chip identification almost always return 00.

I'm ready to share as it is if someone want to start from there.


Maybe we should discus this in the DualOptiboot thread. I will post the progress I made there.

This message was edited 1 time. Last update was at 05/12/2014 14:11:22

Papa



Joined: 29/05/2016 16:16:13
Messages: 7
Offline

At my thread with DIY Home Automation, <Success> Wireless Programming>Anarduino Miniwireless ( http://homeautomation.proboards.com/thread/164/suc...ramming-anarduino-miniwireless ), I did a detailed documentation of installng Mr. Light's version of the bootloader on a miniwireless. Then later in the thread, I document creating a node with the miniwireless that can be reprogrammed wirelessly.
Papa



Joined: 29/05/2016 16:16:13
Messages: 7
Offline

Rick & all,
I updated my thread with DIY Home Automation, <Success> Wireless Programming>Anarduino Miniwireless (http://homeautomation.proboards.com/thread/164/suc...ramming-anarduino-miniwireless).
I used, rechecked, & tweaked the documentation & believe it to be accurate.

The Jun 7, 2016 at 7:32pm post there offers computourist_node_v2.2Mf2_choices_pub sketch which can be customized to create a wirelessly programmable node (using a miniwireless) in a computourist type network.
That Mf2 version corrects a small, but serious flaw in the previous version.

With the previous version, a node would wirelessly receive a sketch, transfer it into sketch memory, & restart the new sketch.
However, the node sketch would NOT restart if the node lost power then regained it.

Again, the new MF2 version should correct that flaw.

PS Mr Light's version of DualOptiboot bootloader is working well for me on the miniwireless. At 1024 bytes, it's only 512 bytes bigger than the Optiboot bootloader often found on Arduino compatibles AND it provides the ability to program a miniwireless wirelessly.
 
Forum Index » Anarduino
Go to:   
Powered by JForum 2.1.9 © JForum Team