HAC-UM96

Hi there,

Both of the UM96’s have sent back the correct serial string to a PC.

Com2 port on both UM96 seem to be working correctly.

As already stated I have got the 2 UM96 to communicate withe each other

from one PC to another PC running hyperterminal at 9600,8,N,1.

The problem I am having is with Com1, allthought they are communicating with each other, what I am sending out, I am not receiving on the other end.

When I used a wire link between the two PICs from uart to uart, the comms were perfect. Therfore I knew what I was sending was correct.

When I replaced the wire with the wireless modules UM96, I did not get the correct result.

Can you confirm the correct jumper settings for 9600, and pin wiring to run at 9600,8,N,1.

If I get time I will connect a level shifter from the PIC and connect it to com2 on the UM96 and the same on the other PIC, I would imagine this should work but I should not have to do this.

Is there some headers and /or terminators sent as standard with COM1.

Is there a chance that the TTL terminals are only 3.3volt tolerant as I am using 5 volt PIC. I may use a series resistor and see what happens.

It would be great to get to the bottom of this.

Samncw

just a quick note im running all 4 of my um96s at 5v

attached to an atmel

hope this helps

i know this is stating the obvious but have you

crossed the cable IE um96tx to pic-rx

Hi there,

I have checked the connections and I have

PIn 3 (RxD) of the UM96 going to Pin 25(Tx) of PIC

PIn 4 (TxD) of the UM96 going to Pin 26(rx) of PIC

Pin 5 of the UM96 to GND

What are the connections you have used.

I also have Jumpers D & E shorted.

Any help would be greatly appreciated.

Samncw

The connections are as per mine

assume you have

pin 1 to ground

pin 2 to vcc

only other thing is do you have grounds connected together

IE: ground on um96 tied to ground on PIC?

regards

I have the PIC and UM96 ground tied together and the signal ground

Pin 5 of UM96 tied to these.

Samncw

hmm you have a tough one alright

if you have a scope check the lines with that if not

only other thing i can think of to try is pull the

max232 chip if socketed i read somewhere that

it may hold the lines up as it is tied directly to

the pic rx and tx lines i pulled mine as its not reqd

in straight ttl level interface??

regards

Hello again

I have received my crystal oscillator 11.0592MHz few days ago. I have tested 11.0592MHz on my receiver and transmitter circuit. To my horror, I get the same result as my receiver keep flashing red on and off which indicates it doesn’t not recognise character (0x35=5) after pressing the right button!

What can I say…I am deeply disappointed with it and I have spent few hours and still I could not find the problem.

Im soooo annoyed with UM96 at the moment.

Waveman :evil:

I can see that samncw has a similar problem as we could not receive right character regardless of which microcontroller chip we currently employ.

Like samncw said, help would be greatly appreicated

Kind regards

Waveman (Im still soooo annoyed with UM96!!)

fletch:
just a quick note im running all 4 of my um96s at 5v

attached to an atmel

hope this helps

I can see that you don’t experience any problem with UM96 and ATMEL chip. Would you kindly share your codes and schematic with us?

Waveman

ok things to try

connect 1 hac as receiver to your pc as you know this works on rs232 levels

write a transmit module like mine but for pic connect to ttl on pic

heres a sample of my code to coninuously transmit and test that

to see if works

I reitterate you may have to remove your rs232 level converter chip

from your pic if you have one as this sits on the pic ttl levels and

may interfere

/*****************************************************

Project : Test transmit to hac96 at 9600bds

Version :

Date : 10/24/2005

Comments:

Chip type : AT90S2313

Clock frequency : 4.000000 MHz

Memory model : Tiny

External SRAM size : 0

Data Stack size : 32

*****************************************************/

#include <90s2313.h>

#include <delay.h>

// Standard Input/Output functions

#include <stdio.h>

//This char string istransmitted continuously

// Declare your global variables here

char s[40]=“ryryryryryryryryryry\r”;

void main(void)

