Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Arduino > Sipy

    Scheduled Pinned Locked Moved SiPy
    arduinosipysigfox
    5 Posts 3 Posters 2.3k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      jcleloup
      last edited by

      Nouvel utilisateur sigfox,j'ai tout d'abord fait mon activation et envoyé un premier message dierectement depuis me carte Pycom Sipy en Python avec Pymakr.
      Le message est bien reçu dans le backend sigfox.
      Pour aller plus loin j'ai connecté mon modem Sipy sur une carte Arduino UNO RX->TX,TX->RX et alimentation 5V.
      J'ai trouvé et chargé le programme suivant sous arduino :
      #include <SoftwareSerial.h> // To communicate with the embedded TD1208 Sigfox module.

      // Pin 0 is RX

      // PIN 1 is TX

      const int SigFox_TD1208_RX = 0;

      const int SigFox_TD1208_TX = 1;

      SoftwareSerial sigfox( SigFox_TD1208_RX , SigFox_TD1208_TX );

      void setup() { Serial.begin(9600);

      Serial.println("Starting Sigfox Serial");

      sigfox.begin(9600); delay(5000); // (*1) Serial.println("Sending to sigfox");

      // The frames are a maximum of 12 hexadecimal bytes.

      sigfox.write("AT$SF=656667,2,1\n"); // (*2)

      Serial.println("Data sent...");

      }

      void loop() {

      // put your main code here, to run repeatedly: while(sigfox.available() ) { Serial.write(sigfox.read() );

      }

      Le programme semble se dérouler correctement mais aucun message n'arrive sur le backend sigfox ... :(

      J'ai probablement loupé quelque chose mais quoi ?

      Si quelqu'un pouvait m'aider ce serait super pour que je puisse continuer concrètement.

      dans l'attente, merci d'avance à tous

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jmarcelino @jcleloup
        last edited by jmarcelino

        @jcleloup
        I can understand French but think we should post in English here.

        You're trying to use the SiPy as a TD1208 Sigfox modem but that's now how SiPy works.

        If you want to use the SiPy as a modem for your Arduino you have to write a Python script that runs on the SiPy and continuasly reads the data from the serial port (UART1) and forwards that to Sigfox.

        The "et alimentation 5V" is also worrying, the SiPy is a 3.3V device. You cannot connect the SiPy to a 5V Arduino over serial without doing logic level conversion 5V<->3.3V. Hope you haven't damaged those pins already.

        1 Reply Last reply Reply Quote 0
        • R Offline
          rskoniec
          last edited by

          @jcleloup Like @jmarcelino said it's really important that you have to use Logic Level Converter for the SiPy <--> Arduino communication.

          The machine is working as good as it's code.

          1 Reply Last reply Reply Quote 0
          • J Offline
            jcleloup
            last edited by

            Thank you for your prompt response.
            If I understand correctly it is not possible to write a program in the arduino and communicate via the modem Sipy?
            It would be necessary to write a script in Python in the Sipy which will read the inputs / outputs of the arduino.
            Is it this ?

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              jmarcelino @jcleloup
              last edited by

              @jcleloup
              Yes, correct.

              The SiPy is not just a modem, it's also microcontroller and many times more powerful than the Arduino

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post

              Pycom on Twitter

              Pycom