Search found 1681 matches

by LeighM
Tue Aug 20, 2019 1:51 pm
Forum: Feature Requests
Topic: MQTT Component Authentication
Replies: 13
Views: 74

Re: MQTT Component Authentication

Hi James, Ah, right, I see the problem now. The GetTopic expects a named buffer to receive the string value that is returned by the function. When you subscribe to a topic this just registers with the broker that you want to receive updates on this topic. Once you are connected to the broker it will...
by LeighM
Tue Aug 20, 2019 11:01 am
Forum: Feature Requests
Topic: MQTT Component Authentication
Replies: 13
Views: 74

Re: MQTT Component Authentication

I've dug out a demo/test which might help ...
by LeighM
Tue Aug 20, 2019 10:55 am
Forum: Feature Requests
Topic: MQTT Component Authentication
Replies: 13
Views: 74

Re: MQTT Component Authentication

It would be worth adding a DebugPrint component at various points in the program to see how far it gets. See "Console Debugger (Raspberry Pi)" in the Runtime Tools menu. This will output text to the terminal window. Also you need to check the return values from the MQTT_Client functions th...
by LeighM
Tue Aug 20, 2019 7:43 am
Forum: Feature Requests
Topic: MQTT Component Authentication
Replies: 13
Views: 74

Re: MQTT Component Authentication

Hi James,
The Raspberry Pi Zero is not on our supported devices list.
The RPi3 target will not produce code compatible with Zero,
you could try the RPi1 as the target, but this has not been tested.
Leigh
by LeighM
Mon Aug 19, 2019 12:17 pm
Forum: Feature Requests
Topic: ADC Calculation is getting wrong
Replies: 3
Views: 36

Re: ADC Calculation is getting wrong

The LCD PrintNumber() can only print integers.
For float values first convert to a string with FloatToString$()
Then print the string
by LeighM
Mon Aug 19, 2019 12:02 pm
Forum: Feature Requests
Topic: MQTT Component Authentication
Replies: 13
Views: 74

Re: MQTT Component Authentication

Hi James,
I've now added Name/Password Authentication
Could you try the attached updated component, to go into directory:
C:\ProgramData\MatrixTSL\FlowcodeV8\Components
by LeighM
Mon Aug 19, 2019 9:49 am
Forum: Feature Requests
Topic: MQTT Component Authentication
Replies: 13
Views: 74

Re: MQTT Component Authentication

Mosquitto can be run without authentication, but if you need it I will have a look and see if this can be included into the component
by LeighM
Mon Aug 19, 2019 7:44 am
Forum: Feature Requests
Topic: ADC Calculation is getting wrong
Replies: 3
Views: 36

Re: ADC Calculation is getting wrong

Hi
Your Ratio variable is an integer, it should be a float
by LeighM
Fri Aug 16, 2019 12:14 pm
Forum: Freelance Embedded Engineers
Topic: MIAC dsPIC Clock to Arduino Mega 2560 R3
Replies: 10
Views: 250

Re: MIAC dsPIC Clock to Arduino Mega 2560 R3

Hi Monie, The warnings can be ignored, they are not a problem. The error is the problem, please set connection properites for the RTC component, it should then compile OK. I am not sure that the two I2C devices will work well on the same pins, you might need to have these on separate pins if possibl...
by LeighM
Thu Aug 15, 2019 5:25 pm
Forum: Flowcode V7
Topic: Sending SMS
Replies: 3
Views: 62

Re: Sending SMS

A few possibilities: 1) Message string size needs checking, default 20 will not be enough 2) String concatenation does have problems, if you add more than one item at a time, so do this instead... Message = "IME " Message = Message + IME Message = Message + "\n" 3) If volume is a...
by LeighM
Wed Aug 14, 2019 9:39 am
Forum: Freelance Embedded Engineers
Topic: MIAC dsPIC Clock to Arduino Mega 2560 R3
Replies: 10
Views: 250

Re: MIAC dsPIC Clock to Arduino Mega 2560 R3

What is your hardware? Circuit?
How are you connecting the MCP7940 RTC device to the Arduino board?
You could use any pin with the Software channel, or for hardware channel 1 use:
SCL PD0 (DIGITAL PIN 21)
SDA PD1 (DIGITAL PIN 20)
And don't forget the pull-up resistors 8)
by LeighM
Wed Aug 14, 2019 9:22 am
Forum: 16-Bit PIC
Topic: dsPIC33EP512GM710 CAN bus stopped working
Replies: 8
Views: 307

Re: dsPIC33EP512GM710 CAN bus stopped working

Hi Martin,
Could you please try the attached?
Thanks
Leigh
by LeighM
Wed Aug 14, 2019 7:32 am
Forum: 16-Bit PIC
Topic: dsPIC33EP512GM710 CAN bus stopped working
Replies: 8
Views: 307

Re: dsPIC33EP512GM710 CAN bus stopped working

