Author Topic: Windows Program for Wireless Programming  (Read 70925 times)

msjfb

  • NewMember
  • *
  • Posts: 28
  • Country: ca
Re: Windows Program for Wireless Programming
« Reply #15 on: November 14, 2015, 09:14:41 PM »
To all,

I have just uploaded to Dropbox a version 1.2 of the program: this version supports a command line mode for unattended operation. Of course manual operation still works...
See the new Changelog.txt file I placed on Dropbox for further details.

Let me know if you encounter any problems with the new feature: I have tested this quite a bit in-house but one never knows...

Francois

WhiteHare

  • Hero Member
  • *****
  • Posts: 1300
  • Country: us
Re: Windows Program for Wireless Programming
« Reply #16 on: November 18, 2015, 08:44:28 PM »
I can now confirm that the v1.2 GUI works (as did v1.1 GUI before it).  :)  Nice work!

As further testing, I did try running the following from the Windows 8 command line:
MoteinoWirelessProgramming 13,115200,123,C:\Users\LR\Documents\Arduino\WirelessProgramming_node\WirelessProgramming_node_v001\WirelessProgramming_node_v001.cpp.standard.hex
and it didn't appear to work as expected.  Rather, it just opened up the GUI within the Windows environment (same as if I had run the program with no parameters).  Maybe the file path I gave it is too long? 
« Last Edit: November 19, 2015, 12:48:12 PM by WhiteHare »

WhiteHare

  • Hero Member
  • *****
  • Posts: 1300
  • Country: us
Re: Windows Program for Wireless Programming
« Reply #17 on: November 19, 2015, 01:33:21 PM »
OK, I see now that my first attempt (above) at the command line was overly literal in following the directions and consequently invoked an earlier version (not v1.2) of the .exe file.

So, I fixed that, and also I shortened the file path in case that was a factor.  This time I invoked it with:
C:\mwpv1_2>mwp1_2 13,115200,123,c:\mwpv1_2\wpn1.hex

and it worked!   :)

There's no feedback on the command line itself as to whether anything happened.  However, it does launch the GUI app (and quickly shrinks it) with the proper parameters, runs it (diagnostic mode is off), and it closes upon exit.

So, it's a first step.  My main interest isn't in that, per se, but in the virtual com port that might (?) be added in the future.  i.e. using an <ip-address>:<port> instead of a serial com port on whichever computer is sending the hex file to the Wireless Programming Gatway.  Actually, if that were in the GUI, it would be even better, but I'd use it wherever it is.   Then there would be an excellent chance I could marry an esp8266 (acting as the virtual serial port) with a Moteino Wireless Programming Gateway and thereby have a cordless (and portable) Wireless Programming Gateway.   No dongles anywhere!  :) :) :)
« Last Edit: November 19, 2015, 02:07:50 PM by WhiteHare »

msjfb

  • NewMember
  • *
  • Posts: 28
  • Country: ca
Re: Windows Program for Wireless Programming
« Reply #18 on: November 20, 2015, 01:20:24 PM »
Well you asked for it, here it is: Version 1.3 with support for TCP remote port  ;)

Although I have tested it on my network, I would like to have one or two testers try it before I release it.
I only tested it with a windows program acting as a TCP-Serial bridge. It would be nice to have it tested with another type of setup.

So, please PM me if you want to try it out.

François

msjfb

  • NewMember
  • *
  • Posts: 28
  • Country: ca
Re: Windows Program for Wireless Programming
« Reply #19 on: December 09, 2015, 06:12:30 PM »
Hi everyone,

A new version 1.4 of the software is now ready and available on Dropbox. I also uploaded the source code.
After a bit of testing and cleaning up, this version now allows communication to the wireless programming gateway either through a local serial port or a remote TCP port.
This means the gateway no longer needs to be physically attached to the same machine as the one running the software.

Enjoy,

François

WhiteHare

  • Hero Member
  • *****
  • Posts: 1300
  • Country: us
Re: Windows Program for Wireless Programming
« Reply #20 on: December 09, 2015, 06:29:45 PM »
Thanks, msjfb! 

@everyone: It works wonderfully!

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: Windows Program for Wireless Programming
« Reply #21 on: December 12, 2015, 12:32:47 PM »
msjfb (Francois),
Nice work, I'd like to post this in a github repository so there is some tracking of the history of changes to the code. Unless you'd like to do that yourself, I can post this on my own github repository (github.com/LowPowerLab).
What do you think?

msjfb

  • NewMember
  • *
  • Posts: 28
  • Country: ca
