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: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
572  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

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

-br
574  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

575  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
576  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

577  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
578  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
579  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
580  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
581  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
582  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
583  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

584  Using Arduino / Interfacing w/ Software on the Computer / Re: Arduino, PC, Ethernet, and VB on: December 14, 2012, 07:37:05 am
You're going to have to decide whether you want to use a web server / HTTP approach or an old-school telnet-style approach on the Arduino.  There are plenty of examples for the web server case (and in fact Zoomkat will be here any second to share some solid working HTTP code.)

It might be worth taking a look at the BitlashWebServer example that ships with Bitlash (http://bitlash.net).  It's a sketch that exposes Bitlash scripting as a web service from the Arduino over Ethernet.  It also has a telnet server so you can just send commands, as opposed to commands wrapped in HTTP GET requests.

For your project you could just send "d13=1" to turn on the LED on pin 13, and "d13=0" to turn it off.

Bitlash here: http://bitlash.net and you can browse the web server/telnet sketch code that ships in the distribution here: https://github.com/billroy/bitlash/blob/master/examples/BitlashWebServer/BitlashWebServer.ino

Good luck with your project,

-br

Edit: D13 is not going to work for an LED because it is used by the Ethernet shield.  Discovered this while creating a new built-in script for the BitlashWebServer.  But now you can open a browser on the server ip-address/toggle5 and it will turn pin 5 on and off.
585  Using Arduino / Project Guidance / Re: Serial.print incomplete string ? on: December 14, 2012, 07:24:06 am
It is hard to give advice without seeing the code for both transmit and receive.  Does the problem get worse under load?

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