BusPirate / Bus_Pirate

Community driven firmware and hardware for Bus Pirate version 3 and 4
625 stars 130 forks source link

Syntax error at char 2 #128

Open ArtificialAmateur opened 5 years ago

ArtificialAmateur commented 5 years ago

When I boot up the BPv4 and tap in with picocom this command is sent: ATE1 E0 ATE1 E0 ATE1 E0 ~x~~x~

Which results in a self-test to start and to print out Syntax error at char 2

Bus Pirate v4
Community Firmware v7.1 - goo.gl/gCzQnW [HiZ 1-WIRE UART I2C SPI 2WIRE 3WIRE KEYB PIC DIO]
DEVID:0x1019 REVID:0x0004 (24FJ256GB106 UNK)
http://dangerousprototypes.com
wiperpaul commented 4 years ago

Same Issue here thought it was random pattern but exact same as you.

wiperpaul commented 4 years ago

for future reference these commands seem to be sent by modemmanager try: systemctl stop ModemManager

hlovdal commented 3 years ago

The more permanent fix to tell ModemManager to ignore the device is to create a custom udev rule, say /etc/udev/rules.d/buspirate.rules.

The following is to have MM ignore a mobile phone, but it is trivial to replace the ids with the ones used by buspirate.

# http://linux-tips.org/t/prevent-modem-manager-to-capture-usb-serial-devices/284/2.

#$ lsusb | grep Sony
#Bus 007 Device 006: ID 0fce:d0d9 Sony Ericsson Mobile Communications AB 
#$

#udevadm control --reload-rules

ATTRS{idVendor}=="0fce" ATTRS{idProduct}=="d0d9", ENV{ID_MM_DEVICE_IGNORE}="1"