{

// Declare your local variables here

// Input/Output Ports initialization

// Port B initialization

PORTB=0x00;

DDRB=0x00;

// Port D initialization

PORTD=0x00;

DDRD=0x00;

// Timer/Counter 0 initialization

// Clock source: System Clock

// Clock value: Timer 0 Stopped

TCCR0=0x00;

TCNT0=0x00;

// Timer/Counter 1 initialization

TCCR1A=0x00;

TCCR1B=0x00;

TCNT1H=0x00;

TCNT1L=0x00;

OCR1H=0x00;

OCR1L=0x00;

// External Interrupt(s) initialization

// INT0: Off

// INT1: Off

GIMSK=0x00;

MCUCR=0x00;

// Timer(s)/Counter(s) Interrupt(s) initialization

TIMSK=0x00;

// UART initialization

// Communication Parameters: 8 Data, 1 Stop, No Parity

// UART Receiver: Off

// UART Transmitter: On

// UART Baud rate: 9600

UCR=0x08;

UBRR=0x33;

// Analog Comparator initialization

ACSR=0x80;

while (1)

{

puts(s); //continuously sends ry’s

delay_ms(100);

}

}

Thank you for sharing your codes with us.

I followed your instruction and it works. My transmitter circuit transmit simple character such as ‘m’ to the um96 connecting to my PC via com 2. I am very pleased with it however I had to use 0x35 (Ascii) instead of ‘m’ which is completely different from fetch’s codes.

Tomorrow, i will connect my another microcontroller to the um96 in order to receive the simple character. When it recieves right character, it should emit blue LED otherwise red LED.

I will come back to update my progress

Waveman

Hi there,

I can not get com 1 working under any circumstance, either transmitting or receiving correctly.

Did you get Com1 transmitting correctly Waveman.

Samncw

samncw:
Hi there,

I can not get com 1 working under any circumstance, either transmitting or receiving correctly.

Did you get Com1 transmitting correctly Waveman.

Samncw

So far my transmitter could transmit a simple character to my receiver which plugged to my PC via com2 and I could character popping my screen. I will give a try on com 1 when I have enough time (Hopefully today!) and I will come back asap

Waveman

Hi everyone

I have a very good news!

I have finally done it! The communication between transmitter and receiver are working properly. The receiver is capable of receiving data via com 1 and com 2. I am absotuley over the moooooooooooooon!

The diagnosis is that I only need to buy battery with more juice as the receiver circuit need more power. Furthermore I use 11.0952MHz crystal oscillator in lieu of 12MHZ due to low error.

I am going to start different project now…

Waveman :smiley: :smiley: :smiley: :smiley: :smiley: :smiley: :smiley:

Hi everyone

I also have very good news!

Mine is now working very well.

It appears that the software I wrote did not have a baud rate of 9600.

As soon as I spotted this and rectified, the system worked.

I am very impressed with the distance, even when its non_line of sight.

Thanks for everyones help.

Samncw

Congratulation mate…

Out of curosity, can you please tell us the roughtly maximum distance?

Waveman

I am very confused by this datasheet. For normal operation - the reset pin should be high, and the sleep pin should be low, correct?

That’s what I believe…I’m yet another experimenter confused by this datasheet.

I’ve been trying to get Com1 to transmit a simple squarewave pulse train, and have been unsuccessful thus far.

I have a question if anyone is out there: For either transceiver (say the transmitter) does the unused pin (RX/TX) need to be grounded or a voltage applied?? I know it’s not a duplex system, so how do you assign a RX/TX mode to each transceiver?

ANY input is warmly welcomed! :shock:

Thanks

Matt

Fishbone:
That’s what I believe…I’m yet another experimenter confused by this datasheet.

I’ve been trying to get Com1 to transmit a simple squarewave pulse train, and have been unsuccessful thus far.

I have a question if anyone is out there: For either transceiver (say the transmitter) does the unused pin (RX/TX) need to be grounded or a voltage applied?? I know it’s not a duplex system, so how do you assign a RX/TX mode to each transceiver?

ANY input is warmly welcomed! :shock:

Thanks

Matt

My current (working) setup has the TTL input and output floating on one end, and the RS-232 input and output floating on the other end. I have reset held high and sleep held low. Note that I have found that the sleep pin appears to have no effect whatsoever on the unit.