Comments (14)
@vlad2005 I'm preparing a new release where that bug is fixed, in the meantime
Open the file Packages/Deviot/libs/PlatformioCLI.py
(ST Menu > Preferences > Browse Packages
)
Replace the line 664:
if(port and "COM" not in port and "esp" not in mcu):
for
if(port and "esp" not in MCU and "tty" not in port and "COM" not in port):
from deviot.
ha!
same thing happens on Mac.
thanks for the heads up, @gepd :)
from deviot.
Your fix doesn't seem to work on Mac. Bummer :D
from deviot.
I've been playing with it a little and it seems to also always return ATTINY85
from self.getMCU()
selected = env_data[0]['mcu']
, I suppose
how would I revert to the previous build of DevIoT?
it worked great :)
from deviot.
@gepd
I tried your suggestion but got error (relevant part):
NameError: global name 'MCU' is not defined
LE:
I change to this (MCU -> mcu):
if(port and "esp" not in mcu and "tty" not in port and "COM" not in port):
I got error:
08:36:47 Uploading firmware | avrdude: ser_open(): can't open device "/dev/ttyS0": Permission denied`
My usb to serial adapter is on /dev/ttyUSBx and have permision fixed using udev.
After that started editor as superuser. Then got this error:
08:41:03 Uploading firmware | avrdude: ser_open(): can't set attributes for device "/dev/ttyS0": Inappropriate ioctl for device
So what to do next?
from deviot.
Sorry about that guys, please download this pre-release, you shouldn't keep seeing that error.
If you find any other problem, I'll thank your report, I'm doing the last tests before the launch.
PD: You only need to unzip the file and overwrite Deviot
in the in Packages
folder
from deviot.
Thanks, @gepd , I'll give it a shot.
meanwhile I found that the culprit in my case is that json.loads()
doesn't seem to return a dict but just leave the JSON structure intact, hence returning the first item env_data[0]
which is
{
"id": "trinket3",
"url": "http://www.adafruit.com/products/1500",
"platform": "atmelavr",
"vendor": "Adafruit",
"rom": 8192,
"fcpu": 8000000,
"ram": 512,
"mcu": "ATTINY85",
"name": "Adafruit Trinket 3V/8MHz",
"frameworks": [
"arduino"
]
}
I'll let you know how this release handles it :)
from deviot.
ok!
had to do some cleanup but at some point it worked.
what I did:
- disable keep temp files
- clean
- delete platformio.ini
- quit Sublime Text 3
- launch Sublime Text 3
- select board
- select serial port
- build
- upload
it works now!
thank you for your support, @gepd :)
from deviot.
Thanks for your work!
- is better to delete Deviot file form this location:
~/.config/sublime-text-3/Packages/User/
- I fixed the permision problem by adding user to groups uucp and dialout
sudo usermod -a -G uucp,dialout username
- Now just works :)
P.S. I noticed a little problem. After upgrading menu disappeared, offering only option to change the language. After I selected the "English" menu reappeared.
Big thanks!
from deviot.
Thanks for your reports guys, the last platformio update changed some json structure so it broke some things.
I'm doing now the test to avoid all that reset stuff.
from deviot.
The last release is available now (1.2.3)
Any problem with the menu should be recovered automatically (If isn't recovered restart ST will do it)
Thanks for your feedback!
from deviot.
sorry to post on this one again, @gepd
I checked the code for the latest release, and there's one more issue about the if
condition in mDNScheck()
on Mac, there's by design an alias for the tty
port which is cu.SERIAL_PORT_ID
, hence in the list you'll always have that port as well, but it's not handled by your if
statement, hence causing that same OTA error.
the condition should be
if("esp" not in MCU and "tty" not in PORT and "cu" not in PORT and "COM" not in PORT):
the cu.*
alias is the first one displayed in the list (see attachment), hence you can accidentally pick that if you don't know about the condition.
from deviot.
Thanks again @ubidefeo,
I've fixed this to the next release, if you have any problem or to make sure you don't get that error replace the if by:
from re import search
if(search(r"[\d{3}\.]{3}", PORT) is not None and "esp" not in MCU.lower()):
Now is checking if the port is an IP instead to check the serial ports
from deviot.
interesting solution :)
thank you
from deviot.
Related Issues (20)
- Support for python3 HOT 6
- Poorly colored .ino source
- bad cpu type in executable
- As platformio now requires python 3.x while Deviot requires 2.x, is Deviot no more ? Any work-around ? HOT 3
- Most buttons do nothing HOT 1
- Japanese Language missing
- the board list won't open HOT 4
- Python 3, pio cannot upgrade? HOT 1
- Sublimetext 4 no deviot HOT 4
- ST4 install library fail HOT 5
- Guide: Running Deviot with ST3 / ST4, PlatformIO 5, and Python 3.6+ HOT 10
- OSX: Serial ports not showing on big Sur HOT 2
- ST4: serial monitor footer colors
- not reconigced
- MacOS examples shows nothing
- can't see devio menu HOT 4
- Guide: Fix Deviot menu & syntax highlighting missing HOT 1
- python HOT 1
- Select board HOT 5
- Select Board Not Working After Installing Deviot HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deviot.