Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [softwareserial]

A library for emulating UART functionality in software on any available digital IO pins. Use this tag for questions regarding SoftwareSerial.

0
votes
0answers
3k views

Nextion display message text garbled

I am communicating with my Nextion display using this arduino library. I am following this tutorial which says that the text in the serial monitor should look like 65 0 2 0 ffff ffff ffff. For me, it ...
1
vote
1answer
114 views

No response from device when trying to communicate with it via RS-232

I have an Arduino Uno with an RS-232 shield, and a servo drive that communicates via CAN or RS-232. I'm trying to communicate with this drive using an RS-232 cable, but I'm getting no response. I'm ...
1
vote
2answers
3k views

DB:NO RESP Using inet.httpPOST on loop()

I'm using SIM900 module + arduino uno + gsmlib.org library. I'd like to send a string to endpoint on my API , and it worked correctly for the first time when I using inet.httpPOST function in setup(),...
0
votes
2answers
109 views

Altering SoftwareSerial to transmit more than 1 byte at a time

I am trying to create a stable communication channel without any mis-synchronization. In the SoftwareSerial library, the write function transmits one byte at a time. The mis-synchronization occurs ...
1
vote
0answers
106 views

Encoding clock signal into linear block codes

In the VirtualWire library, it is possible to encode the clock signal as the library is doing with 4b/6b coding. This is possible because VirtualWire uses convolutinal coding, where the information is ...
4
votes
3answers
3k views

How to define a SoftwareSerial object inside a class?

I have a header file called Rhino.h with class Rhino. I want to pass RX and TX pin numbers to this object class, and with this, define a SoftwareSerial object to be used inside the Rhino class. The ...
0
votes
1answer
352 views

VirtualWire send function

I am a little confused on how exactly VirtualWire's "send" function works. After looking at the code, the process I gathered is the following. In the Arduino IDE, call vw_send() with the right ...
2
votes
2answers
347 views

ISR executes twice if data coming through SoftwareSerial

I am using Arduino Pro Mini to get GPS info from a u-blox NEO-M8N chip and display it on a Adafruit OLED display. NEO-M8N has a PPS(pulse per second) output which is aligned to GPS's second. Because ...
1
vote
1answer
3k views

Arduino Nano ESP8266 software serial problems

I have a problem with my Arduino Nano ATmega328 and my ESP8266 01 module. I have connected the ESP8266 on my Arduino board without FTDI. I have made the following connection: I an using a 5V ...
1
vote
1answer
8k views

Send JSON via POST on SIM900 shield with AT commands

I'm trying to send a JSON POST in SIM900 shield with AT commands. After I call the AT+HTTPACTION=1 command, it returns a 601 error: +HTTPACTION:1,601,0. I saw here that the error was 601 Network ...
1
vote
0answers
149 views

Trying to pass a single char to a serial device

Good day, I have a serial device that when connected via hyper terminal gives me a status report when I press the letter 'd' no enter key or anything required just the letter d. Also Ctrl-t will give ...
1
vote
3answers
1k views

Softserial - max speed - loosing characters [closed]

I have a Ublox-NEO6M gps module that I am trying to read using SoftwareSerial. The GPS sends a few NMEA sentences at 9600 baud each 5th second - totally a couple of hundred characters. My 3.3V atmega ...
1
vote
0answers
144 views

Why After instancing TinyGPS , serial stop working?

I have GSM shield (and Arduino UNO) works fine with this code : #include <GPRS_Shield_Arduino.h> #include <SoftwareSerial.h> #include <Wire.h> #include <Suli.h> #define ...
1
vote
2answers
279 views

Issues with AltSoftSerial

I have my arduino connected to my PC and another serial device. This serial device sends a 3 line piece of info on bootup then if I trip a zone it will send information regarding the radio ...
1
vote
2answers
159 views

Trying to pass a char to software serial with a button press

Good day everyone, I'm returning to the Arduino world after my a 3 year hiatus following the birth of my son. I'm trying to push a button connected to pin 2 and have that send a 'd' to SoftwareSerial ...
1
vote
0answers
615 views

Is replacing USB serial WITH ESP8266+ESP link feasible?

ESP8266 (01-512k,) Arduino Uno (clone), Arduino IDE, Python 2.7.6 on Macbook pro running OSX 10.10.4 64-bit. Hello! I'm using a motion sensor with the following setup: Arduino Uno+motion sensor >>>...
1
vote
0answers
32 views

