SKKCA-21 cannot start, hardware not found

Bluetooth, XBee, RF......

SKKCA-21 cannot start, hardware not found

Postby Bowl » Sun Apr 10, 2011 9:49 pm

As the title implies, my Starter Kit, SKKCA-21 Image is unable to be started. It is stated that the bluetooth hardware is not found.

1. How long is the warranty period if purchased online?

2. What i did?

i installed the driver from
http://www.cytron.com.my/attachment/USB%20Driver.zip, and used this software http://www.cytron.com.my/usr_attachment ... 227.10.zip to establish communication. I pressed the reset button but nothing happens and the same message is displayed. Can not start bluetooth. Bluetoth hardware is not found.

I am using Windows XP SP3

BTW, i didn't touch the kit for a year.... :oops:
Bowl
Freshie
 
Posts: 6
Joined: Sat Apr 09, 2011 8:27 pm

Re: SKKCA-21 cannot start, hardware not found

Postby hyng » Mon Apr 11, 2011 9:57 am

Normally the warranty will take 3-4 days depending on the defectiveness of the product.
BTW, does your computer recognize the USB com port for that SKKCA?
User avatar
hyng
Moderator
 
Posts: 292
Joined: Thu Apr 16, 2009 11:35 am

Re: SKKCA-21 cannot start, hardware not found

Postby robosang » Mon Apr 11, 2011 11:10 am

I am using this SKKCA for long time ago.... no problem to create connection with the Bluetooth donlge (external). Until now it is still working :D The picture you posted cannot be viewed.

I think Cytron have different period for warranty, it should be some place in the datasheet or User's Manual.

You are saying the host computer cannot communicate with SKKC through USB or other bluetooth cannot find the SKKC?
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Establishing Serial Communication via Bluetooth

Postby Bowl » Mon Apr 11, 2011 7:31 pm

What i did wrong?
I misunderstood and tried using the Bluetooth software http://www.cytron.com.my/usr_attachment/IVT6.2.227.10.zip to communicate with the module.

http://www.mediafire.com/i/?m78a9t5p9es9kc3

Spoiler: show
just click the link to view

Does this picture confirms that the SKKCA-21 is working?
I connect using the usb serial port to connect to the module via hyper terminal as the medium.http://www.mediafire.com/i/?7lv8l4okwojb43z

Quoting the manual: Computer A connects to the SKKCA-21 while Computer B uses a BT (Bluetooth Module) dongle.

I only get to confirm that Computer A and B established communication. Do i have to switch on Blue Soleli http://www.cytron.com.my/usr_attachment/IVT6.2.227.10.zip if i were to connect PC (own Bluetooth Module) to PIC16F877A (SKKCA-21)?

Anyone good in assembly code, PIC Basic Pro, C language, assembly language?

I have a favour to ask, what is missing in my PIC Basic Pro Coding below? My question is how do I establish serial communication between a PC and a micro controller?

I am using PIC16F77A to connect to a PC via a bluetooth module but the hyperterminal does not displays anything. Basically, the coding should transfer ASCII character 0, 1, until 9 to the PC when a push button is pressed.

Disclaimer:
The assembly language and C language does not perform the same function as my coding.

Details:
The language used is PIC Basic Pro, Compiler: MicroCode Studio Version 4.0, Assembler: Microchip/mpasm suite, MPLAB IDE v8.66, Windows 7.

PIC Basic Pro

Spoiler: show
INCLUDE "modedefs.bas" ' Serial communication mode definition file
DEFINE OSC 20 ' Oscillator speed is set to 20MHz
TRISB = %11111111
TRISC = %10000000 ' RC.7 => USART RX pin set to input
PortC = 0
SPBRG = 10 ' Baud Rate = 115200

' Variable definition
' ===================
'
count01 VAR BYTE ' variable to store TXREG content
TXSTA = %00100100 ' Enable transmit and asynchronous mode
RCSTA = %10010000 ' Enable serial port and continuous receive
mainloop:


IF (PortB.7 = 1) THEN
FOR count01 = 0 TO 9

PAUSE 2000

TXREG = count01 + $30 ' Transmit Data

HIGH PortD.2
PAUSE 2000
LOW PortD.2

Next

ENDIF

GOTO mainloop

END

This is the coding from the microchip forum:

Assembly Language

Spoiler: show
http://www.microchip.com/forums/m221431.aspx


LIST p=16F628a
#include
__config 0x2118


X1 equ 0x30
X2 equ 0x31
X3 equ 0x32


org 0x0000

start
goto initialize


org h'0004' ;interrupt vector location


retfie

;************************
;INITIALIZATION ROUTINE *
;************************

initialize
;initialize ports and registers

movlw 0x07
movwf CMCON ;turn comparators off

bcf STATUS,RP0

gie01 bcf INTCON,GIE ;turn gie off
btfsc INTCON,GIE
goto gie01

clrf PIR1 ;clear peripheral flags