Re: Windows Program for Wireless Programming
« Reply #22 on: December 13, 2015, 04:40:30 PM »
Felix,
Had not really thought about Github, as I had never used it.
So I read up a bit and gave it  a try. I created a repository "msjfb", with all the files in a commit (version 1.4).
Not sure if this is the proper setup, so if you see anything missing or out of place let me know what needs to be done.

Note:
I had a changelog file in the now empty Dropbox folder (I cannot quite remember deleting it...) but it contained a few notes on usage and version history.
I will try to see if I have local copy somewhere, if not I will put new comments in the Github Readme,md file.
François

WhiteHare

  • Hero Member
  • *****
  • Posts: 1300
  • Country: us
Re: Windows Program for Wireless Programming
« Reply #23 on: December 13, 2015, 08:01:29 PM »
François,

Below is the changelog text:

Version 1.4 (2015/12/09)
Added support for use of a TCP port to communicate with the Gateway.
This allows the gateway to be connected anywhere on the network using a Device Server (such as the Lantronix UDS-1000)
or a PC with a "Serial to Ip" software running (such as the free Serial-TCP program)

===============================================================
Version 1.2 (2015/11/14)
Added command line support for unattended mode: 4 parameters are required:
<COM port>,<BaudRate>,<TargetNode>,<Filepath>

Ex: MoteinoWirelessProgramming 6,115200,5,c:\Arduino\Hexfiles\MyHexfile.HEX
This would launch the program in minimized mode, using COM port #6 at 115200 baud, and transmitting file "c:\Arduino\Hexfiles\MyHexfile.HEX"

The program will automatically exit when finished with the following return codes that can be read from a .BAT or .CMD file for automatic processing.
Code   Description
0   Success
20   Cannot open COM port
30   Cannot set Target on Gateway
40   Handshake NAK (Image refused by target)
50   Problem in processing HEX file
60   HEX file not found

===============================================================
Version 1.1  (2015/11/02)
Saves/reads last HEX file used in MoteinoWP.ini file

===============================================================
Version 1.0
Initial release

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: Windows Program for Wireless Programming
« Reply #24 on: December 14, 2015, 01:37:19 PM »
Great,
You can just put the content of the changelog in the readme.md file, that will display it when you open the repository link.
Also the dropbox links should be updated to this location.
Thanks!

msjfb

  • NewMember
  • *
  • Posts: 28
  • Country: ca
Re: Windows Program for Wireless Programming
« Reply #25 on: December 14, 2015, 02:17:46 PM »
Done!

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: Windows Program for Wireless Programming
« Reply #26 on: December 15, 2015, 03:46:39 PM »
I am trying this 1.4 program for the first time and I am getting this:

The COM port is free and I can run my usual python script to do the WP.

Also it was a pain to get the Runtime installed, all the zips I tried failed to open. Then I managed to find an older version of the runtime on sourceforge which worked and I could start the program.
Anyway I would suggest putting a link to this on the readme.md file so people can get it straigth from there: http://sourceforge.net/projects/vb6extendedruntime/files/Visual%20Basic%206.0%20Full%20Runtime%202.0.zip/download
« Last Edit: December 15, 2015, 10:29:37 PM by Felix »

msjfb

  • NewMember
  • *
  • Posts: 28
  • Country: ca
Re: Windows Program for Wireless Programming
« Reply #27 on: December 15, 2015, 04:59:41 PM »
Ooops, you just found a 'copy/paste' error in the error handling routine: You should be getting a more significant error message.
I have updated the files to version 1.4.1, correcting this error. I also removed the INI file (was there by error, it will be created automatically), and a couple of log files.

I will prepare a setup file that will include all the required runtimes.

BTW, is there a way I can edit the readme file directly without doing it locally and  pushing it up through Github workstation ?

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: Windows Program for Wireless Programming
« Reply #28 on: December 15, 2015, 10:29:14 PM »
Cool!
A setup with all required runtimes would be great, would remove any requirement to install anything else.
Yes you can just click on readme.md and then click the EDIT button and it allows to edit it right into the browser.

WhiteHare

  • Hero Member
  • *****
  • Posts: 1300
  • Country: us
Re: Windows Program for Wireless Programming
« Reply #29 on: March 20, 2016, 08:38:04 PM »
Yesterday I replaced all my dupont wiring with soldered connections to a PCB, and today I just now added a female header for plugging a Moteino R4 into.  As before, thanks to msjfb's tcp serial support, it all "just works."   Anyhow, since I didn't previously post a photo, I thought I would now.  The board layout could obviously be improved, but it doesn't seem to matter.

Thanks again, msjfb!  :)