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

learn more… | top users | synonyms

1
vote
1answer
51 views

(SOLVED) 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 ...
0
votes
2answers
29 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
36 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 ...
3
votes
3answers
29 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
19 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 ...
0
votes
2answers
46 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 ...
0
votes
0answers
51 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 with out ftdi. I have made the following connection: I an using a 5V ...
0
votes
0answers
27 views

Arduino Uno and Voice Recognition Module V3

I'm working on a project that uses the voice recognition module V3 and an Arduino Uno to output a 5V signal that will run a solid state relay. I trained the V3 using AccessPort successfully with the ...
0
votes
1answer
110 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
35 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 ...
0
votes
1answer
31 views

Softserial - max speed - loosing characters

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
21 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
49 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
51 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 ...
0
votes
0answers
18 views

Arduino Pro Mini with multiple SoftwareSerial objects

I've a "little" problem with a couple of devices on a Arduino Pro Mini. I use these devices (Sim800L GSM and Adafruit GPS shields) throught 2 SoftwareSerial objects; individually they works fine, ...
1
vote
0answers
80 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
20 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
0answers
37 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
81 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
0answers
28 views

expected unqualified-id before 'if' [duplicate]

Can anybody please help me solve this error !! ERROR:- C:\Program Files (x86)\Arduino\libraries\SoftwareSerial\SoftwareSerial.cpp:1: error: expected unqualified-id before 'if' #include ...
0
votes
2answers
51 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
103 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 ...
6
votes
1answer
177 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
36 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
75 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
291 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 ...
0
votes
1answer
63 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
31 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
57 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?
0
votes
0answers
105 views

Software Serial library not working in Arduino

In an Arduino project I am not able to compile some code that uses the SoftwareSerial library. I get the following compilation errors. How do I correct the code? C:\Program Files ...
1
vote
0answers
58 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
1answer
78 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
1answer
70 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
33 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
54 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
25 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
64 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 ...
2
votes
4answers
2k 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
32 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 ...
0
votes
0answers
112 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
1answer
41 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
81 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
101 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 ...
0
votes
0answers
52 views

Dissolved Oxygen Meter how to connect with Arduino Uno

I am the one who was given the task to code the program of our Project which is connecting the Dissolved Oxygen Meter with the Arduino Uno. I am new with programming and it is a little harder for me ...
1
vote
3answers
165 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
29 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
97 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
1k 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 ...
0
votes
4answers
745 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
136 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 ...