Hi Martin,
Thanks for the information - I will look into it
Leigh
by LeighM
Tue Aug 13, 2019 7:54 am
Forum: Freelance Embedded Engineers
Topic: MIAC dsPIC Clock to Arduino Mega 2560 R3
Replies: 10
Views: 250

Re: MIAC dsPIC Clock to Arduino Mega 2560 R3

Hi Monie,
I don't understand either :D
Are you using an MCP7940 RTC device connected to an Arduino Mega 2560 Rev3 board?
Or do you want to convert the MIAC dsPIC example into a MIAC Arduino version?
by LeighM
Tue Aug 13, 2019 7:36 am
Forum: Freelance Embedded Engineers
Topic: MIAC dsPIC Clock to Arduino Mega 2560 R3
Replies: 10
Views: 250

Re: MIAC dsPIC Clock to Arduino Mega 2560 R3

Hi Monie,
Your problem could be a hardware issue, can you attach a circuit diagram?
e.g. I asked in your previous post about pull-ups on your RTC device.
Leigh
by LeighM
Mon Aug 12, 2019 9:52 am
Forum: 16-Bit PIC
Topic: dsPIC33EP512GM710 CAN bus stopped working
Replies: 8
Views: 307

Re: dsPIC33EP512GM710 CAN bus stopped working

That does sound odd. Presumably the UART works, such that you know it's the CAN at fault?
I've attached a zip of older revisions of the PIC16BIT_CAL_CAN.c such that you can try them.
e.g. PIC16BIT_CAL_CAN@72.c is the oldest.
by LeighM
Thu Aug 08, 2019 12:52 pm
Forum: Flowcode V8
Topic: Arduino Mega 2560 R3 And RTC MCP794N
Replies: 16
Views: 455

Re: Arduino Mega 2560 R3 And RTC MCP794N

PNP_Sensor.jpg
PNP_Sensor.jpg (59.42 KiB) Viewed 155 times
by LeighM
Tue Aug 06, 2019 8:15 am
Forum: Flowcode V8
Topic: Arduino Mega 2560 R3 And RTC MCP794N
Replies: 16
Views: 455

Re: Arduino Mega 2560 R3 And RTC MCP794N

Hi Monie, I don't think you can use the components together like that. Depends what your driver circuit looks like, but you could drive one pin/side with the PWM and the other with high/low for forward/reverse. Or, use the PWM as a driver enable, and then use the motor reversible component to drive ...
by LeighM
Fri Aug 02, 2019 2:38 pm
Forum: Flowcode V8
Topic: 18F67K40 UART Problem
Replies: 38
Views: 773

Re: 18F67K40 UART Problem

When you tried V0.9.fcfx (attached above, but with the lower frequency clock/crystal) with the LED icons enabled, did the LEDs flash?
by LeighM
Fri Aug 02, 2019 10:55 am
Forum: Flowcode V8
Topic: How to send GSM international phone code?
Replies: 9
Views: 349

Re: How to send GSM international phone code?

Try this ...
by LeighM
Fri Aug 02, 2019 10:05 am
Forum: Flowcode V8
Topic: How to send GSM international phone code?
Replies: 9
Views: 349

Re: How to send GSM international phone code?

Hi Jan, As Chipfreyer27 mentioned ... The component macro may possibly be looking for a specific reply from the board to indicate success. Possibly the version of your board provides a different reply? The GSM component was designed for EB066 which uses a Telit GL865 The command set is generic, but ...
by LeighM
Wed Jul 31, 2019 12:57 pm
Forum: Bug Reports
Topic: SPI
Replies: 4
Views: 122

Re: SPI

and it keeps counting down the trial key even when I have installed my key?

I think this is normal, as the trial probably gives you more functionality than your key.
But I'll ask David to confirm
by LeighM
Wed Jul 31, 2019 12:30 pm
Forum: Bug Reports
Topic: SPI
Replies: 4
Views: 122

Re: SPI

Thanks for the spot.
Please try attached updated file, until we get this into the update system,
to go into directory C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC16BIT
by LeighM
Tue Jul 30, 2019 2:59 pm
Forum: Flowcode V8
Topic: 18F67K40 UART Problem
Replies: 38
Views: 773

Re: 18F67K40 UART Problem

Do the UARTs output anything, even if invalid data?
Do you have an oscilloscope to check?
The clock speed in Project Options looks odd, is it correct?
by LeighM
Tue Jul 30, 2019 7:43 am
Forum: Flowcode V8
Topic: Arduino Mega 2560 R3 And RTC MCP794N
Replies: 16
Views: 455

Re: Arduino Mega 2560 R3 And RTC MCP794N

Believe that pull-up resistors are built-in.

Are you using a module, or the chip device?
Here's the circuit needed from the datasheet...

MCP7940N.png
MCP7940N.png (16.16 KiB) Viewed 396 times