looking for RF wireless coding for pic18

Bluetooth, XBee, RF......

Re: looking for RF wireless coding for pic18

Postby zikri » Sat Feb 13, 2010 7:27 pm

tq for help me. i will try it.
zikri
Newbie
 
Posts: 11
Joined: Tue Jan 05, 2010 11:51 am

Re: looking for RF wireless coding for pic18

Postby zikri » Sun Feb 28, 2010 10:44 am

I'm using UART. my problem now, i can transfer data in ASCII as u all known 'abc...z' but in digital number i can not transfer it. what should i do? which part of my program that i need to change.
zikri
Newbie
 
Posts: 11
Joined: Tue Jan 05, 2010 11:51 am

Re: looking for RF wireless coding for pic18

Postby ober » Mon Mar 01, 2010 11:48 am

What do you mean you cannot send digital number? You want to send value or ASCII "1, 2, 3 ...." ?
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: looking for RF wireless coding for pic18

Postby zikri » Mon Mar 01, 2010 7:34 pm

i want to send value mean that value analog signal that being convert to digital signal. the digital value need to be send. so i try value such as '1,2,3,4,5... and so on'. this value does not come out. i test it using rs232 in serial data communication before i start using wireless system. so what coding i need to put in the program so i can take the value after ADC to be display in HyperTerminal in computer? after this success, will continue to the transfer with the wireless system. now my supervisor ask me to do this first? then i can proceed to next stage. hope somebody can help me. all help i appreciate it. tq
zikri
Newbie
 
Posts: 11
Joined: Tue Jan 05, 2010 11:51 am

Re: looking for RF wireless coding for pic18

Postby zikri » Wed Mar 03, 2010 1:45 pm

i'm sorry my mistake. i known what is my problem. now i'm asking if there are anyway to convert binary to ASCII. this is because i need to send the data in digital to the hyperterminal. so my supervisor say that i need to convert it first. that why i can not view the value that i have send. here i need anybody help to program in assembly. the program was about the conversion of binary number after ADC process to ASCII so that i can make data transfer to the hyperterminal. if my idea was wrong please someone help me. hope there are someone can reply me as soon as posible. tq for your help.


zikri.
zikri
Newbie
 
Posts: 11
Joined: Tue Jan 05, 2010 11:51 am

Re: looking for RF wireless coding for pic18

Postby ober » Wed Mar 03, 2010 4:53 pm

So basically you want to transfer information in value such as 108, not an "ASCII" character, correct? You need to transfer the value in '1', '0', '8'.

Well, let's have some discussion here.
1. What is the relation between value 1 and ASCII '1'?, follow by 2 and '2' and the rest until 9?
2. How can we extract 1 number from a value, say 255, I need to get 2, 5, and 5 out of it, how to do so?
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: looking for RF wireless coding for pic18

Postby zikri » Thu Mar 04, 2010 2:28 am

yes. i want to transfer digital value to the hyperterminal. the digital value in '0' and '1'. so the data such as in 8 bits '00001111'. assumption the 8 bits data before was result after ADC. this data i want send to the hyperterminal. what should i do?


1.What is the relation between value 1 and ASCII '1'?, follow by 2 and '2' and the rest until 9?
-for this question the value 1 was refer to the digital number which is '1' while the ASCII'1' was refer to the key where ASCII (hex)=31 while it binary was 00110001(packed) and BCD(unpacked)=00000001.


2. How can we extract 1 number from a value, say 255, I need to get 2, 5, and 5 out of it, how to do so?
-for this question i can not answer because my knowledge was limited now. i need to learn more about this.
zikri
Newbie
 
Posts: 11
Joined: Tue Jan 05, 2010 11:51 am

Re: looking for RF wireless coding for pic18

Postby ober » Thu Mar 04, 2010 12:28 pm

zikri WROTE:1.What is the relation between value 1 and ASCII '1'?, follow by 2 and '2' and the rest until 9?
-for this question the value 1 was refer to the digital number which is '1' while the ASCII'1' was refer to the key where ASCII (hex)=31 while it binary was 00110001(packed) and BCD(unpacked)=00000001.

You din list out all the numbering and ASCII. You need to observe and think more, I have give you hints.
1 = 0b00000001, '1' = 0b00110001
2 = 0b00000010, '2' = 0b00110010
3 = 0b00000011, '3' = 0b00110011
4 = ?

if you list out all, you will notice some relationship between a number with its ASCII code. What is that relationship? Another hint, list it in hexadecimal value instead of binary

zikri WROTE:2. How can we extract 1 number from a value, say 255, I need to get 2, 5, and 5 out of it, how to do so?
-for this question i can not answer because my knowledge was limited now. i need to learn more about this.

Let's say you get a 123, how can you get the 1 from 123? Another hint, use operator (+, -, *, /, %).
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: looking for RF wireless coding for pic18

Postby zikri » Thu Mar 25, 2010 10:24 pm

hello. now i having problems in receiver module. my transmitter send certain values. then the receiver receive the value. i think the wireless is lose it data while the transmission process. so what should i do? is it i need to increase it baud rate or other things i need to do? i only use jumper wire as antenna. i use transmitter module from the model RF_TX_315 product from Cytron and receiver module from the model RF_RX_315 also product from Cytron.

if anybody there would don't mind, please help me. thank your for your reply
zikri
Newbie
 
Posts: 11
Joined: Tue Jan 05, 2010 11:51 am

Re: looking for RF wireless coding for pic18

Postby ober » Fri Mar 26, 2010 4:44 pm

Maybe you could lower the baudrate, the RF module is not meant for wireless serial transmission.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Previous

Return to Wireless Device

Who is online

Users browsing this forum: No registered users and 11 guests

cron