Get the last piece of data received on a serial port

I'm using software serial to use multiple ports as serial in an arduino UNO and each of those is constantly receiving data. I want to know a way to get just the "newest" data each time I listen to one ...
1
vote
1answer
222 views

Cannot receive data from GPS SD Shield V2-B

I am attempting to receive GPS data from a GPS SD Shield V2-B purchased from maplin. I have attempted the very simple sketch they provide on their website linksprite.com. I have also tried following a ...
1
vote
2answers
1k views

Override #define statements in libraries

I'm using a library that, by default, wants to use Serial2 as the interface to a display, however, I'm working with an UNO which only has one serial interface, so the compile fails. I'm trying to use ...
0
votes
2answers
943 views

SoftwareSerial library

How do I rectify this error? Clearly it says there is some error in the library, so how do I correct it? C:\Program Files (x86)\Arduino\libraries\SoftwareSerial\SoftwareSerial.cpp:1: error: expected ...
1
vote
0answers
867 views

Why the serial connection only work when Tx and Rx are shorted?

I have a Arduino Pro Mini 3.3V connected to a sim800l chip using a serial connection of 9600bps. When I connect the Arduino to the device, it seems I don't receive anything on the Arduino Rx pin. I ...
13
votes
1answer
5k views

How does serial communications work on the Arduino?

With reference to the Arduino Uno, Mega2560, Leonardo and similar boards: How does serial communications work? How fast is serial? How do I connect between a sender and receiver? Please note: This ...
0
votes
2answers
578 views

Connection bluetooth master and slave with Android

I send a date from my android to arduino without problem, but also i want send date from arduino to android later of received the date from android. I have time trying it, but i can not yet, help me. ...
0
votes
0answers
299 views

Getting random values in ESP8266

I followed http://www.martyncurrey.com/arduino-to-esp8266-serial-commincation/#more-1475 tutorial, I tried all possible solutions found, connecting all pins to vcc, few to ground etc, Whatever ...
0
votes
1answer
2k views

Use ESP8266 as WiFi client connected to Arduino Pro Mini

So i'm trying to use the PubSubClient Library on my arduino mini pro, but I'm connecting to the internet via wifi using an ESP8266. Using a mini means I have to use software serial to connect to the ...
2
votes
2answers
533 views

Link Arduino Uno to Particle Photon

I'm working on a prototype with a Particle Photon, but I've realized the required number of pins is bigger than the number of pins on my photon. I thought I could have an Arduino Uno wired to some ...
0
votes
1answer
651 views

bluetooth module with stk500_recv() error

I am trying to dow what is demonstrated in this tutorial. I have altered the original setup a little by adding a level converter to not fry the Bluetooth module and resistors for the LEDs, as well as ...
4
votes
1answer
1k views

HardwareSerial - check for overflow

The SoftwareSerial library has a built-in Overflow function, but the Serial library does not. Is there a simple way to check for a data buffer overflow on a hardware serial port?
1
vote
0answers
422 views

Teensy 2.0++ SDA SCL pins not accesible using ARDUINO software

Hi I was looking to interface Teensy++ 2.0 with MPU6050 for a simple IMU project. I have done this previously using Teensy 3.1 by trying the project of kriswiner however I also wanted to try it out on ...
0
votes
2answers
773 views

How do I get the Itead 3G shield to work?

I've tried a pretty standard code but the Serial Monitor yields zero response. Using a standard Arduino Uno (tried a second one as well, just to be sure) and am now trying the second shield with this ...
0
votes
2answers
400 views

Arduino due - Getting 0xFF (garbage) from serial

