Problem with the interrupt Pic32mx150F128b

Any bugs you encounter with Flowcode should be discussed here.
SpeedPIC32
Posts: 256
http://meble-kuchenne.info.pl
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Flowcode v10 Re: Problem with the interrupt Pic32mx150F128b

Post by SpeedPIC32 »

Hello,

I use the same HC05 module for both chips.
I can only send via the module and Pic32mx150 at 9600 baud.
via the module and Pic32mz2048 I can do both at 9600 baud.
another problem has arisen. the setBaud setName setKey commands do not work.
i put the commands after the initialise, they are just sent via bluetooth. where do the commands have to be for them to work.
I also switched on the AT mode using the button on the HC05 module, but that doesn't work either.

With kind regards
SeedPic32

chipfryer27
Valued Contributor
Posts: 1187
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 289 times
Been thanked: 417 times

Re: Problem with the interrupt Pic32mx150F128b

Post by chipfryer27 »

Hi

Sorry to be brief, just heading out. When sending HC05 config AT commands remember the baud is different (offhand 38400) to your in-use baud of 9600.

So to configure you would need to

Initialise
Set baud to 38400
Set HC05 to AT mode (can be done by switching a Port)
Send commands
Reset HC05/ exit config
Set baud to 9600

I can't test with your chips but I can with other PICs if needed.

Regards

SpeedPIC32
Posts: 256
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: Problem with the interrupt Pic32mx150F128b

Post by SpeedPIC32 »

hello,
I have now tried the following.
I have set the baud to 38400 via a USB converter.
When switching on, I pressed the button to enter AT mode and then set the baud. then the HC05 always runs with 38400.
I tested the same with another module with FC10 and the HC05 commands.
wait 3 sec. during startup, pressed the button. the flashing shows the module is in AT mode. sent the command new name, nothing happened. no new name. the same with the initialisation before, nothing happened.

so now it's your turn. how do you do it in FC 10 with a fresh HC05?
it should get the name SpeedPic with the number 1204 and with 57600 baud.
the whole for a PIC32MZ2048EFH100 with 200Mhz chanel 4 / E3= TX and G9= RX

this is not the end of the interruption, i am still waiting for an answer from benr.

I am curious about the result
greetings SpeedPic32

chipfryer27
Valued Contributor
Posts: 1187
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 289 times
Been thanked: 417 times

Re: Problem with the interrupt Pic32mx150F128b

Post by chipfryer27 »

Hi

I'll try and have a look tomorrow but it is strange that one module doesn't respond.

My last real play with them was here (old forum)

https://www.matrixtsl.com/mmforums/view ... 68&t=23028

If nothing is happening when you send commands it could be a baud issue. If using a Terminal program and a USB-TTL Serial converter (remember to level shift the HC05 Rx) putting it into AT mode and sending "AT" should return an OK. If not it might be worth trying differing baud rates as that HC05 may be set differently to others. Not unknown....

Regards

Edit
In the link above I document the AT commands I used to configure and control. Hopefully it helps.

SpeedPIC32
Posts: 256
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: Problem with the interrupt Pic32mx150F128b

Post by SpeedPIC32 »

hello fc team

can you please check the interrupt?

I will solve the 2nd problem HC05 myself.

With kind regards

Post Reply