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
1
vote
0answers
194 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
155 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
380 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
0answers
656 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
vote
1answer
253 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
0answers
1k 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 ...
1
vote
0answers
515 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
0answers
520 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
574 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 ...
1
vote
0answers
92 views

SRF-02 UART, transmitting from one address to another

So I just starting playing around with UART and SoftwareSerial while playing with these SRF-02 Sensors - http://www.robot-electronics.co.uk/htm/srf02techSer.htm I need help getting one to read to the ...
1
vote
0answers
691 views

Chat between Xbee and Arduino

I'm very new with this devices so I'm a bit confused. I've got two Xbee modules series 1 and an Arduino UNO. I want to make like a chat between the two Xbee modules, one of them connected to the PC ...
1
vote
2answers
728 views

How will Arduino communicate wirelessly through XBee?

I am using one XBee S2 configured as coordinator API attached to my laptop and one XBee S2 attached to an Arduino Uno that is configured as a router AT. I want to generate an alarm on LabVIEW as I ...
1
vote
0answers
1k views

Arduino code issue (using Bluetooth and Rfid technology)

I am building a device that communicates with my Android phone. I know that my App works but my Arduino code seems to have a problem. So I have made a smaller programm and everything works fine there. ...
1
vote
0answers
171 views

Using Parallax VPN1513 GPS Smart Module with External Antenna and Ruggeduino

