Go to advanced search

by Messiry
Fri Feb 10, 2017 12:39 am
Forum: Beginners
Topic: rs-485 using max485 & level shifter(3.3v-5v)
Replies: 2
Views: 1600

Re: rs-485 using max485 & level shifter(3.3v-5v)

yeah that is why i used the level shifter , the chip on that module are max485 , 5v , so if i put a level shifter it should work , it's only making the 3.3v to 5v and vice versa ?
by Messiry
Thu Feb 09, 2017 11:28 pm
Forum: General discussion
Topic: UART ports
Replies: 7
Views: 8297

Re: UART ports

check this link :) hope it helps :) viewtopic.php?t=163823
note , ser.write in py2 works ok , in py3 it needs some changes as py3 string is not UTF-8 so u must search " how to ser.write in py3"
by Messiry
Thu Feb 09, 2017 11:21 pm
Forum: Beginners
Topic: rs-485 using max485 & level shifter(3.3v-5v)
Replies: 2
Views: 1600

rs-485 using max485 & level shifter(3.3v-5v)

hello forum , i'm in a project where i use the pi as master node connected to a rs-485 network . so my question have any one used this https://uge-one.com/index.php?route=product/product&product_id=119&search=rs485 , so there are multi atmega connected and the pi is the master controlling the bus . ...
by Messiry
Fri Jan 13, 2017 12:43 am
Forum: Beginners
Topic: flask webserver not responding
Replies: 0
Views: 626

flask webserver not responding

i'm having trouble with POSTMAN (an http client app ) on my laptop running windows 10 , it gets no response from Flask web server which is running on pi3 , i don't think that the pi is the problem because i tried to access the server ( using a false data ) it responded in 404 not found which is a re...
by Messiry
Fri Oct 28, 2016 11:52 pm
Forum: Beginners
Topic: flask web server issue
Replies: 0
Views: 319

flask web server issue

hello there , i'm having an issue with flask web server & i hope to find a solution here , i'm trying to use GET & POST methods from an html page but whenever i try to run the server this error appears File "app.py", line 23, in <module> @app.route('/login', methods['GET','POST']) NameError: name 'm...
by Messiry
Wed Oct 26, 2016 9:27 pm
Forum: Beginners
Topic: UART pi3
Replies: 25
Views: 6391

Re: UART pi3

Ok thanks Joan & Dave , wish the best for u and many many thanks for enlightening me
by Messiry
Wed Oct 26, 2016 7:05 pm
Forum: Beginners
Topic: UART pi3
Replies: 25
Views: 6391

Re: UART pi3

Thanks Dave , i will make another note that i will be doing Pi3 to AVR , actually a Bus that multi avr are connected to , so do you think i would need the FULL uart ? All i need is stable 8 bit no parity 1 Stop bit over 115200 ( which we just used ) , i want the project to be as stable as possible ,...
by Messiry
Wed Oct 26, 2016 5:55 pm
Forum: Beginners
Topic: UART pi3
Replies: 25
Views: 6391

Re: UART pi3

WOW , Finally :D :D Opened port /dev/serial0 for testing: Sent 15 bytes Received 15 valid bytes, Serial port /dev/serial0 working Opened port /dev/ttyS0 for testing: Sent 15 bytes Received 15 valid bytes, Serial port /dev/ttyS0 working i knew that you wrote in python 2 but i imagined that adding the...
by Messiry
Wed Oct 26, 2016 5:13 pm
Forum: Beginners
Topic: UART pi3
Replies: 25
Views: 6391

Re: UART pi3

pi@raspberrypi:~ $ ls -lh /dev/serial0 lrwxrwxrwx 1 root root 5 Oct 26 16:54 /dev/serial0 -> ttyS0 pi@raspberrypi:~ $ ls -lh /dev/ttyS0 crw-rw---- 1 root dialout 4, 64 Oct 26 16:54 /dev/ttyS0 yes this showed up as you said it would . and the cmdline.txt was indeed set back to default and a 'enable_...
by Messiry
Wed Oct 26, 2016 4:31 pm
Forum: Beginners
Topic: UART pi3
Replies: 25
Views: 6391

Re: UART pi3

pi@raspberrypi:~ $ ls -lh /dev/serial*
lrwxrwxrwx 1 root root 7 Oct 26 16:03 /dev/serial1 -> ttyAMA0


that is weird , i ran 'ls -lh /dev/serial*' again , and the serial0->ttyS0 disappeared ???????!!!! i've done nothing .
by Messiry
Wed Oct 26, 2016 3:53 pm
Forum: Beginners
Topic: UART pi3
Replies: 25
Views: 6391

Re: UART pi3

From the 'port failed' message, I think you have a permissions problem. Can you post the output off: ls -lh /dev/ttyS0 groups We are nearly there, Dave. thanks for your patience , and here are the results pi@raspberrypi:~ $ ls -lh /dev/ttyS0 ls: cannot access /dev/ttyS0: No such file or directory p...
by Messiry
Wed Oct 26, 2016 3:09 pm
Forum: Beginners
Topic: UART pi3
Replies: 25
Views: 6391

Re: UART pi3

I made sudo nano /boot/config.txt and i found 2 enabl_uart=1 ,
i deleted one of them , saved and rebooted and still the same error of ( faild at ttyS0 & serial0 )
by Messiry
Wed Oct 26, 2016 2:56 pm
Forum: Beginners
Topic: UART pi3
Replies: 25
Views: 6391

Re: UART pi3

Can you post the results of the following commands: ls -lh /dev/serial* grep uart /boot/config.txt uname -a Also, have you ever used the 'raspi-config' program either in the GUI or from the terminal to enable or disable the serial port since you last downloaded Raspbian onto the SD card? Thanks, Da...
by Messiry
Wed Oct 26, 2016 11:23 am
Forum: Beginners
Topic: UART pi3
Replies: 25
Views: 6391

Re: UART pi3

>>> Failed at /dev/serial0 Failed at /dev/ttyS0 >>> this when i tried your code . i changed serial0 to serial1 and it gave me this error >>> Opened port /dev/serial1 for testing: Traceback (most recent call last): File "/home/pi/test.py", line 16, in <module> bytes_sent = serialPort.write(test_strin...
by Messiry
Wed Oct 26, 2016 9:22 am
Forum: Beginners
Topic: UART pi3
Replies: 25
Views: 6391

Re: UART pi3

Look in /boot/overlays/README if you wish to disable Bluetooth and use the original UART. Why not use /dev/ttyS0? Why do you need the original UART? They both use the same pins (8/10). i read that they can be unreliable and to avoid that you have to set the core CPU to 250 which takes the whole Pi ...
by Messiry
Wed Oct 26, 2016 8:52 am
Forum: Beginners
Topic: UART pi3
Replies: 25
Views: 6391

UART pi3

firstly lets clear that i'm a beginner , and i'm doing a project which a pi is acting as a web server and has its DB , also as my Main controller connected to other smaller AVR . (IoT) - i've never used linux before . - i'm Using Pi3 - Raspbian Jessie latest update , i've run " sudo apt-get update" ...

Go to advanced search