CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Serial Payload

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
aaronik19



Joined: 25 Apr 2011
Posts: 297

View user's profile Send private message

Serial Payload
PostPosted: Fri Apr 22, 2022 1:31 am     Reply with quote

Dear all, i would like to interface JDY-23 Bluetooth module to my Pic 18F4550 to transmit an receive data to Android mobile. Now to organize the transmission i would like to use one payload of data to every println. Is this possible please?
temtronic



Joined: 01 Jul 2010
Posts: 9225
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Apr 22, 2022 5:14 am     Reply with quote

yes.
had a quick look at the datasheet and providing you're running the PIC at 3 volts, the interface is simple. I assume you're using a 'module' and not just the 'chip'....

Since it runs 'AT' commands, actual software should be easy to code and test as well.
You will of course have to use the HW UART of the 4550 and create an ISR with buffer. Look at EX_SISR.C as a basis for that.

Start with a simple test program, say to request and read the 'version' or 'ID' of the device. Once that works, ask for data from other 'registers', then set some registers data, read to confirm that data is correct. Add a couple LEDs and resistors, send the commands to turn them on/off. If these steps work, then you can write your 'real' program.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group