Pages: [1]   Go Down
Author Topic: apc 220 and hyper terminal  (Read 2044 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 37
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, I have a mega outputting a serial stream to an APC 220. I have another APC 220 with the USB interface in my PC. Only partial pieces of the Data are printed out to hyper terminal and only when i rapidly press the "connect" and disconnect" in hyper terminal.

the original data look like this

mode: day
temp: 42
humidity: 35
ambient light: 65
night seconds: 0
day seconds: 4
fan status: ON
light status:  OFF
water status:  OFF

the data in hyper terminal looks like this after it goes through the APC


 staô____ß  OFö___
F
waü38
hght s ight midit_____ umidi 2
hu:  OF


I have tried the normal stuff like trying error checking changing the baud ect. Has anyone run into this?



 
Logged

Portugal
Offline Offline
God Member
*****
Karma: 6
Posts: 962
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Seems like wrong baud-rate.
Logged

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

Thanks for the reply, I have tried several baud rates But only when all 4 devices are 9600 do i get partial data through.
PC = 9600 N 8 1
apc 220 #1  = 9600 N 
apc 220 #2  = 9600 N 
arduino = 9600 N

when the PC is directly connected to arduino via USB at 9600 N 8 1 the system is fine.
Logged

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

OK, tried with the arduino serial moniter window and it works, must be something in hyper terminal it does not like.
Logged

Portugal
Offline Offline
God Member
*****
Karma: 6
Posts: 962
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So, maybe you have the wrong number of stop bits configured in Hyper Terminal, change it to 1 and disable all flow control, and also disable parity.
Logged

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

I have tried 1 stop bits already but i will try 2  and 1.5, I did not suspect a stop bits problem because if i directly connect usb to arduino and using the same 9600 n 8 1 it works fine. also sometimes chunks of correct data make it through.
Logged

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

I have a similar problem; rf communication wih the arduino serial monitor works, but hyper terminal, putty, tterm etc is not working.

Have you find a solution?

Kind regards,

Michel Ruijter
Logged

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

Find the solution in another post; on the pc side wire the radio to the USB unit using only the power and tx and rx lines.!!
Logged

Narvik, Norway
Offline Offline
Edison Member
*
Karma: 23
Posts: 1020
electronics engineer, teacher.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Set handshake to 'none'
Logged

Ny

Pages: [1]   Go Up
Jump to: