Go to advanced search

by ragishtin
Sat Mar 28, 2020 7:22 am
Forum: Beginners
Topic: Send pictures from Raspberry to smartphone over bluetooth
Replies: 24
Views: 27414

Re: Send pictures from Raspberry to smartphone over bluetoot

Douglas6 wrote:
Fri Jan 08, 2016 2:24 pm
Just as you would over any other serial device. Read the bytes of the image data, write them to the serial device.
I need to write a python script to send an image via UART Rx/Tx from one Raspberry Pi 3B to another one ..

Could you please help me ?
by ragishtin
Wed Mar 25, 2020 8:15 pm
Forum: Advanced users
Topic: 2 pi's communicating serially through an optical fiber link
Replies: 24
Views: 1125

Re: 2 pi's communicating serially through an optical fiber link

this is the whole code .. containing the camera interface and the gui interface .. """ #! /usr/bin/python3 """ from picamera import PiCamera from time import sleep from Tkinter import * import tkFont import tkFileDialog import RPi.GPIO as GPIO from PIL import ImageTk,Image import serial ser = serial...
by ragishtin
Wed Mar 25, 2020 8:13 pm
Forum: Advanced users
Topic: 2 pi's communicating serially through an optical fiber link
Replies: 24
Views: 1125

Re: 2 pi's communicating serially through an optical fiber link

davidcoton wrote:
Wed Mar 25, 2020 11:58 am
OK, so post EXACTLY the code you are using (cut and paste, not retype).

Code: Select all

def sendFile():
	with open("image.jpg", "rb") as fDst:
		buffer= fSrc.read()
		SendLong(len(buffer))
		for byte in buffer:
			SendByte(byte)
by ragishtin
Wed Mar 25, 2020 8:02 pm
Forum: Advanced users
Topic: 2 pi's communicating serially through an optical fiber link
Replies: 24
Views: 1125

Re: 2 pi's communicating serially through an optical fiber link

I need some help on how to write a python script that opens an image from a given location in the Pi and starts sending it serially through the UART or any other raspberry pi's peripherals on one wire (plus the ground) .. and another script that receives this serial data, puts it in a file and then ...
by ragishtin
Wed Mar 25, 2020 7:57 pm
Forum: Advanced users
Topic: 2 pi's communicating serially through an optical fiber link
Replies: 24
Views: 1125

Re: 2 pi's communicating serially through an optical fiber link

I know I need a minimum of two wires with one as a ground for the signal to be referred to .. I just mis-expressed what I mean .. I meant only one signal going from the Tx of the transmitter to the Rx of the receiver .. and the data flow will only be in this direction and the receiver will not respo...
by ragishtin
Wed Mar 25, 2020 9:11 am
Forum: Advanced users
Topic: 2 pi's communicating serially through an optical fiber link
Replies: 24
Views: 1125

Re: 2 pi's communicating serially through an optical fiber link

davidcoton wrote:
Tue Mar 24, 2020 2:35 pm
Do you have a file called cameraimage.jpg ready to send?
I changed the name in this line to the name of my file .. so I would say yes I have a .jpg file ready to be sent ..
by ragishtin
Tue Mar 24, 2020 1:40 pm
Forum: Advanced users
Topic: 2 pi's communicating serially through an optical fiber link
Replies: 24
Views: 1125

Re: 2 pi's communicating serially through an optical fiber link

@hippy

I tried the code you posted at the transmitter side but i get this error >>

buffer= fSrc.read()
NameError: global name 'fSrc' is not defined

Am I missing something .. a library to import for example ? .. or maybe some settings are needed before using this line ?
by ragishtin
Tue Mar 24, 2020 1:33 pm
Forum: Advanced users
Topic: 2 pi's communicating serially through an optical fiber link
Replies: 24
Views: 1125

Re: 2 pi's communicating serially through an optical fiber link

[/quote]
Ethernet is a serial communication. :)
[/quote]

@drgeoff
let's say I need one-wire one-direction image transfer solution .. not necessarily serial communication .. do you have a recommendation ?
by ragishtin
Sat Mar 21, 2020 9:16 pm
Forum: Camera board
Topic: Transfer a Picture from Pi to Arduino via UART
Replies: 15
Views: 2922

Re: Transfer a Picture from Pi to Arduino via UART

I'm having a similar problem .. I'm working on a project where I need to transmit a picture from one Pi to another using serial communication .. it is not possible to send it via the network .. it is required in the project to send the picture serially .. Could anyone help me ? Regards, Ragy Samy ..
by ragishtin
Tue Feb 25, 2020 12:22 pm
Forum: Advanced users
Topic: 2 pi's communicating serially through an optical fiber link
Replies: 24
Views: 1125

Re: 2 pi's communicating serially through an optical fiber link

Thank you guys for your concern :) @richrussell, I need to use serial communication because it's a requirement in the project even if it's not the best way .. However, I'll leave using the network as a last option if serial communication didn't work .. I'll then be obligated to ignore one of the pro...
by ragishtin
Tue Feb 25, 2020 10:00 am
Forum: Advanced users
Topic: 2 pi's communicating serially through an optical fiber link
Replies: 24
Views: 1125

Re: 2 pi's communicating serially through an optical fiber link

I've found this receiver that can receive data over an optical link and convert it to electrical signals .. https://www.digikey.com/product-detail/en/broadcom-limited/HFBR-2412Z/516-2056-ND/1990454 I've changed my plan a little and it is now to use serial communication between the 2 Pi's to send a p...
by ragishtin
Fri Jan 24, 2020 8:16 am
Forum: Advanced users
Topic: 2 pi's communicating serially through an optical fiber link
Replies: 24
Views: 1125

2 pi's communicating serially through an optical fiber link

Hello there, I'm working on an application where I need to send data from one pi to another over an optical fiber link .. I have done this before with arduino .. but now I need to send bigger data like colored images or videos (maybe streaming a video) .. Does anyone have a recommendation on how to ...

Go to advanced search