Keyboard Shortcuts
Likes
- HBTE
- Messages
Search
Re: ADE25MH Mixer - warning
#tinysa
On Sat, Jan 25, 2020 at 06:08 PM, m0wid wrote:
Hi group Hi all,? Thanks for the info on the ADE-25MH's and ESP32.? Might not be pertinent, though wondering since I inventoried my MCU's, have two ESP32's and was wondering about using before investing in another MCU like the Zero or Blue Pill or an even more expensive board.? I do have an AtomicPi that might be a candidate also.? I want to compare with VS Code with PlatformIO, C/C++, C/C++ Intellisense, Native Debug and Arduino IDE extensions.? Wondering if anyone is using and what version are being used? |
Re: New tinySA.exe uploaded
With some poking around on the web, it appears that the serial read buffer is 64 bytes.
toggle quoted message
Show quoted text
So Serial.readStringUntil() might be suitable for grabbing a newline terminated tinySA command from the host. The timeout on that is always in effect, though Serial.setTimout() takes a long (32 bits) to specify how many milliseconds. and 2**32/1000/60/60/24 is almost 50 days.? Though they don't bother to actually say how long the timeout can be. I can easily imagine they arbitrarily break the timeout after a few seconds. They do limit delayMicroseconds() to 16383 microseconds max, I have no idea why. This lack of concise documentation is disturbing, I'd never know for sure if I had handled all the edge cases. Jerry, KE7ER On Mon, Jan 27, 2020 at 03:33 PM, Jerry Gaffke wrote: There's a lot left unsaid in the Arduino documentation. |
Re: New tinySA.exe uploaded
There's a lot left unsaid in the Arduino documentation.
toggle quoted message
Show quoted text
For example, from? ? " Serial.readString() ?reads characters from the serial buffer into a String. The function terminates if it times out"So how big is the buffer? Exactly what happens when it gets full? Seems best on Arduino to only ask the Serial library to do low level character IO one byte at a time. Do everything else in code you have some control over.? Jerry, KE7ER On Mon, Jan 27, 2020 at 01:33 PM, <erik@...> wrote:
The problem is in the USB serial driver. If you give a large buffer to send it crashes. With the Arduino monitor you get very small transfer. |
Re: New tinySA.exe uploaded
Hi Group.
I also had not realised the Logger window had to be open. With the logger window open I can reduce the speed down to 0 and it works for a single scan.? With the logger window closed it hangs.? If I choose run with the logger window open then it manages a few sweeps then hangs. The data is sent from the Arduino at the same speed regardless of whether or not the logger window is open, so it must be a problem at the PC end.? The arduino is sending the data very much faster than the display update in the Tiny-SA application.? A 300 point sweep takes < 1 second to send the data.? The tiny-sa.exe takes around 12 seconds to plot it. Moving the mouse over the sweep slows it to almost stopped, but still the data in the buffer is being handled and the sweep continues. This is the data from the logger window at a hang: <<x37 <<x39 <<x42 <<x42 <<x42 <<x46 <<x37 <<x44 <<x43 <<x41 <<x41 <<x42 <<x41 <<x45 <<x41 <<x41 <<x46 <<x41 <<x42 <<x43 <<x46 <<x42 <<x55 <<x112 <<{ <<Steps: 300_ <<a VFO: -1_ <<x29300 <<E <<time pr step: 0_ <<Stop: 533920533_ <<Start: 433920433_ <<VFO: 1_ <<Width: 10000_ <<Output frequency: 433920000_ <<VFO: 0_ <<Output frequency: 483920483_ <<VFO: 1_ <<Parameter? 6 = 0_ <<Parameter? 5 = 0_ <<} <<x43 >>m >>s300 >>e-1 >>t0 >>b533920533 >>a433920433 >>v1 >>w333 >>o433920000 >>v0 >>o483920483 >>v1 >>p6 0 >>p5 0 <<x46 I tried a 1000 step single scan with speed zero and Logger Window open that worked (very very slow to plot - the data comes from the ESP32 in around 2 secs).? The logger window slows things considerably, which is strange as that should not be a very time consuming task on a modern PC. My thought is that the serial comms is OK as lots of data seems to be buffered OK, but there is a problem in the tiny-sa.exe.? Is there a lot of maths going in in the application or is it just converting the data values to db and plotting? 73 Dave M0WID |
Re: New tinySA.exe uploaded
¿ªÔÆÌåÓýYES.How do you get away with it with your 32bit Zero?? It does it all in hardware and is fast enough? 73, Gary WB6OGD On 1/27/2020 1:33 PM, erik@...
wrote:
The problem is in the USB serial driver. If you give a large buffer to send it crashes. With the Arduino monitor you get very small transfer. |
Re: New tinySA.exe uploaded
The problem is in the USB serial driver. If you give a large buffer to send it crashes. With the Arduino monitor you get very small transfer.
-- HBTE Files section:?/g/HBTE/files Erik, PD0EK |
Re: SI4432 Module Modifications
#tinysa
I have one modified module to show. Will take some pictures and use example schematics (there are many different filter configurations being used).
Will take some time W.r.t to boxing up. YES. In particular the low pass filter, mixer, band pass filter and RX module. I can see local FM broadcast and mobile phone signals without connecting anything. Also the Spurs will reduce with shielding -- HBTE Files section:?/g/HBTE/files Erik, PD0EK |
Re: SI4432 Module Modifications
#tinysa
Dan,
I am just like you.. wanting to be a real RF engineer but have a long way to go. Every project I build I get more of an education than I even expected.. they never work the first time ;-) I say build the tinySA!? Now that mine is basically working I am really excited. I too am wanting ideas about boxing/shielding it up. And Erik, modifying the Si4432 modules, more info would be appreciated. Mine do not have the final filter caps stuffed so I am part way there. From your schematic, should we remove the TR switch on the LO one? I know we are working you to death, take your time we can wait, hi hi.. 73, Gary WB6OGD |
Re: New tinySA.exe uploaded
Joerg,
NO, I missed that..? well I remembered something about reducing it, I know I tried 64 without any change.. BUT.. 32 WORKS!!!! You are good!? THANK YOU VERY MUCH! I will have to try to understand this..?? There is enough dynamic memory for 512.. so says the compiler.. Bigger buffer spits out data too quickly? 73, Gary WB6OGD |
SI4432 Module Modifications
#tinysa
Dan Reynolds
Erik, I don't consider myself to be anything close to an RF engineer but VNA's and SA's have fascinated me for years. I think I'm going to give it a try making up your tinySA project.?
I was wondering if you posted a pic of the modifications to the SI4432 module. I did follow your links to the modules page at electrodragon. Seems like there is no shortage of those modules available - LOL. Perhaps there is a picture of a modified SI4432 somewhere? I'm anxious to give this a go... I was curious if you shielded any of these boards or boxed them up? Would boxing up each module help at all? In the past when I've "boxed" things up I ended up changing things - like the VFO that I put a lid onto - no it wasn't temperature, it was the PCB lid that moved the frequency - LOL.? Several years of Dayton shopping - I now have a selection of copper strapping and thin sheets that are much easier to work than PCB. And since they are so thin - easier to solder. -- Dan Reynolds - KB9JLO |
Re: New tinySA.exe uploaded
Here is from the Nano:
<<x54 <<x49 <<x49 <<x57 <<x51 <<x54 <<x52 <<x53 <<x76 <<x52 <<x54 <<x51 <<x53 <<x54 <<x52 <<x61 <<x57 <<x81 <<x111 <<x96 <<x229 <<{ <<Steps: 100_ <<time pr step: 90_ <<Stop: 533500533_ <<Start: 433500433_ <<VFO: 1_ <<Output frequency: 433500000_ <<VFO: 0_ <<Output frequency: 483500483_ <<VFO: 1_ <<Parameter? 6 = 0_ <<paramenter=6_ << -30_ <<Parameter? 5 = <<Gattenuate=60_ >>e-1 <<callin atten with60_ >>w1000 <<paramenter=5_ >>p6 0 >>p5 -30 empty Plot is just over to the left..? not enough points to plot! Gary |
Re: New tinySA.exe uploaded
Erik,
We are getting somewhere! I did not know you have to open the log window before doing a sweep. When I do, I see the Nano IS sending back good data.. only problem is it stops at about 10 (doing sweep of 100). This is why I see only a section on the left of the graph!! Something is timing out? Doing it in Mockup like you asked, I get this: >>o483500483 >>v1 >>m >>s100 >>e-1 >>t90 >>b533500533 >>a433500433 >>v1 >>w1000 >>o433500000 >>v0 >>o483500483 >>v1 >>p6 0 >>p5 -30 empty Gary |
Re: New tinySA.exe uploaded
Test option:
When you start sa.exe and activate file/connect... , do you also see "Mockup"? Click on mockup and OK Then view/view log Log window opens with "empty" Then click "RUN" and see if the log window populates. The mockup scanner does not log datapoints or replies but the rest should be there -- HBTE Files section:?/g/HBTE/files Erik, PD0EK |
Re: New tinySA.exe uploaded
I use the same sweeper core code also on a nano using a somewhat different windows executable (TAPR-VNA)
No issues. Extremely weird -- HBTE Files section:?/g/HBTE/files Erik, PD0EK |
Re: ADE25MH Mixer - warning
#tinysa
On Mon, Jan 27, 2020 at 09:03 AM, wb6ogd wrote:
I know about the other log window.. it just says EMPTY.The log window will only be populated when activated so you first have to open the log window and then do a sweep ? -- HBTE Files section:?/g/HBTE/files Erik, PD0EK |
Re: ADE25MH Mixer - warning
#tinysa
That makes sense.
toggle quoted message
Show quoted text
I only ask because pretty much all SA plots I see in the forums seem to be linear. Can't recall ever seeing a log plot from an SA. Jerry On Mon, Jan 27, 2020 at 10:11 AM, <erik@...> wrote: Certain measurements are best done in log sweep but acceptable if not available as with more points you can display In log scale |
Re: New tinySA.exe uploaded
Thanks Erik,
Unfortunately new version gives same results for me. One think I have noticed is when I unplug/plug the USB cable, then open tinySA.exe I get a pop up error window that says "no sweeper found".? I say ok, then it pops up the PortSelector window with my COM5 already highlighted.. I say ok and the main window pops up with a noise graph (like it is in Mockup mode?). If I push Run, the tx/rx leds on nano do blink, power supply does change current but log window doesn't show any communication. I am thinking it might be something at startup.. With Nano code, the info comes out immediately, maybe it should wait for the .exe to ask for it? I see in the .ino in setup: ? Serial.begin(115200); // 115200 #if defined(ARDUINO_ARCH_SAMD) //? while(!SerialUSB); // Uncomment this line if you want the Arduino to wait with starting till the serial monitor is activated, usefull when debugging #endif So I have tried putting in: ?delay(10000);? //gaw experiment OR ? while(? Serial.available() == 0)? //gaw exp BUT still nothing... Thanks and 73, Gary WB6OGD ? |
Re: ADE25MH Mixer - warning
#tinysa
Certain measurements are best done in log sweep but acceptable if not available as with more points you can display In log scale
-- HBTE Files section:?/g/HBTE/files Erik, PD0EK |