Please login or register.

Login with username, password and session length
 

News:

Latest updates at DangerousPrototypes.com.


Author Topic: Console update application development  (Read 1335 times)

robots

  • Full Member
  • ***
  • Posts: 185
  • Karma: +9/-0
    • View Profile
    • My Blog
Re: Console update application development
« Reply #15 on: February 04, 2010, 10:31:00 AM »
New version:

-t parameter, sets arbitrary baudrate
-status should work

I will clean up the code, and upload it with executables.

robots

  • Full Member
  • ***
  • Posts: 185
  • Karma: +9/-0
    • View Profile
    • My Blog
Re: Console update application development
« Reply #16 on: February 04, 2010, 10:44:39 AM »
Here is the source code, + executables for linux, win32.

I used Dev-C++ to compile for windows (which is essentially mingw-gcc), both project file and make file is provided. I have also included makefile for linux.
« Last Edit: February 04, 2010, 10:51:41 AM by robots »

IPenguin

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 275
  • Karma: +16/-0
    • View Profile
Re: Console update application development
« Reply #17 on: February 04, 2010, 12:09:20 PM »
Thank you! :)

I recompiled the source with Dev-C++ 5.0 beta 9.2 (4.9.9.2) (9.0 MB) with Mingw/GCC 3.4.2.
-t parameter tested ok
-status failed because

Code: [Select]
} else if ( !strcmp(argv[i], "-status") ) {
write = 1;
} else if ( !strcmp(argv[i], "-write") ) {
cmd_write = 1;

should be

Code: [Select]
} else if ( !strcmp(argv[i], "-status") ) {
cmd_status = 1;
} else if ( !strcmp(argv[i], "-write") ) {
cmd_write = 1;

fixed package attached ... will give it more testing and compile it for Mac OS X later ...



« Last Edit: February 06, 2010, 11:30:31 PM by IPenguin »

pppd

  • Newbie
  • *
  • Posts: 40
  • Karma: +2/-0
    • View Profile
Re: Console update application development
« Reply #18 on: February 04, 2010, 12:15:46 PM »
I will send you a patch to make the high speed serial compile and work on a Mac as you can't use cfsetispeed/cfsetospeed to set baudrate over 230400 on a Mac. Also, would you like a compiled universal binary?

IPenguin

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 275
  • Karma: +16/-0
    • View Profile
Re: Console update application development
« Reply #19 on: February 04, 2010, 12:29:20 PM »
pppd, thnx for the offer! Universal binary would be good unless there are issues with high speed serial on PPC because there may still be a few potential users with PPC machines around.

I don't have much experience in programming and compiling on Mac OS X and not much time atm either.

It will help the project to keep it's momentum if you could patch and compile the code for Mac OS X.

Once it compiles and runs under Windows, Linux and Mac OS X I could maintain the package as I have development platforms for all three systems and a SUMP PUMP prototype.

pppd

  • Newbie
  • *
  • Posts: 40
  • Karma: +2/-0
    • View Profile
Re: Console update application development
« Reply #20 on: February 04, 2010, 02:03:21 PM »
I have modified the makefile to detect operating system with $(shell uname) and add required flags for Mac OS X universal build. The high speed compatibility mode has been added, it should work on PPC Macs too.

Please review the changes before applying the patch. The zip archive also contains compiled universal binary.

robots

  • Full Member
  • ***
  • Posts: 185
  • Karma: +9/-0
    • View Profile
    • My Blog
Re: Console update application development
« Reply #21 on: February 04, 2010, 02:12:42 PM »
I think putting the code into svn would be better :)

pppd

  • Newbie
  • *
  • Posts: 40
  • Karma: +2/-0
    • View Profile
Re: Console update application development
« Reply #22 on: February 04, 2010, 02:20:15 PM »
I think putting the code into svn would be better :)
True, and generating patches would be easier as well.

IPenguin

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 275
  • Karma: +16/-0
    • View Profile
Re: Console update application development
« Reply #23 on: February 04, 2010, 02:41:31 PM »
Very true! Thank you for your super fast response, robots & pppd! :)

So it appears that I have SVN write/commit access, I'd prefer Ian to commit the code to SVN ... and then to go from there ...

I am off to the books and the web to find out how to generate patches ... ;)

ian

  • Crew
  • Hero Member
  • *****
  • Posts: 2861
  • Karma: +61/-0
    • View Profile
Re: Console update application development
« Reply #24 on: February 05, 2010, 02:38:42 AM »
Thanks guys! I'll put it in the gadgetfactory SVN. Is there a latest version I should use?

pppd

  • Newbie
  • *
  • Posts: 40
  • Karma: +2/-0
    • View Profile
Re: Console update application development
« Reply #25 on: February 05, 2010, 09:27:14 AM »
Thanks guys! I'll put it in the gadgetfactory SVN. Is there a latest version I should use?
I think you should download the last archive modified by IPenguin, and patch it with my Mac patch. I can patch it for you plus build a new mac binary as it was posted before IPenguin fixed that one issue.

jack.gassett

  • Moderator
  • Full Member
  • *****
  • Posts: 180
  • Karma: +11/-0
    • View Profile
    • Gadget Factory
Re: Console update application development
« Reply #26 on: February 05, 2010, 09:31:52 AM »
IPPenguin should have write access to the Gadget Factory SVN and we can give access to anyone who wants to contribute code as well. Anyone who wants to check code into SVN just needs to create an account and I will give them write access to svn.

Jack.
Jack Gassett
Gadget Factory
Home of the Papilio Platform


pppd

  • Newbie
  • *
  • Posts: 40
  • Karma: +2/-0
    • View Profile
Re: Console update application development
« Reply #28 on: February 07, 2010, 04:15:55 AM »
I've attached a patch for the latest revision fixing the Mac OS X incompatibility. I think you don't really need binaries other than Windows executable at this point as all people working on it use Windows, right? I don't think I need SVN access for this project as I am not really contributing anything that can't be posted here.

ian

  • Crew
  • Hero Member
  • *****
  • Posts: 2861
  • Karma: +61/-0
    • View Profile
Re: Console update application development
« Reply #29 on: February 07, 2010, 04:21:43 AM »
Thanks. Applied and committed.