Sydney
Offline
Jr. Member
Karma: 1
Posts: 90
|
 |
« on: June 15, 2012, 10:27:54 am » |
I've been putting up a web-based Arduino compiler and made it running for a couple of days. It is already stable and I begin to think of the way to push this forward. What came into my mind is a feature-rich web-based Arduino IDE, with a friendly HTML5 code editor, server-side compiling, a managable online sketch book, centralised library management and etc. The tough part is how to let the user download the compiled sketch (a HEX file) to Arduino board. Any suggestions will be welcomed.
|
|
|
|
|
Logged
|
|
|
|
|
Austin, TX
Offline
Faraday Member
Karma: 41
Posts: 5165
CMiYC
|
 |
« Reply #1 on: June 15, 2012, 12:01:55 pm » |
The tough part is how to let the user download the compiled sketch (a HEX file) to Arduino board. Any suggestions will be welcomed. This seems like the part that needs to be solved first. I think you can create an incredibly useful web-based tool with the features you describe. It would probably be very attractive for new users. It certainly would nice to interactively help someone. However, if downloading a HEX file and running a cryptic command is the last step, I doubt most will enjoy that step.
|
|
|
|
|
Logged
|
|
|
|
|
Sydney
Offline
Jr. Member
Karma: 1
Posts: 90
|
 |
« Reply #2 on: June 15, 2012, 12:51:03 pm » |
Actually I have a solution, by running a tiny HTTP daemon (like MiniWeb which I develop and maintain) locally which responds to browser requests (from web page) and invoke AVRDUDE to perform the HEX downloading. This is technically feasible but the disadvantage is user must start a daemon program manually.
|
|
|
|
« Last Edit: June 15, 2012, 12:55:14 pm by stanleyhuang »
|
Logged
|
|
|
|
|
Germany
Offline
Newbie
Karma: 0
Posts: 32
just sun
|
 |
« Reply #3 on: June 17, 2012, 02:38:52 am » |
Hey, i think it is an cool idea - for an cool editor look at http://ace.ajax.org/and for the upload thing: it would be easy for the user to just download a small app for the browser he is using. so if it would be possible to pack the avr upload things in the app - great thing.. for me as an sometimes proffessional user - i don't want to upload the code somewhere - so it would be great to have an 'easy to install' server for the own editor system - or the complete compiler system in the app - this would be cool - i often work together with colleges and if every body could look and use the latest versions ... dream on sunny greetings stefan
|
|
|
|
|
Logged
|
|
|
|
|
SE USA
Online
Faraday Member
Karma: 33
Posts: 3618
@ssh0le
|
 |
« Reply #4 on: June 17, 2012, 02:49:04 am » |
sounds cool, where can I download it?
ok see there's the thing, I really dont want to send a few KB to a possibly overloaded timeshare just to get back a hex I have to manually futz with all the while I am using a machine under my bench that I fished out of the dumpster that has more computer power than all of NASA did the first 2 decades of my 33 year old life.
Maybe it has its place, maybe it has its audience, but what do I think of it? well ...
|
|
|
|
|
Logged
|
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL
|
|
|
|
Sydney
Offline
Jr. Member
Karma: 1
Posts: 90
|
 |
« Reply #5 on: June 17, 2012, 07:59:25 am » |
Actually the online compiler is initially to help enable Arduino sketch to be compiled on platforms without available compiler, like iPad. Some graphical programming language for arduino will be possible to port these platforms.
|
|
|
|
|
Logged
|
|
|
|
|
Austin, TX
Offline
Faraday Member
Karma: 41
Posts: 5165
CMiYC
|
 |
« Reply #6 on: June 17, 2012, 09:15:47 am » |
Actually the online compiler is initially to help enable Arduino sketch to be compiled on platforms without available compiler, like iPad.
Again, you would need to solve the problem of loading code first. Why would I develop code on my iPad if I still need to go to my PC to load it?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
God Member
Karma: 3
Posts: 812
|
 |
