api set frequency

Developer discussions, new projects
Post Reply
meteorog
Posts: 2
Joined: Fri Jun 11, 2021 5:34 am

api set frequency

Post by meteorog »

Hi,
I have establish a serial communication with Bluetooth over serial on W10 with the mysondygo. I can see the output pull from the mysondygo.
like 2/RS41/405.703/S1940875/127.5/100/0/4373/-1/2.30/o

Who can i input command as the bluetooth serial is always pulling output command?
I would like to set a new frequency without using the app with the api command o{f=404.2}o

thank you in advance for your feedback,
Gonzague
meteorog
Posts: 2
Joined: Fri Jun 11, 2021 5:34 am

Re: api set frequency

Post by meteorog »

finally, after a quick wokaround, itworks fine with a basic python command like:

import serial

ser = serial.Serial('COM4', 9600)
print(ser.name)
ser.write(b'o{f=402.5}o')
ser.close()

and it's sufficient for my needs. (i don't know why is dosn't work on a terminal like putty or hyperterminal)
IZ4PNN
Site Admin
Posts: 94
Joined: Wed May 26, 2021 5:57 am
Location: Conselice
Contact:

Re: api set frequency

Post by IZ4PNN »

Hi meteorog,
you can send commands whenever you want, ignore the incoming data.

The serial port also works with classic terminals.
73
Mirko Dalmonte (IZ4PNN)
MySondy Developers Team
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests