Go to advanced search

by LinuxKoku
Wed Jul 04, 2018 7:22 am
Forum: Troubleshooting
Topic: Raspberry PI3 Bluetooth COM Port (rfcomm.conf file does not exist)
Replies: 5
Views: 719

Re: Raspberry PI3 Bluetooth COM Port (rfcomm.conf file does not exist)

Hello, thank you for your answer, I use a Raspberry PI 3 and I would be worth connecting it serially via bluetooth with my PC (Windows), my Raspberry PI 3 with its internal bluetooth and my PC with a Bluetooth dongle, to know if my RPI connects in series, I can do a test with blueSoleil to see if th...
by LinuxKoku
Tue Jul 03, 2018 1:38 pm
Forum: Troubleshooting
Topic: Raspberry PI3 Bluetooth COM Port (rfcomm.conf file does not exist)
Replies: 5
Views: 719

Re: Raspberry PI3 Bluetooth COM Port (rfcomm.conf file does not exist)

Yes thank you, I did not make these mistakes, it is errors of strikes,

Otherwise here is a test that I made with the software BlueSoleil and in fact, my Raspberry PI is well detected, I can even send and receive files, but the serial port service is not activated!
by LinuxKoku
Tue Jul 03, 2018 12:27 pm
Forum: Networking and servers
Topic: [Solved] Send/Receive a byte frame with Bluetooth between PC and Raspberry PI 3
Replies: 14
Views: 1526

Re: Send/Receive a byte frame with Bluetooth between PC and Raspberry PI 3

The built-in bluetooth works very well! I even send a file to my PC with Blueman, but me is to send data automatically using Python code, but for its, I must activated the bluetooth COM serial port service for data exchange! and for his I have to modify the configuration file rfcomm.conf! gold me th...
by LinuxKoku
Tue Jul 03, 2018 12:01 pm
Forum: Troubleshooting
Topic: Raspberry PI3 Bluetooth COM Port (rfcomm.conf file does not exist)
Replies: 5
Views: 719

Raspberry PI3 Bluetooth COM Port (rfcomm.conf file does not exist)