« Reply #7 on: June 17, 2012, 06:55:02 pm » |
Bluetooth -> SPI converter! :-)
The mbed is interesting. You "download" the compiled output to the mbed module; it looks like a USB stick to the host computer. Still not iPad compatible, though. The Uno wouldn't really have the oomph and space to do that very well, but the Due quite likely could.
|
|
|
|
|
Logged
|
|
|
|
|
Grand Blanc, MI, USA
Offline
Edison Member
Karma: 43
Posts: 2480
"We're a proud service of the Lost Electricity Reclamation Agency"
|
 |
« Reply #8 on: June 17, 2012, 08:27:10 pm » |
That is very cool, at least as an end in itself. I certainly don't want to discourage or minimize the effort expended, but it strikes me as more of a solution in search of a problem. From my perspective, these are must-haves: (1) Tabs in the IDE. Any project of more than trivial complexity quickly morphs to multiple files. (2) Ability to define board types. I do this both to experiment and to implement completed projects. (3) Ability to use Arduino-Tiny or other alternate cores for other MCUs. (4) Ability to program MCUs either via a bootloader or an ICSP programmer.
Maybe you have a problem statement to share that might make the light go on for me?
|
|
|
|
|
Logged
|
|
|
|
|
Sydney
Offline
Jr. Member
Karma: 1
Posts: 90
|
 |
« Reply #9 on: June 19, 2012, 11:51:17 am » |
Thank you for all your opinions. Meanwhile, I found there is already a web-based MCU IDE built on mbed.org. At least, this proves that the concept works for some applications.
|
|
|
|
|
Logged
|
|
|
|
|
Newcastle, UK
Offline
Full Member
Karma: 0
Posts: 227
|
 |
« Reply #10 on: June 20, 2012, 04:32:42 am » |
The HTML5 specification did have an obscure feature which allows HTML5 code (Javascript I'm guessing) to open USB and Serial ports, but I've never seen it implemented in any browsers or anywhere for that matter.
|
|
|
|
|
Logged
|
|
|
|
|
Sydney
Offline
Jr. Member
Karma: 1
Posts: 90
|
 |
« Reply #11 on: June 20, 2012, 09:20:48 am » |
I think will built a small daemon program to wrap AVRDUDE and listen on localhost for requests from browser to implement HEX uploading.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 2
Posts: 212
|
 |
« Reply #12 on: June 27, 2012, 11:02:13 am » |
well, how about this, you create files with a different extension for example like .WEX in linux and windows or mac, associate a small program with the WEX extension that is able to upload this file to the com port you need.
Maybe it would be nice if the wex file also contained the original typed program then start the code after a /* CODE START (date) mark and end it with CODE END */ That way it could also be associated with the regular editor also (who would just ignore the marked comment that contains the code
|
|
|
|
|
Logged
|
|
|
|
|
India
Offline
Newbie
Karma: 0
Posts: 47
Silicon Addict
|
 |
« Reply #13 on: June 27, 2012, 11:09:07 pm » |
I think this is very interesting. I'm going on a trip for a few days today and was thinking if there were some way I could tinker around with arduino code on my mobile while away and here's the solution  . Would it be possible to have a simulator running so I can test my program directly on the browser? It doesn't have to be visually pleasing, a simple text dump of the sequence of events and what's happening with each of the pins should be a good start. Perhaps with time you can also add basic components like LEDs, resistors etc and popular ICs like 595, 555. I use Proteus to simulate all my arduino projects before I even put them on a breadboard. Something similar "on the go" would be awesome.
|
|
|
|
|
Logged
|
|
|
|
|
Austin, TX
Offline
Sr. Member
Karma: 12
Posts: 416
carpe diem
|
 |
« Reply #14 on: July 02, 2012, 12:04:58 pm » |
Have you guys seen the http://codebender.cc/ project? Looks like the same idea...
|
|
|
|
|
Logged
|
|
|
|
|
|