I am developing application with serial communication with arduino due. Like this: while(1) { if(Serial2.available() > 0){ byte l_byData = Serial2.read (); Serial.println(l_byData,HEX); } ...
0
votes
1answer
159 views

ATTINYx5 usi for uart?

Can the ATTINYx5 use its universal serial interface for a better UART than the Sofware Serial library alone? If so, is there a library or tutorial for this?
1
vote
1answer
101 views

Extra characters remain in Serial

I have spent the whole day trying to deal with this problem connecting Arduinos together using UART (Serial). But the problem is that it always behaves weirdly. For now the problem is that if previous ...
0
votes
1answer
68 views

Are INTx pins the only ones eligible for Software Serial?

As opposed to PCINT (Atmel's Pin Change INTerrupt, INTx is arduino-compatible interupt) In other words, does Software Serial use atmel's pin change or arduino falling interrupt?
0
votes
2answers
740 views

Read serial data from XV11 sensor

I am trying to read data from an XV-11 sensor using the description of the format found here https://xv11hacking.wikispaces.com/LIDAR+Sensor. This is the code I am currently using to communicate with ...
6
votes
6answers
83k views

Send AT commands to ESP8266 from Arduino Uno via a SoftwareSerial port

GOAL From Arduino UNO, send AT commands to ESP8266 via a SoftwareSerial port and receive results. CURRENT STATUS I either send AT commands and get nothing back (wiring scheme 1) or I send AT ...
1
vote
0answers
400 views

How to read all avaiable data from a Serial stream and then stop

I am trying to read data from the Serial port in my Arduino, store it in a buffer and when all the data has been read stop reading and then start using the data (the talkMIDI() function). The Arduino ...
1
vote
0answers
505 views

ATtiny85 + HC-05 + Oled = smart watch

I am using an ATtiny85 for making a smart watch. Bluetooth module HC-05 with ATtiny85 pins PB3->TX, PB4->RX and it works. Secondly I have connected a 0.96" OLED on PB0 (SDA) and PB2 (SCL) and this is ...
0
votes
2answers
236 views

Need Basic Help with Software Serial

I am testing the basic Software Serial example on the arduino website, but I cant get the myserial to print #include <SoftwareSerial.h> SoftwareSerial mySerial(10, 11); // RX, TX void setup() ...
0
votes
1answer
1k views

How can I see the mySerial.print( ) through the serialmonitor on IDE?

I made an object named "mySerial" like this. SoftwareSerial mySerial(2,3) //pin 2 = RX, pin 3 = TX also I made pin 13 periodically(0.5 seconds) blink(HIGH/LOW), then the signal from pin 13 goes ...
0
votes
1answer
703 views

How to transmit more than 1 byte continually?

In software serial, the write function only sends 1 byte at a time. Is there someway, some library, that i can send multiple bits/bytes, without stopping (and not using digitalWrite)? i want to be ...
1
vote
3answers
1k views

Synchronization and Implementing hamming code on Software Serial

I want to learn and use Hamming Code. Would it be wise to alter the Software serial library to do this or just change the data being transmitted in the actual Arduino sketch? Also, for means of ...
0
votes
1answer
118 views

Read function in Software Serial

I have a question regarding how the read function works in Software Serial. recv reads the bits a receiver picks up into a serial buffer. than read returns a uint8_t. However, when i set read() equal ...
0
votes
2answers
505 views

Arduino Uno + Adafruit Ultimate GPS Shield Serial issue

I've had an Arduino Uno for a couple of months-making basic sketches-and recently purchased an Adafruit ultimate GPS shield and attached with soldered headers. This shield has 2 options for reading ...
5
votes
3answers
4k views

esp8266 garbage out only when using SoftwareSerial

I'm trying to operate the esp8266. When I connect RX+TX pins to pins 1+2 on the Arduino, everything works fine. but when I'm trying to use software serial all hell breaks loose and the recieved data ...
1
vote
5answers
7k views

SoftwareSerial with ESP8266

I am communicating with ESP8266 using SoftwareSerial of Arduino UNO. I can successfully send AT commands and get response when communicating through the terminal. But if i programmatically send ...
0
votes
1answer
224 views

Unable to tell if error is from receiving or transmitting end

so I am having trouble sending data using software serial's write function. TX Code: #include <SoftwareSerial.h> SoftwareSerial TX(2,3); void setup() { // put your setup code here, to ...
0
votes
2answers
600 views

Change UART pin

I am developing GPRS HTTP send request code using a GSM/GPRS module. I found the following code via google: /************************************************************************* * SIM800 GPRS/...
-1
votes
2answers
2k views

GSM Modem Connection Directly to Rx and Tx

I am using Arduino Uno and using SIM800 GSM GPRS modem. I am connecting Arduino directly with SIM800 GSM/GPRS modem. I already read manually about GSM like how much power supply it needs and what ...
0
votes
1answer
391 views

cannot read from softwareserial

I am able to use AT command from the Serial monitor however when I run the following code nothing is sent or received from the ESP8266. Can someone advise what could be the problem. #include <...