I am using a Ruggeduino for a project involving an autonomous vehicle, and I need GPS capability in it. I am using the "VPN1513 GPS Smart Module with External Antenna" from Parallax (https://www....
1
vote
0answers
852 views

HC-05 and HC-06 Bluetooth not communicating well

I am trying to communicate between two Arduino UNO. One has a HC-05 which is configured as master, the other Arduino has HC-06 which is the slave. What I want to achieve is to be able to print a ...
1
vote
0answers
968 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 ...
1
vote
0answers
285 views

How to do Serial monitor with Arduino Yun?

I'm trying to read some values from a TCS3200 colorsensor using Arduino Yun. I have some code, which you can see below, that I used when I tested on the Uno. With the Uno everything worked fine and I ...
1
vote
0answers
528 views

Arduino GSM Shield web server hangs

I use official Arduino GSM Shield with Uno R3. I uploaded web server examples from official GSM library. I use a simple python script to make TCP/IP connections to my GSM Shield web server. I send ...
1
vote
0answers
580 views

How to serial read from a TM-88 printer for status

I am working off of my own fork of the TM-88 printer library by signalwerk It can be found here ( https://github.com/docwisdom/thermalprinter ) With this I am trying to get a printer status before I ...
1
vote
0answers
175 views

Arduino Software Serial reading a value of zero after several reads? [closed]

I am using the ID12-LA RFID reader with an Arduino Pro Mini (5V, 16MHz). I am also using the software serial library to read the serial data form the reader. Initially the serial data is being read ...
1
vote
1answer
2k 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
5answers
12k 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 ...
0
votes
1answer
2k views

How to pass 'Serial' as an input argument in Arduino function?

I have one integer value which I should pass through Serial1, Serial2, Serial3, and Serial4 after performing some algebraic operation on this integer. For this algebraic operation, I made a function ...
0
votes
2answers
4k views

I'm looking for a way to serially communicate with a multi mesh Arduino slave network

I have one PC running Visual Studio and a program that will be sending commands to Arduinos via serial COM Ports. So, in 11 Nano MCUs, I will have motor drivers L293D/L298N ICs, while in other Nanos I ...
0
votes
2answers
497 views

ESP8266 ASCII to HEX convertion and checking

I am trying to convert ASCII to hex and check if the hex is equal to that hex that I want. For example: 1B 42 05 it means B in ASCII, I need to check if that hex is equal to 1B 42 05. Here I need ...
0
votes
2answers
50 views

Serial.availableForWrite versus Serial.flush

Is there a difference between the following two line codes? while (Serial.availableForWrite <= 0) {} versus Serial.flush() Thanks!
0
votes
2answers
461 views

Can increasing the size of the software RX buffer cause problem in Arduino Uno

If I were to increase the of the buffer array from 64 to say 512 will this bring any long term problem in the Arduino Uno. Changing from this: #ifndef _SS_MAX_RX_BUFF #define _SS_MAX_RX_BUFF 64 // ...
0
votes
2answers
60 views

SoftwareSerial receives beginning of data mangled

I'm using SoftwareSerial to communicate with a Sigfox module. Documentation for the read function assigns its value to a char. However using it I get mangled characters and also have read in other ...
0
votes
1answer
37 views

Getting issues while using SoftwareSerial

I am trying to read string send from esp8266 esp01 to Arduino mega. When I use normal Rx and Tx ports, it works properly but when i am initializing new serial port using SoftwareSerial then nothing is ...
0
votes
1answer
561 views

Passing HardwareSerial and SoftwareSerial as a Class Property

I wish to know if there is a way to use a single property Serial0 to hold a HardwareSerial or a SoftwareSerial or other class instances supporting basic methods such as available(), read() and write(),...
0
votes
1answer
37 views

Entire arrays are not read by Processing sent by Arduino unless cord is unplugged and plugged back in?

I am using an Arduino to read sensors and then send the data to the serial port for Processing to read. It works totally fine when I first download the code and run the Processing program. But if I ...
0
votes
2answers
153 views

Use ATtiny85 to perform initial config on a Cisco router using its USB console port

We have 200+ brand new Cisco routers that have USB console ports (but not the old RJ45 serial console ports). This is quite frustrating because the routers didn't ship with console cables and Cisco ...
0
votes
2answers
4k views

Receive data from Arduino board to Android application

I'm trying to receive data and print it on a label of my application, but I can not get it. Actually, I have 0 experience with Arduino. It's the first time I see this. I read this tutorial to receive ...
0
votes
3answers
138 views

Why Commenting Serial.print() gives me a different value?

I am working on with Cypress and Arduino.I am trying to transfer the data from cypress and printing it to the Serial Monitor or Arduino. but the thing is when I am using Serial.print(j) it is showing ...
0
votes
2answers
10k views

Arduino to read from RS232 converter to TTL serial module (updated)

Here's the system I want to work on: The weight controller device detects weight which can transfer data via RS232 serial connection I used RS232 converter to TTL serial module to connect the weight ...
0
votes
1answer
1k 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
53 views

no matching function to call for SoftwareSerial::SoftwareSerial(int&,int&)? How to rectify this problem

#include <LiquidCrystal.h> #include <SoftwareSerial.h> float pulse = 0; float temp = 0; SoftwareSerial ser(9,10); String apiKey = "U5AGYVQT5JRJPSDR"; // Variables int pulsePin = A0;...
0
votes
2answers
31 views

How do software interfaces compare to hardware interfaces in therms of speed and reliability?

The Arduino core includes numerous software interfaces mimicking the hardware interfaces provided by the chip and even extending beyond. My question is, if in a project I can either use software or ...
0
votes
2answers
400 views

Using the YS-IRTM with an Arduino Uno

Picked up a YS-IRTM IR Transmitter/Receiver module to do some testing for a project. There's not a lot of details on it but eventually came across two very important sources: Translated Module ...
0
votes
1answer
147 views

ESP8266 SoftwareSerial not receiving any character

I want to use a ESP8266 (ESP12) to receive data from a counter at 9600 baud via SotwareSerial. But my program does not receive any data. I broke it down to the code i attach here. I tried it using ...
0
votes
2answers
395 views

Software serial conflict with WiFi on ESP8266

I'm trying to use an ESP8266 (Wemos D1 mini) to read from a 19.2K serial port and report the results over WiFi. Programming is via Arduino IDE. The code to read the port works just fine if WiFi is not ...
0
votes
1answer
182 views

Unable to receive data when using multiple SoftSerial on Arduino Nano

I am trying to use several (four) software-based serial ports to talk to different peripheral hardware. However, I am unable to receive data through the SoftSerial when using more than one software ...
0
votes
1answer
2k views

Can not initialize ESP module in Arduino SoftwareSerial

Can not initialize ESP module in Arduino SoftwareSerial's example sketch in configuring WiFi module. In the sketch it tells: #include "WiFiEsp.h" // Emulate Serial1 on pins 6/7 if not present #...
0
votes
1answer
413 views

Is there a way to define an alias for a hardware Serial

I'm porting some code from Arduino Uno over to a Mega and I want to replace a SoftwareSerial defined in the previous code with one of the built-in UARTs. Rather than go through and replace all ...
0
votes
2answers
412 views

No Information obtained when using 2 x SoftwareSerial ports on Arduino Nano

I have a LoRa Click Module and Adafruit Ultimate GPS which both use Serial Communication. I wish to just check the initial tests with all the components in on the Serial Console. Hence I have ...
0
votes
1answer
40 views

Referencing Serial output

I'm confused with what I'm reading. I have Serial communicating with my PC (USB) and SoftwareSerial over RS485 to a remote PC. I don't want to duplicate all of my print statements to be able to send ...
0
votes
1answer
427 views

Serial monitor showing extra data

I am trying to communicate NODEMCU and Arduino Uno using Serial Communication (RX,TX) using SoftwareSerial library. Here is my code int count; char reqst[] = " "; void setup() { Serial.begin(...
0
votes
1answer
3k views

Reading from software serial with an interrupt

I want to perform a serial read using software serial with Arduino. I am looping for my normal tasks, but whenever something is received on the software serial pins I want to perform a read operation ...