connect

Profibus with rpi master and slave

痞子三分冷 提交于 2020-01-25 07:27:21
问题 I am tasked with building profibus master and slave network using Rpi and Rs-485 convertor . One Rpi will be master and other will be slave. I am using https://github.com/mbuesch/pyprofibus for DP-stack to implement the same. How can I assign address to master and slave rpi boards to use in profibus initialization sequence . It is not accepting the IP address given to the rpi boards 回答1: Since you talk about IP addresses I think you may be mistaken Profibus with Profinet. If that's the case

Oracle TNS - can't connect through ODBC Administrator

∥☆過路亽.° 提交于 2020-01-25 07:21:03
问题 my Oracle ODBC has stopped working today and i can't figure out why. the error im getting when testing the connection in ODBC Administrator is: connect failed because target host or object does not exist getting the same error when trying to do a tnsping on it. everything worked on friday, and no updates or anything has been done to the server. what could it be? 回答1: TNSPING and PING will go a long way. If you see a line like .. Attempting to connect to (ADDRESS=SomeServerOrIPAddress)(PORT

Python Oracle DB Connect without Oracle Client

给你一囗甜甜゛ 提交于 2020-01-25 06:51:12
问题 I am trying to build an application in python which will use Oracle Database installed in corporate server and the application which I am developing can be used in any local machine. Is it possible to connect to oracle DB in Python without installing the oracle client in the local machine where the python application will be stored and executed? Like in Java, we can use the jdbc thin driver to acheive the same, how it can be achieved in Python. Any help is appreciated Installing oracle client

connect and send on the socket succeeds, even if WIFI not enabled and server is only reacheable in the wireless network - Windows Mobile 6.5 - C/C++

喜欢而已 提交于 2020-01-24 20:30:47
问题 I wrote a small C/C++ Windows Mobile 6.5 client-application that is connecting to a server and sends some data to this server. The server is in my internal wireless network and is not reacheable outside. The weird behaviour I'm having: 1) Even if the WIFI is not started on my mobile device, the connect() from the client-application returns success (!= SOCKET_ERROR), which is not the case b/c the server is reacheable only in the wireless network. 2) If the WIFI is not started on my mobile

Android: Can't connect to specific bluetooth device

左心房为你撑大大i 提交于 2020-01-24 10:57:08
问题 I have an application that regularly polls BLE peripherals for data. On rare occasions, the Android device is not able to connect to specific devices for long periods of time. Not only using my application, but with any other BLE-application I could find on Google play, is it unable to connect to one specific peripheral X. It can connect just fine with other ("identical") peripherals during this state, and other Android devices can connect to peripheral X. This problem tend to go away after a

Error setting TTL index on collection : sessions on socket reconnect

馋奶兔 提交于 2020-01-23 13:03:35
问题 I have a node app with mongoose and socket.io. app works fine but if somehow socket gets disconnected and while trying to reconnect following error is thrown. if i run this under forever, app will restart but after some time it will throw the same error and will go on in a loop. node_modules\connect-mongo\lib\connect-mongo.js:161 throw new Error('Error setting TTL index on collection : ' + s ^ Error: Error setting TTL index on collection : sessions i tried other solutions found in SO but no

How is req and res accessible accross modules in Express.js

僤鯓⒐⒋嵵緔 提交于 2020-01-23 11:58:20
问题 While using express.js for handling various routes I want to encapsulate all of my route code in a seperate module, but how can I access the req and res object across modules, See the code below The main file examples.js is written as follows var app = require('express').createServer(); var login = require('./login.js'); app.get('/login', login.auth(app.req, app.res)); app.listen(80); What I want is that the login handling code be written in a seperate module/file called login.js, the

Magento Connect install Error moving uploaded file

大憨熊 提交于 2020-01-23 03:56:33
问题 I have problem with magento connect. i am not able to install any downloaded packages of magento extensions like mailchimp, onestep checkout package. While i am uploading package, its shows error like Error moving uploaded file i dont know what to do. please help me.. Thanks 回答1: The solution to this problem is to set all folders permission to 777. Go to your installation root folder and run the following command (You should have access to SSH on your server to run this command):- find .

python多线程socket实现多个client连接一个server

拜拜、爱过 提交于 2020-01-16 13:21:35
server.py代码 import socket # 导入 socket 模块 from threading import Thread import time import json ADDRESS = ( '127.0.0.1' , 8712 ) # 绑定地址 g_socket_server = None # 负责监听的socket g_conn_pool = { } # 连接池 def init ( ) : """ 初始化服务端 """ global g_socket_server g_socket_server = socket . socket ( socket . AF_INET , socket . SOCK_STREAM ) g_socket_server . bind ( ADDRESS ) g_socket_server . listen ( 5 ) # 最大等待数(有很多人理解为最大连接数,其实是错误的) print ( "server start,wait for client connecting..." ) def accept_client ( ) : """ 接收新连接 """ while True : client , info = g_socket_server . accept ( ) # 阻塞,等待客户端连接 #

Can someone explain this : EventEmitter causes failure when global variable

强颜欢笑 提交于 2020-01-16 05:30:49
问题 I spent a while trying to diagnose this error. First I had created a subclass of EventEmitter File Client.js var bindToProcess = function(fct) { if (fct && process.domain) { return process.domain.bind(fct) } return fct }; function Client(){ EventEmitter.call(this); } util.inherits(Client, EventEmitter); Client.prototype.success = function(fct) { this.on('success', bindToProcess(fct)) return this; } Client.prototype.login = function(username, password) { body = { username : username, password