CAT command received in multiple part from an external APP

  • 1
  • Problem
  • Updated 4 months ago
I’m building at the moment a CAT USB to Bluetooth Interface to work with my iPad Pro with the app called RUMlog2GO. So, for the USB part connected to the Flex 6400, I’m sending CAT command from the TX slice at 9600 bauds and the app RUMlog2GO on my iPad is now following the frequency without any issue when I’m turning the Flex VFO. The app is using compatible Kenwood subset CAT commands; I only need to read and write the frequency, and the mode. I am not looking for more at the moment.



My problem is.... subset CAT string received from the FLEX always arrived in 1 part (stream) until the semi-colon at the end of the CAT sentence arrived.... and everything is 100% OK that way. But, the app sometime send the CAT sentence in 2 streams as you can see on the picture. At least, I would like to know WHEN Flex interpret the end of the CAT sentence ??? Should it be only when until the semi-colon arrived at the end of the CAT sentence ???



This another reason why I also need a debug window on the Maestro needs to be scrolled with my finger.

Thanks everyone for your help. I’m working closely with the app developper Tom DL2RUM, so all answers will be forward tp the developper to help us to concretize this project.
Photo of Jeff | VA2SS

Jeff | VA2SS

  • 35 Posts
  • 2 Reply Likes

Posted 4 months ago

  • 1
Photo of Robert Lonn

Robert Lonn

  • 286 Posts
  • 70 Reply Likes
I Love Breadboard projects.. Nothing like placing all the parts on the board, adding the jumpers, adding in DC Power, turning on the power, and OMG, it WORKS!!!! Thanks for sharing... One reason I selected Flex over say ICOM or Yaesu, is not only the overall COMPLEXITY of the product and SSDR, but the Great Engineers and people here on the community.. At age 70,, and still working,, my wife sometimes reminds me that I might be getting in over my head,, but so far the good lord has blessed me with good health and a good brain!!! :-)

Robert
Photo of Jeff | VA2SS

Jeff | VA2SS

  • 35 Posts
  • 2 Reply Likes
I noticed during a debug session that when I turn the Flex VFO dial, the CAT commands flow and the needed information is sent out ok.



But I change indeed change mode from the Flex, no CAT commands are sent to let external app to switch to another mode..... ??? It is a normal behaviour or I am missing something here ?? See picture of what the Bluetooth interface is receiving.... no trace of the mode change.... but plenty of frequency changes.

73 de Jeff | VA2SS
Photo of Jeff | VA2SS

Jeff | VA2SS

  • 35 Posts
  • 2 Reply Likes
I manually sent CAT command toward the Flex, like IF; and I have only getting a ?; answer from the radio. See picture.

Photo of Wayne

Wayne

  • 614 Posts
  • 84 Reply Likes
The ? indicates a bad command, if you just want the mode and vfo frequency why dont you just use the FA; command for vfo a or FB; for vfo b then for mode use MD; since the flex honors the kenwood ts2000 cat command set?
Photo of Jeff | VA2SS

Jeff | VA2SS

  • 35 Posts
  • 2 Reply Likes
I know, but why when I was sending command from a serial terminal I was still getting an error??
Photo of Wayne

Wayne

  • 614 Posts
  • 84 Reply Likes
The cat command sent or received is always terminated with the semicolon. Therefore you can filter on the semicolon for the end of each command. Note some commands take longer to be processed than others. I have found after sending a cat command it is good to wait 75 to 100 msec to check for the reply but I use polling not data received triggers. You may want to download the kenwood cat pdf manual.
Photo of Jeff | VA2SS

Jeff | VA2SS

  • 35 Posts
  • 2 Reply Likes
In the Flex ebug window, it was the Flex radio that was giving the ?; answer.... from a command which the syntax was ok....... Again, why when I was manually typing the correct sentence from a terminal program, I was still getting error ???

Thank you very much for your help..... I really want to succeed with this project.

73 de Jeff | VA2SS
Photo of Wayne

Wayne

  • 614 Posts
  • 84 Reply Likes
You could also try ZZMD and ZZME for the mode info and set.
(Edited)
Photo of Wayne

Wayne

  • 614 Posts
  • 84 Reply Likes
I always test my commands if there is any issue with procomm plus in terminal mode connected to the designated com port that way I can directly type the commands and see the response. Are you sure when u sent the commands they were in all capital letters? Such as ZZIF;
Photo of Jeff | VA2SS

Jeff | VA2SS

  • 35 Posts
  • 2 Reply Likes
Yes of course
Photo of Wayne

Wayne

  • 614 Posts
  • 84 Reply Likes
The ZZIF command contains a lot of returned info so this would be one instance when it will take a longer time to get a response maybe even more than 100 msec. If I get a chance I will try the ZZIF command using procomm plus and see what I get. I have the 6400m. It may be later in the weekend though things are crazy around here right now.
Photo of Jeff | VA2SS

