Resetting GRBL command not working in arduino IDE serial monitor - arduino-uno

I am testing Grbl CNC Shield with my Arduino Uno. Everything is working except for the ctrl-x command. I tried on the Arduino IDE serial monitor but it appears that it dont recognize.
Does anyone how to solve this?
Any help would be appreciated.
I Tried:
Holding Ctrl with x and nothing happend.
sending ^X or ^x but the console responded "Error: Excepted command Letter"
sending 0x18 on the console and it responded "Error: Bad Number Format"
When the reset command is triggered and it's in the Alarm lock it should reset the grbl and show that message again. This would happen too if the grbl is running normally

cnc_ard = serial.Serial('COM11',115200)
y= "\n" #(ctrl-x)
cnc_ard.write(y.encode())
Here is what I did with Python. Open cmd from there just press ctrl + x. It will come there^X. After entering it will show there . From there copy this inside note+. It will come there "CAN" like this. Copy that and enter this in Serial monitor. Please check these pictures attached below.

in python the comand 0x18 is b'\x18'

Related

Zebra LP2844 will not print EPL2 commands ( Page mode ), only EPL1 ( Line mode) works

I have an LP2844 that seems to take a print job just fine, but ignores it, I don't get any errors, and no change to the LED on the printer to indicate that it got the message.
The diagnostic prints out when I hold the button down at start up, so I knew the print head and things worked.
I managed to find that you could use the button to switch the printer to EPL1/Line Mode, and when I did that, all the text I send to it prints out, but none of the drivers are written for this anymore.
So I know the print head works, the USB cable works, and so on, because I can print in line mode, but when I switch it back to Page mode, it stops responding to commands.
I tried to do a factory reset as described on Zebra website, but when I hold down the feed button, it just keeps feeding, and never does the blinking that is described there.
Has anyone seen anything like this.
What you're experiecing looks like an issue with the EPL syntax.
Does the led blinks when you send the data and have you also checked if the EPL syntax is correct?
Have you tried to use zebradesigner to create and print a label?

ln[*] in Jupyter notebooks when using the %%bash magic

I'm working in Jupyter notebooks, when I use the %%bash magic I get the ln[*] (which means the kernel is busy) instead of the ln[number]. The kernel seems to stay busy until I restart it, and it always does this when using %%bash.
It was working fine until last week, when we were moved to Windows 10 pro with a new AVG antivirus - could this be it?
Any help would be great!
A possible cause is you use the %%bash magic command and not quit with "quit" command,for example the execution result will ask you to keyboard a "ipdb" message when you use "%debug" command ,if you skip this step and execute other cells ,you will get the "[*]" signal and it means those cells will not execute unless you restart the kernel,hope helpful.

Accidentally deleted IOS on 3750G Switch

I accidentally deleted the IOS on 3750G Switch. As a result, I am thrown in the ROMMON mode when I console into the switch via Putty. I tried the following:
1) I set up my static IP as 192.168.168.167 255.255.255.0 with default gateway as the same as my switch's IP 192.168.168.168
2) I set the IP on the switch as 192.168.168.168 255.255.255.0 and default gateway as 192.168.168.167. I set the TFTP Server's IP same as my laptop's static IP.
3) Then I typed tftpdnld after I placed the new IOS on the to TFTP root folder.
That failed when I did all this on Putty. The switch was not able to read the Ethernet cable.
By the way, the show command does not work on ROMMON mode via Putty
Furthermore, the show command does not work on ROMMON mode. I have the IOS that will be uploaded into the switch. But how do I do that? Please help. Thanks. I am doing all this via console. Here is the site I used as a guide: http://www.mikcx.com/cisco-ios-deleted-by-mistake-recovery-guide/
I got it fixed and followed the rules below (I used ExtraPutty!!)
There are times when the IOS on a switch may crash and (as a last resort) you need to use the painfully slow Xmodem transfer to save your life. I bought a 3550 a while back and that is precisely what happened with me. Without much else to try, I decided to give Xmodem a shot. I want to share how this can be used and I hope that this may be useful to others.
Since the device is in ROMMON, there’s not much that you can do. There is, however, a method to transfer another IOS using a direct console connection with a PC (the transfer is over your console cable itself). This wonderful little thing is called Xmodem. Now the rate of transfer depends on the baud rate that you set for your console connection. I tried this with baud set to 9600 and man, it seemed like it would take over 3 hours for the transfer to complete. With a little trial and error, I found that the maximum baud rate I could set it up to work perfectly with was 57600. You can set the baud rate in ROMMON using the set BAUD command. See below:
switch: set BAUD 57600
This MUST also match on the terminal program setting as well. So (I’m using TeraTerm) under Setup -> Serial Port, set the baud rate to match whatever you set it as in ROMMON. Now we’re ready to transfer the file. The command is very straight forward:
switch: copy xmodem: flash:c3550-ipservicesk9-mz.122-44.SE6.bin
Once you press enter, you see the following:
Begin the Xmodem or Xmodem-1K transfer now…
C
At this point, you need to choose the file location from the terminal program. Go under File -> Transfer -> Xmodem -> Send and choose the file that you wish the transfer. The transfer will start and you will see a transfer window pop up. I made sure when the following image popped on ExtraPutty terminal ---> flash:c3750-ipbasek9-mz.150-2.SE8.bin Begin the Xmodem or Xmodem-1K transfer now... CCCCCCCCCCxmodem and I quickly went to the panel and click Xmodem located at the panel on top and click send and drag the c3750-ipbasek9-mz.150-2.SE8.bin file and have it sent through. Hence it explained why I kept get an I/O error, which made sense. Input error because the switch was waiting for me to send it the OS file.
Please take a look at this link for future reference and many thanks to this author who wrote this up: https://supportforums.cisco.com/blog/151336/loading-ios-switch-xmodem

PyCharm: can't get input() from keyboard while debugging / stepping through

I can't figure out how to input from my keyboard while debugging the program. The only place I can write something is on 'Console', but when I do, a message pop ups saying "Pause the process to use comand-line".
It's been hours, I couldn't find a solution to this. Thanks in advance.
When running the program all works fine, I can write the input normally.
But when debugging, I get stuck when program reaches "input()" line.
Here's link that should solve your problem. The issue is that your debugger is defaulting to the python console.
PyCharm: How to debug `raw_input()` input from keyboard?

How to normally start process using wxWidgets

According official manuals, i tested this code:
wxProcess * proc = wxProcess::Open("C:\\windows\\notepad.exe");
but this code doesn't work properly, i see working notepad process in System Manager, but there is no notepad windows and etc. Also if i start console application - no text neither in new console window nor in mine.
How to fix that?
Thanks!
If you need neither IO redirection nor process termination notification, the simplest way to launch a process is to use wxExecute with wxEXEC_ASYNC flag.
Provided code works fine for me with any other application, e.g. calc.
wxProcess * process = wxProcess::Open(wxT("calc"));
wxLogDebug(wxT("Process: %s"), process != NULL ? wxT("OK") : wxT("Error"));
Shows OK and calc window appears.

Resources