Networking of data via Acoustic Modem(NanoModem)
good morning,
i hoping or advice on topic. trying connect arduino uno microcontroller acoustic modem , use communicate ardunio/modem connection.
i have connected arduino usb , used softserial create rs232 interface acoustic modem. because modem , arduino both have rs232 female heads, have used null modem cable make connection.
my first test setup needs arduinoĆ nanomodem0 nanomodem1 pc (terminal). going test using a unicast command e.g. $u0015hello (send address 001, 5 bytes, "hello") , should see %u5hello appear on terminal. if works can replace "hello" sensor data of length 7 bytes.
the nanomodem has inbuilt commands query status $?.
how write code this?
#include <softwareserial.h>
softwareserial port1(8, 7);
#define baud 9600
void setup() {
serial.begin(9600);
while (!serial) {
;
}
port1.begin(9600); }
void loop(){
string input;
//if input detected in arduino
if(serial.available() > 0){
//read whole string until '\n' delimiter read
input = serial.readstringuntil('\n');
if (input.equals("$u0015input")){
}
else if {
serial.println("error");
}
}
}
the nanomodem has details have attached.
i appreciate can this.
i hoping or advice on topic. trying connect arduino uno microcontroller acoustic modem , use communicate ardunio/modem connection.
i have connected arduino usb , used softserial create rs232 interface acoustic modem. because modem , arduino both have rs232 female heads, have used null modem cable make connection.
my first test setup needs arduinoĆ nanomodem0 nanomodem1 pc (terminal). going test using a unicast command e.g. $u0015hello (send address 001, 5 bytes, "hello") , should see %u5hello appear on terminal. if works can replace "hello" sensor data of length 7 bytes.
the nanomodem has inbuilt commands query status $?.
how write code this?
#include <softwareserial.h>
softwareserial port1(8, 7);
#define baud 9600
void setup() {
serial.begin(9600);
while (!serial) {
;
}
port1.begin(9600); }
void loop(){
string input;
//if input detected in arduino
if(serial.available() > 0){
//read whole string until '\n' delimiter read
input = serial.readstringuntil('\n');
if (input.equals("$u0015input")){
}
else if {
serial.println("error");
}
}
}
the nanomodem has details have attached.
i appreciate can this.
quote
because modem , arduino both have rs232 female heads, have used null modem cable make connection.according attached documentation nanomodem uses rs232 level, must not connect directly arduino, may damage of devices. max232 or similar chip may level translation.
what want communication used for? if use softwareserial arduino not except communication because of horrible design of library.
Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > Networking of data via Acoustic Modem(NanoModem)
arduino
Comments
Post a Comment