Jeff | VA2SS

  • 35 Posts
  • 2 Reply Likes
OK thanks you for your help!!! Greatly appreciated!! I am doing similar here from a terminal window like you do with Procomm
(Edited)
Photo of Wayne

Wayne

  • 614 Posts
  • 84 Reply Likes
Jeff I didnt have any issues with the md or zzif commands they worked fine for me see screen shots.

Photo of Jeff | VA2SS

Jeff | VA2SS

  • 35 Posts
  • 2 Reply Likes
Thanks Wayne.... I will try too using SmartCAT just to watch the result.... all my tests were using the Maestro only.... no PC software. I think it could be Maestro related.... thought...
(Edited)
Photo of Wayne

Wayne

  • 614 Posts
  • 84 Reply Likes
I think I found the issue jeff as long as you use slice a all is well as soon as you only have slice b zzif no longer works as well as zzas or zzfb it doesnt look like any of the cat commands are working that refer to slice b or vfo b when you only have slice b or vfo b available. Switching using the zzfr command did not have any effect either. zzfj same does not work. Apparently an oversight from flex
(Edited)
Photo of Jeff | VA2SS

Jeff | VA2SS

  • 35 Posts
  • 2 Reply Likes
My setup consist in using the Flex6400 and a Maestro only... no PC at all. The CAT Bluetooth to USB interface is connected directly to a Flex USB port. The Bluetooth interface is talking directly the iPad Pro. So no SmartCAT software on a PC is involved in all my tests.

As all my CAT command failed, even the most basic one IF; could it be related to the fact that I am not using any « software » translator needed to interpret such CAT query between the iPad and the Flex or Maestro ????
Photo of Wayne

Wayne

  • 614 Posts
  • 84 Reply Likes
I have submitted the slice b vfo b issues as a problem for flex to address in the future. I only tried using the sdrcat interface I may try the network interface later but I suspect the result to be the same. I also have app studio 6 and may try an ipad app sometime in the future. Keep me updated on how its going

My email is kd5spx@gmail.com
(Edited)
Photo of Jeff | VA2SS

Jeff | VA2SS

  • 35 Posts
  • 2 Reply Likes
Greatly appreciated ! I will keep you informed. 73
Photo of Wayne

Wayne

  • 614 Posts
  • 84 Reply Likes
My mistake jeff i had to add another cat com port com port 5 and assign it to slice b to get the vfo b commands to work like they should. Im still learning also.
Photo of Jeff | VA2SS

Jeff | VA2SS

  • 35 Posts
  • 2 Reply Likes
Ok.... I am trying to setup my iPad with an app that send serial command over TCP to SdrCAT port running on a PC just to experiment and watch how it will react to my command.
Photo of Jeff | VA2SS

Jeff | VA2SS

  • 35 Posts
  • 2 Reply Likes
Sending a Serial CAT command from my iPad over TCP to SmartCAT software on port 5002 works.
Photo of Jeff | VA2SS

Jeff | VA2SS

  • 35 Posts
  • 2 Reply Likes
Sending from my iPad a CAT command over the Bluetooth interface directly to the Flex, without the use to SmartCAT software does not work..... seems to need of a CAT command translator....
(Edited)
Photo of Jeff | VA2SS

Jeff | VA2SS

  • 35 Posts
  • 2 Reply Likes
So, how to avoid the use of a PC with SmartCAT to work with a Flex and Maestro and an iPad only ??????
Photo of Wayne

Wayne

  • 614 Posts
  • 84 Reply Likes
So why couldnt you just send the commands from the ipad to the flex using tcp? I guess im confused as to why you would even use bluetooth, or maybe im not seeing the big picture.
Photo of Jeff | VA2SS

Jeff | VA2SS

  • 35 Posts
  • 2 Reply Likes
Because I do not want to use a PC at all..... at first, I was planning to control the Flex over a Bluetooth serial connection like we use to do with standard TRX for years...

But since I discovered I cannot talk directly to the Flex from the iPad using tradionnatal « CAT » language over Serial command.... I must figure a way to talk to the Flex in other way.

I’m experimenting at the moment sending Text command over TCP directly to Flex TCP port 4992 by using FLEX « language » command syntax.

Then I will be able to guide the developper on how to implement the support of the Flex radio to support basic command like QSY, etc...

I’m learning every minute at this moment.... Hi Hiiiiiiiiii !!️
Photo of Wayne

Wayne

  • 614 Posts
  • 84 Reply Likes
Oh okay so now your using the api sent to flex by tcp correct? If so thats similiar to the vb6 app I have been developing except im using the program i develop on a conputer and send the commands to the flex by tcp network so basucally the same commands but your sending them directly as text similar to using the free putty program where you can type your text inand send it directly to the flex.


Yes I took a short break from the api while I rearranged my shack but am getting back to it shortly so if you need some api level assistance I am somewhat familiar with some of it.
(Edited)