clrf PORTA ;clear all i/o registers...
clrf PORTB

bsf STATUS,RP0

movlw b'00011111'
movwf TRISA

movlw b'00000110' ; RB1 = RX input, RB2=TX output
movwf TRISB


clrf INTCON

clrf PIE1 ; no interrupt


;uart specific initialization
;txsta=Transmit STAtus and control register.

bcf TXSTA,TX9 ; <6> 0 select 8 bit mode
bsf TXSTA,TXEN ; <5> 1 enable transmit function

bcf TXSTA,SYNC ; <4> 0 asynchronous mode.

bsf TXSTA,BRGH ; <2> 0 disable high baud rate generator !!!


xtal_freq = d'4000000' ;crystal frequency in Hertz.

baudrate = d'115200' ;desired baudrate.


spbrg_value = (xtal_freq/(baudrate*d'16'))-1


movlw spbrg_value ;set baud rate generator value
movwf SPBRG


bcf STATUS,RP0

;more uart specific initialization
;rcsta=ReCeive STAtus and control register


bsf RCSTA,SPEN ; 7 spen 1=rx/tx set for serial uart mode

bcf RCSTA,RX9 ; 6 rc8/9 0=8 bit mode
bcf RCSTA,SREN ; 5 sren 0=don't care in uart mode
bsf RCSTA,CREN ; 4 cren 1=enable constant reception

bcf RCSTA,FERR ; 2 ferr input framing error bit. 1=error

bcf RCSTA,RX9D ; 0 rx9d input (9th data bit). ignore.



movf RCREG,w ;clear uart receiver
movf RCREG,w
movf RCREG,w


movlw 0
movwf TXREG ;send out dummy character
; to get transmit flag valid!


;************************
; main programme *
;************************


main

loop
btfss PORTA, 2 ;test if input device is ringing
call ON1
goto loop

ON1
movlw 'A'

call transmitw ;send W to the UART transmitter
bsf PORTB, 6 ;turn on RB2
call Delay ;this waits for a while!
bcf PORTB, 6 ;turn off RB2
call Delay
goto loop


;*************************************************
;* TRANSMIT Routines *
;*************************************************

transmitw

btfss PIR1,TXIF
goto transmitw ;wait for transmitter interrupt flag

movwf TXREG ;load data to be sent...

return
;transmitted data is in W



;********************
;* Delay Routines *
;********************

Delay movlw d'2'
movwf X3
B3 movlw d'255'
movwf X2
B2 movlw d'255'
movwf X1
B1 decfsz X1,f
goto B1
decfsz X2,f
goto B2
decfsz X3,f
goto B3
return

end

Anyone have materials for reference ? I am not proficient in assembly language.

BTW, Cytron provided this coding in C for reference, a DIY project, PR6:

C Language

Spoiler: show
#include

__CONFIG(0x3F32);

#define seg PORTD // define 7 segment as PORTD

unsigned char a;

void init(void) // subroutine to initialize
{
// SPBRG=0x0A; // set baud rate as 115200 baud
SPBRG=0x81; // set baud rate as 9600 baud
BRGH=1;
TXEN=1;
CREN=1;
SPEN=1;
TRISD = 0b00000000;
seg = 0b00000000;
}

void display(unsigned char c) // subrountine to display the text on the screen
{
while (TXIF == 0);
TXREG = c;
}

unsigned char receive(void) // subrountine to receive text from PC
{
while (RCIF == 0);
a = RCREG;
return a;
}

void main(void)
{
init();

while(1) // wait for 'ok' to be entered
{
a = receive();
if (a == 'o')
{
a = receive();
if (a == 'k') break;
}
}


display('C'); // change the text for different display
display('y');
display('t');
display('r');
display('o');
display('n');
display(0x0a);
display(0x0d);
display('P');
display('r');
display('e');
display('s');
display('s');
display(0x20);
display('a');
display('n');
display('y');
display(0x20);
display('n');
display('u');
display('m');
display('b');
display('e');
display('r');

seg = 1;

while(1) // wait for number and display it on 7 segment
{
a = receive();
if (a=='1'||a=='2'||a=='3'||a=='4'||a=='5'||a=='6'||a =='7'||a=='8'||a=='9'||a=='0')
{
seg = a-0x30;
}
}


}


What is the receive routine in PIC Basic Pro?

Do I need to include a receive routine if the PIC only transmits data?

What are the interface requirements of the Cytron SKKCA-21?
Bowl
Freshie
 
Posts: 6
Joined: Sat Apr 09, 2011 8:27 pm

Establishing Serial Comm Between PC and PIC via Bluetooth

Postby Bowl » Tue Apr 12, 2011 11:49 am

For Baud Rate of 115200, is TXSTA = 24 or %00100100 ?

DO i need to set a "if" condition to check whether TXIF = 0 before i transmit via bluetooth?

IF (TXIF = 0) THEN
FOR count01 = 0 TO 9

