Arduino Uno Serial Monitor - arduino-uno

What is the best way to be able to type in a statement like "Select Process 1" in the serial monitor and have it respond with predefined statements such as "The heat is on"? I have tried parseInt and strings, but cannot get it to do what I want. Any ideas would be great!

Try this software. It is called Processing. You can send commands from your PC or mobile phone. And you program Arduino to do what in which statement.

Related

No data on com1

I am running a DOS program in DB (only emulator that works)
This program makes us of com1 RS232 but I get no data activity on the port.
This setup works with other software and trying to localize weather this is DB or the program.
Specifics are the DOS program is a programming utility for radio. This talks to the radio over com1
and requires an interface. Monitoring com1, there is no data, TX or RX.
Noted, this setup works with a different software, but fails. The radio needs this DOS program to work properly.
Thanks people.

Terminal program to CSV

I have a little project at work, but I'm stuck in my tracks at the moment. We have quite a few Motorola MC1000 hand held barcode scanners at work, doing nothing at the moment, and I want to get them working again for stock takes and what not.
Now, these were pre-installed with a program called MCA, which is a simple barcode scanner and quantity program, which I'm not sure where it saves this information (maybe in memory), but I am unable to get the data from just connecting the device via USB.
On the program, there is a section called "send data" which then outputs data via COM1 port. I have managed to intercept the old program we used to read the barcodes (there is no way to export from this old program), so I need something new, where I can export barcode, quantity via CSV.
Using serialmon, I have found that I can read the barcode, plus some extra confirmations? then the quantity, plus more confirmations, then the next barcode.
Now I need to know if there is a program out there already that can connect to the com1 port, and then read/respond to the device to download all the barcodes and quantities and then export this to a csv, or even if a simple command prompt bat file could do this?
After some testing earlier, I know the device needs to receive an ack in some way as it times out without this (I could manually do this by sending %0 on a regular basis).
Thanks in advance.

Debugging stm32f4 via bluetooth

I'm rather unexperienced on the field of microcontrollers, I come from a Java background so the question might seem a bit noob but I didn't find much information on this.
So is it possible to debug an STM32F4 board via bluetooth (using eclipse or some othe IDE)? And if so could you send me some links that might help? We're building a robotic car controlled by a discovery board and debugging using an USB cable is not really an option if we don't want to disassemble the whole stuff every time something goes wrong. Hence this would really come in handy. So any help is appreciated
For doing this you would need to find a "Bluetooth Enabled" Debugger. I have never seen any and not sure whether there exists such thing or not.
I would suggest you one thing:
Assuming you have bluetooth connectivity between your board and your Machine,
Insert Debug strings: Send some strings from your board to your PC via Bluetooth. These strings will give you what's going on in Circuit.
For example, After Initialization, send "Init Completed" and like that. You can see these strings and see what's wrong.
I usually do this for my Wireless Device.
What you're wanting to do is really not practical; you're coming at this from way too high a level and trying to imagine the system as if it were running an operating system from the word go.
When you get the STM32 it as empty shell; you need to program it to do what you need to do and the only [sensible] way to get register-level debugging is to use a JTAG interface.
If, and this is a big if, you get it working reliably, but just want to give some debug information back while it is running, you could write a load of routines within the code to send out debugging messages when it enters certain parts of the program - and send it out over Bluetooth - but this is nothing like what you're used to single stepping through your Java code with Eclipse. If you want to do that kind of thing, you are going to have to put a little connector on that allows you to connect your JTAG or two-wire debugger cable to the processor. Even then, when you do that, you will be completely resetting your program and not simply single stepping through from where it went wrong.
You could insert a monitor program within your program to send out register values, program status etc over Bluetooth, but you still have to write the inital code and the only way to do this with out a ridiculous amount of trail and error is via your JTAG or two-wire interface.
Would this product work? It's a "IOGEAR Bluetooth Serial Adapter, GBC232A" for connecting to a serial port over bluetooth. I'm interested in wireless debugging too because my surface-clone dev computer only has one usb and this seems like it could be convenient over a tangle of usb cords and a usb hub. I have zero experience with any of this, so maybe you could validate or invalidate it as an option. I figure it just needs a proper serial connector wired up on the board and power from on-board?

Controlling Arduino Ethernet with a Separate Webpage

I have an arduino uno and ethernet shield and have a code written to access it over my network and click on ON or OFF and it will turn the pin on or off. I want to be able to make a schedule and a more aesthetically pleasing page to do it, so I am trying to make a webpage that has a scheduling function in order for me to set a date and time and then for the page to click the ON button, on the page hosted by my arduino board.
Any ideas?
It sounds like you're looking for a way to schedule tasks on the arduino, similar to the way cron is used in Linux for scheduling tasks.
There are a few cron implementations for arduino, such as this one

Windows simulate network cable loss

I'm trying to program some tool and i want to simulate a network cable lose with it.
So i want to get the same effect like i unplug the networkcable from my computer and plug it in again. It's not the same as the '/renew' / '/release' commands. When i disconnect / connect it manualy it look likes windows remember some things and it's connected very fast back again.
Is it possible and maybe how to do it in code?
Thank you very much!
edit:
I found another program that just blocks all ports, this is ok for me too but how to do in code :).
You should set the fetch and send data bitrate to 0
Alternatively you could just set the receive bitrate to 0 bits and leave the send untouched this would also simulator the same.
Check out a great little tool called WANem . You can use it to simulate different WAN scenarios. Loss of connectivity is one possibility, but also jitter, noise and more on the line. Even simulating a dial-up connection. Runs as a bootable ISO and very easy to use.

Resources