Show Posts
Pages: 1 2 [3] 4 5 ... 350
31  Using Arduino / Networking, Protocols, and Devices / Re: SPI with Transaction, CC3000 on: September 11, 2014, 08:10:32 am
Transactions would solve all these problems nicely.

Theoretically yes, but not the way they are used in the CC3000 library. As far as I understood the library the communication with the chip is often done asynchronously, so the assertion is made in the standard code and released inside an ISR. The linked library only takes care that a complete transaction inside or outside an ISR for the same device does not interfere but there are no precautions that different devices behave the same. That could be implemented but that would mean that would mean that you loose backward compatibility and that every call must be checked if it really happened. I don't know if every device is capable of acting that way. For example, let's say you're inside a transaction with your Spirit1 and an interrupt of the CC3000 occurs. Is a reaction 0.2ms later (when the transaction with the Spirit1 finished) enough or may the CC3000 state have already changed again by then? I don't have a datasheet of the CC3000 to check such stuff. Maybe you have to change your WiFi board to one that doesn't need interrupts to work if you have also connected devices like the Spirit1.

BTW: Do you have a link to that Spirit1 from TI? I only know a Spirit1 from STMicroelectronics so I'm eager to see what TI offers.

I would like also to mention that one day the SPI library will contain transaction support and then my application would break.

That depends on how they would be implemented.