PAUSE 2000

TXREG = count01 + $30 ' Transmit Data and + $30 s that Hyper terminal can display recognizable ASCII characters

ENDIF


What is the protocol of bluetooth to transmit data?
The reset pin at SKKCA-21, do i have to ground it because i ground it.

Do i need to set the value of register RCSTA if i don't use them because I only transmit data not receiving anything
Bowl
Freshie
 
Posts: 6
Joined: Sat Apr 09, 2011 8:27 pm

Hex Code.........

Postby Bowl » Tue Apr 12, 2011 8:59 pm

:lol: so i used http://cytron.com.my/attachment/PR6.zip and to my surprise the PC is unable to establish communication with the SKKCA-21 [paired with PIC16F877A]

I followed steps from http://cytron.com.my/userpage.php?id=PR6 but nothing works.


At step

Spoiler: show
[3. Setup PC for Bluetooth interface
Next, double click on the symbol of the Bluetooth module. The software will automatically select the method to connect with the Bluetooth device
]


the PC states that it is unable to find any services and it asked me to check if Bluetooth is on or it is connectable....

What did work?

PC A with SKKCA-21 is able to link with PC B with bluetooth dongle. Hyperterminal [PC A] is able to sense when PC B disabled communication.

Hardware Used:

1 Starter Kit (SKKCA-21)
1 20MHZ Resonator
1 PIC 16F877A [Cytron's]

Burner and programmer from Cytron.

Software?
http://www.cytron.com.my/viewProduct.ph ... ve956UfnA=

So I sent a query to cytron at the support tab...

Anyone with a SKKCA-21 can test my coding?

My current coding:

PIC Basic Pro:

Spoiler: show
INCLUDE "modedefs.bas" ' Serial communication mode definition file
DEFINE OSC 20 ' Oscillator speed is set to 20MHz
TRISB = %11111111
TRISC = %10000000 ' RC.7 => USART RX pin set to input
PortC = 0
SPBRG = 10 ' Baud Rate = 115200

' Variable definition
' ===================
'
count01 VAR BYTE ' variable to store TXREG content
stop01 VAR BYTE
TXSTA.2 = 1 ' High speed
TXSTA.5 = 1 ' Enable transmit
RCSTA.7 = 1 ' Bit 7, SPEN, Enable USART
RCSTA.4 = 1 ' Bit 4, CREN, Enable Continuous Receive
stop01 = 0
mainloop:


IF (PortB.7 = 1) THEN

FOR count01 = 0 TO 9

TXREG = count01 + $30 ' Transmit Data

PAUSE 2000
HIGH PortD.2
PAUSE 2000
LOW PortD.2

Next

ENDIF

GOTO mainloop

END


Equivalent Hex Code:

Spoiler: show
:020000040000FA
:100000002328A301A200FF30A207031CA307031C9F
:100010001E280330A100E6300F200328A101FC3E7A
:10002000A000A109031C1A28FF300000A007031834
:100030001528A0076400A10F1428080083130313D8
:100040008312640008008316FF308600803087002A
:100050008312870183160A309900181598168312A7
:1000600098171816B90164008A110A12861F5A28B7
:10007000B80164000A3038028A110A1203185A289B
:100080003030380799000730A300D0308A010220B1
:1000900008158316081183120730A300D0308A0197
:1000A00002200811831608118312B80A8A110A1255
:0E00B000031D39288A01332863008A015C2869
:02400E007A3FF7
:00000001FF
Bowl
Freshie
 
Posts: 6
Joined: Sat Apr 09, 2011 8:27 pm

Re: SKKCA-21 cannot start, hardware not found

Postby joliza » Wed Apr 13, 2011 12:33 pm

hi..
From the pictures you have upload, the bluetooth icon is unactive and computer not regonize your bluetooth port.
Try to connect bluetooth dongle to your pc and wait untill hardware installation for bluetooth is finish.
joliza
Novice
 
Posts: 22
Joined: Mon Jun 22, 2009 10:56 am

Closure

Postby Bowl » Wed Apr 13, 2011 2:36 pm

No problem now. BTW, my PIC Basic Pro coding works with Hyper Terminal.

Reminder:

Use BlueSoleil to communicate with the PIC to establish communication. My laptop's pre-installed BT module cannot establish communication with the PIC so i used a random BT dongle instead. Bluesoleil does not recognize the laptop's BT module...

Bluesoleil cannot use SKKCA-21 as its BT medium which answers why Bluesoleil displays these message:

"Can not start bluetooth. Bluetoth hardware is not found."

Spoiler: show
http://www.mediafire.com/i/?8xi7vcik4kpxdd7


Question:

Anyone have other tested options other than using BlueSoleil to establish communication?
Bowl
Freshie
 
Posts: 6
Joined: Sat Apr 09, 2011 8:27 pm


Return to Wireless Device

Who is online

Users browsing this forum: No registered users and 11 guests

cron