KFX Serial Out to microcontroller

To read the serial port, use the ā€œCOMM Operatorā€ button, this should launch the software you need for testing. You do not need the ā€œSet Destination Addressā€ or the ā€œAPI Codecā€ windows, they are not relevant to your application.

  1. I used Coolterm to read the USB port connected to the Zigmo/KFX. Attached is a screen shot, from left to right are buttons 1 2 3 4 8, each pressed once.
    Buttons 5 6 7 do not show anything although they show active in base station ( highlights green in box).
  2. ON Base Station main screen, on the left is a check box ā€œUSe API mode when possibleā€ iā€™m not sure where to set this , if I turn it off it comes back on next time in, and then turning it off deletes my remote button settings.
    Please see screen shot ( and more) you requested - in my previous email.
    Bottom line, KFX is not outputting programmed values.
    Please advise

Attached is the same result in CommOP.

  1. As with other monitors, still do not see unique values for each button. The difference between buttons is based on the number of bytes. (buttons 3 and 4 are 2 bytes, others 1 byte)
  2. I reentered the values for all 8 buttons and still buttons 5 6 7 donā€™t show any result. although they show activity ( green box) in Base Station.
    What can I try next?
    Is there a reset function for the KFC, so I can start from the beginning?

Thanks

Hi Emic,

I just tested it and did get it working on my computer.

I did notice that the API check on the main screen messes around with the KFX window. This looks like a bug in base station. You should leave this checked as its a Base Station setting and wonā€™t effect the KFX module.

So leave that Use API mode when possible checked, go into the KFX Configuration, make Sure Raw is selected, make sure the data on the left looks correct, hit Store Configuration Settings.

I noticed that if the Use API mode when possible is selected some of the data defaulted to 255.

All of my settings matched yours, but that checkbox did alter the way settings were read and probably written

Thanks Jacob.
Iā€™ve found the issue. It seems baud rate does not change in KFX.
If I use 115K it works fine, I get exactly what I enter. :slightly_smiling_face:
If I change the KFX baud rate to 38.4K and configure the monitor for 38.4, I get junk
If I change the KFX baud rate to 38.4 and configure the monitor to 115K - it works!!
But my max baud rate for the receiving device is 38.4K :roll_eyes:
Can I do anything? ( is there a hardware option to set 38.4K?)
What are my next steps?

The baud rate changed on my KFX.

Can you try changing it again while making sure that Use API when available is checked? Also make sure to hit the Store configuration settings and wait for it to not be greyed out.

Thanks.
Same problem. When I open the config screen it shows 38.4, I select store and wait for the EEPROM Save to finish ( as always). I select Read - it shows 38.4 ( doesnā€™t change).
ā€œUse APIā€¦ā€ - selected ( did not touch)
Start Coolterm monitor - and it only works with 115K
Note: Iā€™m using RS-232 Serial for Uart interface tech

Iā€™m attaching a screenshot of my device configration.

What version of Base Station are you using because yours looks slightly different?

Base Station V4.0.8
Device Firmware V3.12 IORelay.com

Your Screen Shot shows Run Mode. Mine always shows Configuration Mode
If I select it (I have not been doing that) A window opens but iā€™m not able to change it to Run mode
For all configuration screens - I have been using the Store function and when finished, closing the window by using the Windows X
Just in case, I disconnected from Zigmo and connected to Arduino - same thing, if I set the sketch baud rate to 115K it works (using D4 as RX), but not if the sketch is set to 38400. Then reconnect to Zigmo and base station - in config it shows 38.4K

Iā€™ve tried running base station as an admin - it didnā€™t help.

Can you try power cycling by disconnecting it and reconnecting it over USB to see if that gets it out of config mode?

I have been unplugging the USB cable after closing base station and before starting the serial monitor.
I also tried the reboot function on the Config page with no obvious effect (KFX power light stays on)
Can the issue be hardware related, not software? Does the KFX have a Program/Run jumper?
What else can I try?
On each of the 3 screens of Base Station that I use - I am not able to select Run mode.

Note: I am not able to access Run Mode with two different Win 10 computers

It could be hardware related. To check, can you try sending the following bytes to the module using a console: 170 5 254 33 140 86 0 176

This should cancel any software configuration modes that are currently enabled.

Hi Jacob
Please see attached image - is this executed correctly?
After this I disconnected USB after 5 seconds reconnect and load Base station
Still locked in configuration mode -

Its odd that it sent the response 86.

All of that and its still not letting you change the baud rate and maintain it after a reboot?

Can you try the button presses directly into a console again at the configured baud rate?

With the port configured to 38.4K in Base station, I am only able to receive data when setting the port to 115K ( in Comm operator).
As per attached ( last line shows remote control buttons). I get nothing at 38.4k
It seems to maintain the baud rate to some degree, because when I reconnect to BaseS it will show the last saved Baud Rate ( eg 38.4k). But it only ever actually connects at 115K and I never see Run mode in BaseS.
Jacob, is there a master reset, or is it possible for you to connect to my computer to try something more aggressive?
Thanks

Well Iā€™m not running into this with the same hardware so Iā€™d have to recommend an RMA and we can take a look at it here: https://ncd.io/contact-us/product-returns/

So we got your RMA in and loā€™ and behold it was stuck in configuration mode.

Weā€™ve manually altered the board to have the baud rate stick, updated the board file, and I went in and made the changes you posted here in this thread to your module. With the max baud rate 38400 and the commands.

I tested it personally and its working at that baud rate.

We were able to connect and send the commands as required and pleased to see the latency is minimal ( button push/ release and action). :slightly_smiling_face:
It seems I need to manually change to Run mode after storing changes - and when Run mode is set on the RC button configuration page, the main menu page is still red, in configuration mode.

  1. Do I need to be concerned about this?
  2. When we order more KFXā€™s for this purpose, how can we specify baud rate 38.4K?
    Thanks

Awesome, glad thatā€™s working for you.

  1. I think thatā€™s just a Base Station display thing
  2. Yes you can put in the order notes to ā€œConfigure the KFX for 38.4k baud - see Jacob for detail (KFX Serial Out to microcontroller)ā€

Production should catch that and act accordingly, but putting my name on there will give them a point of contact if they have an issue. Putting the link in reminds me of the issue in case I forget haha.