Show Posts
Pages: 1 ... 37 38 [39] 40 41 ... 67
571  Using Arduino / Project Guidance / Re: HTML Server Web Pin Control on: December 19, 2012, 06:54:57 pm
The web server does not have to be on the internet.  It can be on the phone, or a PC, on your local network.

-br
572  Using Arduino / Project Guidance / Re: HTML Server Web Pin Control on: December 19, 2012, 06:32:28 pm
The problem is the file:// url.  There is a great difference between http:// and file:// urls.  The main issue here is that a file:// url is only valid on the device where the resource named by the url lives.

To fetch a resource like an image across the network, it needs to be on an http:// server and the referring HTML code needs to use the appropriate http:// url to fetch it.

-br
573  Using Arduino / Project Guidance / Re: HTML Server Web Pin Control on: December 19, 2012, 06:06:41 pm
Your SD card is probably formatted with a FAT file system, which cannot handle .html as a normal extension, since normal extensions back when FAT was invented were limited to 3 characters.  Files with more than 8 characters in the filename or three characters in the extension get this special treatment.

I'm guessing the tilde thing isn't happening to files that fit the 8.3 limit. 

You could name your file .htm and see if it helps.

-br
574  Using Arduino / Project Guidance / Re: HTML Server Web Pin Control on: December 19, 2012, 05:35:56 pm
The reason you are seeing .html files treated as plain text is because the code tells the browser that is what it wants:

Code:
          client.println("HTTP/1.1 200 OK");
          client.println("Content-Type: text/plain");
          client.println();

I believe you'll find Content-Type: text/html will make the browser render the html the way you want.

-br

575  Using Arduino / Programming Questions / Re: Serial.print with functions on: December 19, 2012, 07:15:43 am
Yes.

-br
576  Using Arduino / Project Guidance / Re: Arduino sensor network - reset problem on: December 18, 2012, 09:23:09 am
Code:
if (PAN1 == 0 & PAN2 == 0) {Serial.write("[BAD ADRESS]"); }   

Think I see a bug, but it may not matter.  What happens if you use && in the if test?

-br

577  Using Arduino / Sensors / Re: Asynchronous Bi-directional Data?? on: December 18, 2012, 08:24:02 am
Go with the simplest thing that works.  If you have time margins that permit round-robin scheduling, go with it.  It's easier to debug and more deterministic.

Bear in mind that you already have interrupt-driven _output_ in play if you end up using Serial.print to send your control output.

A lot will depend on understanding the timing requirements.

Good luck with your project,

-br
http://bitlash.net
578  Using Arduino / Interfacing w/ Software on the Computer / Re: Real-Time data acquisition (via USB) resulting in output adjustment on: December 17, 2012, 07:32:30 pm
If a virtual joystick is acceptable, Bitlash Commander does this pretty much out of the box.  I believe you could extend it to read your joystick if the physical hardware is important.

You need a program on the PC to send commands to the Arduino, and another program on the Arduino to interpret them and set the PWM values.  Bitlash Commander handles the PC part, and send commands to Bitlash, which you install on the Arduino.



https://github.com/billroy/bitlash-commander

-br
http://bitlash.net

579  Using Arduino / Programming Questions / Re: How to blink 3 leds at different time intervals on: December 17, 2012, 07:24:17 pm
The main example for the Run library, available here: https://github.com/billroy/run shows how to blink two LEDs at different rates using the Run library.  You could extend that example, but of course it's best if you understand what's going on by studying the BlinkWithoutDelay example.

You've got three little tasks, each with its own timeline.  You can't use delay in any of them because it disrupts the scheduling for all of them.  Each light needs its own scheduled time for the next thing to happen.

-br
580  Using Arduino / Project Guidance / Re: Mediate communication between arduino and printer on: December 15, 2012, 04:54:50 pm
This is the point where I suggest you hit the search engines.

Best,

-br
581  Community / Exhibition / Gallery / Re: Bitlash Commander: Web UI toolkit for Arduino on: December 15, 2012, 04:10:37 pm
Yes, there is a property you can specify on the control that controls whether or not an XY slider returns to center.

-br
582  Using Arduino / Project Guidance / Re: Mediate communication between arduino and printer on: December 15, 2012, 11:09:27 am
If what you are after is SNMP information from the printer, why not write an Arduino SNMP client for the ethernet shield to go grab it over the network?  Google shows a lot of hits for "arduino snmp".  You might find some code that would make a good starting point.

I don't understand how sniffing the printer traffic was going to get you SNMP data anyway.  But getting even one of those protocols right would be a sizable project.

-br
583  Using Arduino / Project Guidance / Re: Mediate communication between arduino and printer on: December 15, 2012, 10:35:46 am
What you are apparently trying to do is quite difficult on Arduino.  Any one of those transports would be a fairly big job even for someone experienced on the platform.

If you want to see the ethernet traffic being sent to the printer, you can do it without any hardware using Wireshark on the PC doing the printing.

It would motivate more (and better) help if you could be more transparent about your objectives.  You want us to help you build a hardware printer man-in-the-middle attack?

-br
584  Using Arduino / General Electronics / Re: Help arduino nano quartz Crystal on: December 15, 2012, 08:07:21 am
If it's still working, and you have the cover, try gluing it on.

If not, sorry to say, you are probably faced with replacing the nano.

If you have hot air equipment and rework skills, replacing a surface mount part like that is only a little bit tricky.  If you haven't used hot air equipment before, replacing a single part in a tightly populated board is probably not the best place to start.

-br
585  Using Arduino / Project Guidance / Re: Mediate communication between arduino and printer on: December 15, 2012, 07:41:56 am
It would help to know a little more about what you're trying to accomplish.

If all you want is to see the traffic going to the printer, USB sniffing on the PC side might be worth checking out as an easier approach to getting the data.

br

Pages: 1 ... 37 38 [39] 40 41 ... 67