Hello, I try to send data by bluetooth Raspberry PI 3 and I have a problem on my Raspberry! the service Raspberry PI 3 COM port is not installed, I tried to follow this tutorial ( https://www.raspberrypi.org/forums/viewtopic.php?p=947185#p947185 ) and for my part the file rfcomm.conf does not exist,...
by LinuxKoku
Tue Jul 03, 2018 11:56 am
Forum: Networking and servers
Topic: [Solved] Send/Receive a byte frame with Bluetooth between PC and Raspberry PI 3
Replies: 14
Views: 1526

Re: Send/Receive a byte frame with Bluetooth between PC and Raspberry PI 3

Hello

In need of emergency help, let me post the question about the problem of rfcomm.conf file that does not exist on my Raspberry PI 3, to have more chance to have answers

Thank you
by LinuxKoku
Tue Jul 03, 2018 9:42 am
Forum: Networking and servers
Topic: [Solved] Send/Receive a byte frame with Bluetooth between PC and Raspberry PI 3
Replies: 14
Views: 1526

Re: Send/Receive a byte frame with Bluetooth between PC and Raspberry PI 3

[Edited] Hello, I put the MAC address of the RPI (B8: 27: EB: 48: 3A: 70) I think I have found what's wrong! the RPI port com service is not enabled or not installed, i tried to follow this tutorial (https://www.raspberrypi.org/forums/viewtopic.php?p=947185#p947185) and i i discovered when my blueto...
by LinuxKoku
Tue Jul 03, 2018 8:07 am
Forum: Networking and servers
Topic: [Solved] Send/Receive a byte frame with Bluetooth between PC and Raspberry PI 3
Replies: 14
Views: 1526

[Solved] Send/Receive a byte frame with Bluetooth between PC and Raspberry PI 3

Hello, I would like to create a code in python 3 on my Raspberry PI 3 which will aim to read frames of bytes sent from a pc that uses a Bluetooth dongle, by my RPI using its built-in Bluetooth (a kind of client server in Bluetooth) So I did several research, but I can not even do a good test to see ...
by LinuxKoku
Tue Jul 03, 2018 7:57 am
Forum: Networking and servers
Topic: sending data from my raspi to my computer via ethernet
Replies: 8
Views: 460

Re: sending data from my raspi to my computer via ethernet

Hello, It depends on the data you send, I used ethernet to send and receive frames in bytes, for that I used Sockets(Client/Server), and I think you would use it too, here is the site I started in, I think it's going to help you: https://deusyss.developpez.com/tutoriels/Python/python-en-bref/#LV-P-1...
by LinuxKoku
Mon Jul 02, 2018 8:56 am
Forum: Python
Topic: Triggering a Python Program Run with a Keyboard
Replies: 4
Views: 386

Re: Triggering a Python Program Run with a Keyboard

I will see that closely
Thank you :mrgreen:
by LinuxKoku
Thu Jun 28, 2018 9:25 pm
Forum: Python
Topic: Triggering a Python Program Run with a Keyboard
Replies: 4
Views: 386

Re: Triggering a Python Program Run with a Keyboard

Windows 7, I am looking for a code, especially in python that will allow me to do it
by LinuxKoku
Thu Jun 28, 2018 2:42 pm
Forum: Python
Topic: Triggering a Python Program Run with a Keyboard
Replies: 4
Views: 386

Triggering a Python Program Run with a Keyboard

Hello, I would like to trigger the execution of an existing python program on my PC by a key on the keyboard! this program will then query my Raspberry PI, after much research, I can not find anything conclusive, see no report! :?: So I'm asking you for directions on my question: :roll: How to run a...
by LinuxKoku
Thu Jun 28, 2018 12:45 pm
Forum: Python
Topic: Send/Receive a frame between PC and Raspberry PI with Ethernet
Replies: 1
Views: 196

Re: Send/Receive a frame between PC and Raspberry PI with Ethernet

:idea: Using the sockets I was able to realize my program
by LinuxKoku
Wed Jun 27, 2018 1:02 pm
Forum: Python
Topic: Send/Receive a frame between PC and Raspberry PI with Ethernet
Replies: 1
Views: 196

Send/Receive a frame between PC and Raspberry PI with Ethernet

Hello, I'm working on a project that aims to make an Ethernet connection with a computer, I would send hexadecimal frames of this type: frame_send = [0x7E, 0x7E, 0x72, 0x02, 0x72, 0x02] , using an RJ45 cable (Ethernet), after receiving my frame by my computer, a result frame will be sent to my Raspb...
by LinuxKoku
Tue Jun 26, 2018 1:39 pm
Forum: Python
Topic: [Resolved] Reading the serial port (RS232) of the Raspberry PI 3
Replies: 16
Views: 3297

Re: Reading the serial port (RS232) of the Raspberry PI 3

I succeeded, thank you very much :mrgreen: you are great, and I learned a lot of things
by LinuxKoku
Tue Jun 26, 2018 12:59 pm
Forum: Python
Topic: [Resolved] Reading the serial port (RS232) of the Raspberry PI 3
Replies: 16
Views: 3297

Re: Reading the serial port (RS232) of the Raspberry PI 3

The break makes it possible to leave the infinite loop, thank you very much yes I agree with you but do not worry, I publish here, after making a lot of research and testing, thank you for your advice as said above, I would extract each byte of the frame in a list for the used, after several tests a...
by LinuxKoku
Tue Jun 26, 2018 11:29 am
Forum: Python
Topic: [Resolved] Reading the serial port (RS232) of the Raspberry PI 3
Replies: 16
Views: 3297

Re: Reading the serial port (RS232) of the Raspberry PI 3

:?: Now I would like to put these bytes (0x7e ...) in a table (list) to use them but I do not arrive after several tries, (For example I want to extract (0x7) which is the byte of the frame size that I would put in the loop while instead of 11, all these bytes have a meaning so I think to put them i...
by LinuxKoku
Tue Jun 26, 2018 11:25 am
Forum: Python
Topic: [Resolved] Reading the serial port (RS232) of the Raspberry PI 3
Replies: 16
Views: 3297

Re: Reading the serial port (RS232) of the Raspberry PI 3

I executed your code, this one gives me the whole frame but after does not stop, until I click Ctrl + c! Here's what I did with the result: while 1: time.sleep(0.1) if ser.inWaiting != 0: try: x=ord(ser.read(1)) print(hex(x)) except TypeError: print("No valid data ") result: 0x7e 0x7e 0x73 0x7 0x0 0...
by LinuxKoku
Tue Jun 26, 2018 9:53 am
Forum: Python
Topic: [Resolved] Reading the serial port (RS232) of the Raspberry PI 3
Replies: 16
Views: 3297

Re: Reading the serial port (RS232) of the Raspberry PI 3

Thank you for your answer, Your code did not work but I understood how used the function inWaiting and I made this code the one that works very well, but that will cause me future worries, here is the code that works: # -*- coding: utf-8 -*- import serial import struct import time ser = serial.Seria...
by LinuxKoku
Mon Jun 25, 2018 1:00 pm
Forum: Python
Topic: [Resolved] Reading the serial port (RS232) of the Raspberry PI 3
Replies: 16
Views: 3297

Re: Reading the serial port (RS232) of the Raspberry PI 3

To understand a little what I send and what I want to display, here is the code that I made: # -*- coding: utf-8 -*- import serial import struct ser = serial.Serial( port='/dev/ttyUSB0', baudrate=9600, parity=serial.PARITY_ODD, stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS ) ser.flushOutpu...
by LinuxKoku
Mon Jun 25, 2018 12:10 pm
Forum: Python
Topic: [Resolved] Reading the serial port (RS232) of the Raspberry PI 3
Replies: 16
Views: 3297

Re: Reading the serial port (RS232) of the Raspberry PI 3

Thank you for your return,
How to do this? I have to create a loop?
Sorry but I do not know how to do that :| I can have a little example?
by LinuxKoku
Mon Jun 25, 2018 8:56 am
Forum: Python
Topic: [Resolved] Reading the serial port (RS232) of the Raspberry PI 3
Replies: 16
Views: 3297

[Resolved] Reading the serial port (RS232) of the Raspberry PI 3

Hello, I am working on a RPI3, and I would like to send a hexadecimal frame to a counting device, with an RS232 serial link (USB / RS232 adapter), the frame once received, the count box immediately sends me back a result frame ( result of counting) (as soon as I execute, the frame is sent and the re...
by LinuxKoku
Tue Jun 19, 2018 4:03 pm
Forum: Advanced users
Topic: RS232 serial link with Raspberry PI 3
Replies: 13
Views: 4023

Re: RS232 serial link with Raspberry PI 3

The counting system is manufactured by our company (http://www.elinap.com/), my goal is to send a string, (7E 7E 73 02 HiCrc LoCrc) (hexadicimal), the counting system should recognize this frame and should return a result, by example: the number of travelers
by LinuxKoku
Tue Jun 19, 2018 3:23 pm
Forum: Advanced users
Topic: RS232 serial link with Raspberry PI 3
Replies: 13
Views: 4023

Re: RS232 serial link with Raspberry PI 3

Thank you for your answer, Small error: I configured the speed to 9600 but 8N1, I saved the changes, but when I run the command line dmesg | grep tty , he still shows me 115200! knowing that I should work with a speed of 9600, what should I do? I was able to configure the serial port and it is detec...

Go to advanced search