I would like to note that the transaction support in ccspi.cpp is enabled by a definition in SPI.h (in the Arduino library

No, it's triggered by a definition in your replacement library, the original library from Arduino doesn't have that definition (if you wrote about the same definition that I found).
32  Using Arduino / Networking, Protocols, and Devices / Re: arduino ip scanner? on: September 11, 2014, 07:52:34 am
seeedstudio ethernet shield

Which version? That's why we usually ask for links to the used hardware.

Please define what exactly that scanner should do. In the link software you have to enter the IP network that should be scanned, how do you want to enter that network definition on the Arduino?. It also makes a huge difference if just pingable hosts should be recognized or if also hosts with an active firewall (and disabled ICMP) must be listed.
33  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet shield hostname on: September 11, 2014, 07:45:14 am
Angry IP Scan will scan a range of the network and return if the Computer respond to the ping and returns the hostname

What exactly does "hostname" mean in this sentence? The DNS hostname? If yes, the used DHCP server must know about each device that connects and always give the same IP address to that device (which is almost the same as fixed addresses but no need to configure the Arduino), additionally an in-house DNS must exist that is responsible for the reverse lookup.

Theoretically your "hostname" may be the name offered to the DHCP server when requesting an IP. But in this case you must have a special DHCP server that allows to query these strings, this is not part of the DHCP protocol and therefor not standardized.

Your problem can be resolved by DDNS or MDNS. The first is a DNS service where the Arduino may register itself after acquiring an IP address while the later is often known as "Bonjour" (that's how Apple calls it), which already has a minimalistic implementation for the Arduino (
34  International / Deutsch / Re: SMS empfangen mit ITEAD GSM/GPRS Shield on: September 11, 2014, 07:35:58 am
Meiner Meinung nach kommen vom Modul nicht die Daten rüber, die die Bibliothek erwartet. Ich würde also die Bibliothek testhalber so abändern, dass der Antwortstring auf das Kommando "AT+CMGR" auf die serielle Schnittstelle ausgegeben wird. Poste bitte das Ergebnis.
35  Using Arduino / Networking, Protocols, and Devices / Re: Can & Ethernet Shield on the same Arduino Mega2560 but ... on: September 11, 2014, 05:02:43 am
The MISO/MOSI pins are part of the SPI bus so they are intended to be used by more than one device. You just have to take care that the CS/SS pins are separate for the two shields. On the CAN shield you can select between D9 and D10 for CS. Switch to D9 and you're fine.
36  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet shield hostname on: September 11, 2014, 04:55:53 am
Maybe I don't understand your problem but from what I got, I'd suggest to use fixed IP numbers and just enter them into your hosts file (yes, even Windows has one).
I don't know what "Angry IP Scan" does (you didn't provide a link to it), so my guess is, that it uses some Windows-only stuff to show a name and that will not work with the Arduino.
37  Using Arduino / Networking, Protocols, and Devices / Re: SPI with Transaction, CC3000 on: September 11, 2014, 04:50:50 am
I have 2 other chips on the SPI bus.

As I already wrote, you don't need transactions just because you're using other chips on the SPI bus. What are the other chips you're using? Does any of them use another SPI mode or needs another speed?

Do you have any suggestions where to look in the library or do you know about an alternative library?

My suggestion is to use the standard SPI library if you don't have good reasons not to do so. Until now you haven't written about such a reason.
38  International / Deutsch / Re: SMS empfangen mit ITEAD GSM/GPRS Shield on: September 11, 2014, 04:43:38 am
Wenn ich den Code richtig interpretiere und nichts übersehen habe, müsste ein Aufruf von "CheckRegistration()" stattfinden, damit das GSM-Modul im richtigen Modus ist, die SMS überhaupt zu übertragen. Kriegst Du die sendende Telefonnummer angezeigt? Falls nicht, dürfte der fehlende Aufruf von "AT+CMGF=1" zum Problem führen.
39  Using Arduino / Networking, Protocols, and Devices / Re: SPI with Transaction, CC3000 on: September 10, 2014, 09:19:47 am
If you take a look at the code you might see that this isn't the case. The problem is, that Adafruit's library don't expect anything to happen during the operation of their device. They set the CS line low, activate the interrupt and wait until the interrupt happen. If you use the SPI library with transactions they activate that interrupt in the library which might result in having all interrupts blocked. This interrupt will never happen and you get unstable behavior.

Having this transaction based SPI library activated with the CC3000 library is quite risky in my opinion. If you really need it, it might be worth the time to find all issues that the CC3000 library might have with it in your special case, otherwise I strongly suggest to use the standard SPI library.
40  Using Arduino / Sensors / Re: Register problems at Arduino Yun reading 433Mhz sensor? on: September 10, 2014, 07:02:40 am
Please edit your posts and insert code tags. I won't look at that much code which may be changed by the forum system.
41  International / Deutsch / Re: IR Miniatur-Reflexlichttaster zusammen mit Arduino Mega 2560 on: September 10, 2014, 07:01:06 am
Also wenn das ein sauberes Projekt werden soll, dann nimm zwei der drei Sensoren und ordne die wie im Wikipedia-Artikel über Rotations-Encoder beschrieben an. Damit erkennst Du dann zuverlässig wie weit und in welche Richtung sich das Rad bewegt. Den dritten kannst Du noch als Null-Durchgang verwenden, also die Home-Position anzeigen lassen. Damit weisst Du dann aber schon wenn das Rad zu drehen beginnt, in welche Richtung es sich dreht und kannst die Aktivierung des dritten Sensors abwarten, damit Du weisst, wo Du bist. Mit etwas geschickter Programmierung kannst Du somit sagen, wo gestartet wurde, wo es aufgehört hat zu drehen und ob es manuell beeinflusst wurde.
42  International / Deutsch / Re: Mini-Netzwerkmodul für Datenaustasuch zw. Arduinos on: September 10, 2014, 03:58:55 am
Der Link zeigt bei mir NPN-Power-MOSFET an. Das wolltest Du wahrscheinlich nicht verlinken.
43  International / Deutsch / Re: DmxSimple.h klappt irgendwie nicht on: September 10, 2014, 03:56:35 am
Das Problem ist, dass die Libary zu alt ist.

Teste mal ältere Versionen der IDE
Vorzugsweise fängste mit 0023 an und arbeitest dich durch bis etwa 0013

Dass die Bibliothek zu alt ist, stimmt zwar, aber den Rat, ältere Versionen der IDE einzusetzen, kann ich nicht unterstützen.

In der Bibliothek muss in der Datei DmxSimple.cpp die Zeile

#include "wiring.h"


#include "Arduino.h"

ersetzt werden und schon kompiliert die Bibliothek ohne Probleme.
44  International / Deutsch / Re: SMS empfangen mit ITEAD GSM/GPRS Shield on: September 10, 2014, 03:46:43 am
PS: Ich verwende den Beispielsketch...

Welchen? Auf der von Dir verlinkten Seite sind zwei Bibliotheken aufgeführt und beide enthalten mehrere Beispiele. Poste den Code, mit welchem Du testest!
45  International / Deutsch / Re: Mini-Netzwerkmodul für Datenaustasuch zw. Arduinos on: September 10, 2014, 03:42:35 am
Gibt es für dieses Modul ein passendes "Hello World"-Sketch, auf das ich aufbauen kann?

Auf der von Dir verlinkten Seite sind unten Arduino-Bibliotheken aufgeführt, die Beispiele enthalten.

könnte man mit einem Mini-Netzwerkmodul, wie diesem hier
wenige Bytes zwischen zwei oder mehreren Arduinos austauschen?

Ja, kann man, dafür sind sie gedacht (natürlich nicht nur dafür, das Gegenüber kann ein beliebiges anderes IP-fähiges Gerät sein).

So ein Ethernetmodul erscheint mir dafür besonders gut geeignet, denn wenn ich das richtig sehe, hat man hier eine galvanische Trennung bei der lediglich GND mit 2nF kapazitiv gekoppelt ist.

Wo Du bei diesem Modul die galvanische Trennung gesehen hast, ist mir schleierhaft, aber ich bin auch nicht der Spezialist für Ethernet-Chips. Wenn die Trennung existiert, müsste sie im Chips sein, auf dem Modul kann ich keine entsprechende Trennung ausmachen.
Pages: 1 2 [3] 4 5 ... 350