Pages: [1]   Go Down
Author Topic: Confusing response with APC220  (Read 712 times)
0 Members and 1 Guest are viewing this topic.
Buena Vista, CO
Offline Offline
Full Member
***
Karma: 0
Posts: 190
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have an Arduino with a temperature module and an APC220 rf module attached. I have another APC220 connected to my PC through a USB/serial converter on Com 7. If I point the serial monitor to Com 7, I see the temperature displayed continuously. I have tried three terminal emulators (Putty, Indigo, and Realterm), pointed them to Com 7 and see no data. I know they are looking at Com 7 because if I point the Arduino IDE terminal to 7 then try to use the others I get the message "Com 7 in use". What I am trying to do is monitor the  signal to make sure it is still working, while programming another Arduino with an APC220 and a LCD, which I have so far not been able to  display the data on. What is different about the IDE's terminal? I am using 9600 baud, no parity everywhere.
Jim
Logged

8000ft above the average

Buena Vista, CO
Offline Offline
Full Member
***
Karma: 0
Posts: 190
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Having not received any responses, I found a way to work around this issue.
jim
Logged

8000ft above the average

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,
I have been all day looking for the answer !
This is how to solve the problem reading serial data with the APC220 from python :

import serial # pyserial 2.7

ser = serial.Serial()
ser.port = "COM5"
#ser.port = "/dev/ttyS2"
ser.baudrate = 9600
ser.bytesize = serial.EIGHTBITS #number of bits per bytes
ser.parity = serial.PARITY_NONE #set parity check: no parity
ser.stopbits = serial.STOPBITS_ONE #number of stop bits
ser.timeout = 0             #non-block read
ser.xonxoff = False     #disable software flow control
ser.rtscts = False     #disable hardware (RTS/CTS) flow control
ser.dsrdtr = False       #disable hardware (DSR/DTR) flow control

ser.setRTS(0)  #  <---- THIS SOLVED THE PROBLEM READING SERIAL DATA WITH APC220
...
Logged

Pages: [1]   Go Up
Jump to: