Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [softwareserial]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
120 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
115 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
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
389 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 ...
1
vote
1answer
1k views

Wrong characters received with Bluetooth Mate Gold using Software Serial

I have a Bluetooth device from Sparkfun which I would like to use with the Arduino Mega. If I connect the module via the hardware serial pin everything works fine but when I use other pins like 12 and ...
0
votes
1answer
1k views

How to read info from an Xbee Pro S2B to an Arduino with a Xbee Pro S2B

I am using two XBee Pro S2B modules. One (Router) connected to the laptop via a UART cable. The other (Coordinator) connected to an Arduino Mega with the sketch below. All I need it to do is turn a ...
1
vote
1answer
9k 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
1answer
1k views

SoftwareSerial error

I have arduino , upon arduino I have Arduino GSM shield (Tx-2, Rx-3, Modem reset-7) and upon it, I have the Adafruit GPS Logger shield. I am trying to send sms of Latitude from the GPS Logger shield ...
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 ...
1
vote
0answers
193 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
2answers
374 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
184 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
154 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 ...
0
votes
5answers
11k views

How can I stop SoftwareSerial from receiving data and re-enable it at some other point?

My project involves and RFID reader connected to an Arduino Pro Mini (5V, 16MHz) and an Adafruit CC3000 breakout WiFi chip. The device reads RFID tags and sends them to my web service. I am using ...
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
0answers
650 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
37 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
votes
2answers
1k views

GSM GPRS module not getting any output from Rx , Tx

I am using a SIM800 GSM/GPRS module. I connected it using 4 wires: Vcc 3.7 volt (2 amp supply), RX and TX and GND. Whenever I try to send a command it shows me nothing. Here is my code. //Serial ...
0
votes
2answers
1k 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 ...
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 ...
0
votes
2answers
663 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
1answer
2k 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 ...
3
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
509 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 ...
1
vote
1answer
88 views

SoftSerial freezes on comparing getInt to int

I have a robot application on my Arduino which basically takes values from a SoftSerial instance on my 0/1 pins (connected to a Bluetooth board). From the 'driver station' I send speed values to the ...
1
vote
1answer
110 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
220 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?
0
votes
1answer
76 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?
1
vote
0answers
513 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
1answer
158 views

How to interrupt a code after delay

I have a functionality on my mega 2560 to connect with other devices. Sometimes, devices can't answer. I don't want to wait for a longwhile. So, how can I interrupt the chunk of program after the ...
1
vote
0answers
570 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
786 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
1answer
126 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
1answer
232 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
1answer
404 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 <...
0
votes
2answers
196 views

What is the relationship between the gain on the receiver and the delay time

I was conducting some research on wireless communication between a simple transmitter and receiver module using an Arduino. Now, I tested the channel accuracy and i received 14% error for a delay of ...
0
votes
2answers
581 views

SoftwareSerial Struggles

Just trying to understand and use the SoftwareSerial I want to connect a WiFi Module (ESP8266) If I send an AT command to the module I would like to print a response on my pc screen in the serial ...
0
votes
1answer
111 views

How to fix baud rate when hardware capacity has a low limit?

I have a transmitter(simple 433 MHz transmitter) connected via digital pins on the Arduino. The receiver is connected to another arduino. Now, I kept that pin on HIGH for 1 second, and it transmits ...
0
votes
2answers
8k views

Communicating Via Serial1 on Arduino Mega

Apologies if this a relatively simple question, but I am rather new to Arduino's and cannot seem to find any concise information on the topic. This is my XBee, mounted on a shield and placed onto a ...
1
vote
2answers
528 views

Arduino Uno Rx/Tx + Arduino Serial

I was wondering if I can use the Rx and Tx Hardware on the Arduino Uno and also add another Rx/Tx pins using SoftwareSerial at the same time ? cause I need two to communicate with two motor ...
0
votes
1answer
996 views

SoftwareSerial Write to return Read in Serial Monitor?

Hoping someone can help me out in my conundrum here... I currently am testing the SoftwareSerial library out to understand how I may use it in my project. I have a wire running from pin 6 to pin 9, ...
0
votes
1answer
678 views

Sending serial commands to yourself

Is it possible to "send" a serial command to the device itself to see the response? I have written a little routine based on a couple of serial sends and receives and want to see if that works out ...
6
votes
2answers
2k views

Using SoftwareSerial for the serial monitor

Most programs follow this route: They have a Serial.begin() for the serial connection between PC and Arduino (the serial monitor) and they use SoftwareSerial for a device. Can you go the other way ...
3
votes
2answers
341 views

How to avoid pulling the RX0 pin to reset sketch

My project requires reading 5 serial devices (RFID readers) at the same time. I chose an Arduino Mega 2560 as it comes with 4 serial RX ports. For the fifth port I am using the SoftwareSerial library. ...
2
votes
1answer
645 views

Attiny45 wake by Software Serial

I would like to wake Attiny45 from sleep by Serial communication. RX is connected to pin 7 (D2). When I try to use PCINT0_vect routine, I get an error "multiple definition of `__vector_2'" so it looks ...
1
vote
1answer
3k views

SoftwareSerial.h alternative with AVR (Two Serial/UART ports in atmega328p)

Arduino pins can be used as UART using the SoftwareSerial.h library. Is there any alternative for AVR? I need more than one serial port on a ATmega328P, but i don't use Arduino. SoftwareSerial.h is ...
1
vote
2answers
826 views

SoftwareSerial problems

Hi we are using an Arduino Micro and working with a Bluetooth device and a Rfid Scanner from Sparkfun(ID-20 LA). For that we implemented 2 SoftwareSerial objects and the Serial port for the Serial ...
2
votes
2answers
286 views

Why is SoftwareSerial causing arduino to reboot?

I'm trying to design an RC controller using an Arduino and an XBee Series 2 Pro. I have the hardware serial running for debug information and I want the XBee to be connected to a soft serial on pins 8 ...
0
votes
1answer
617 views

Anyone have the Maplin N97DG bluetooth shield working?

I went & impulse-bought a Maplin Bluetooth shield yesterday. It comes with a little tiny book containing examples, and uses the softwareserial library in these; I can load them, and get the ...
1
vote
0answers
962 views

Multiple SoftwareSerial ports - how to handle the limitations

I am building an access control project which uses two SoftwareSerial ports. One will be used for communication with an RFID reader and another one to receive serial messages via an Xbee (e.g. remote ...